Parameterization in selenium – How To Do Parameterization In Pytest With Selenium?

How to Do Parameterization In Pytest With Selenium?

Selenium Python – Concept of Parameterization

Parameterization in selenium: Sometimes, we come across situations where we need to execute the same test case, but with every execution, we need to use a different data set. Or sometimes, we need to create test data prior to our test suite execution. To resolve all these requirements, we should be familiar with the concept of parameterization.

Structure

  • Why do we need parameterization
  • What is parameterization
  • Creation of test data file
  • Parameterizing and login logout scenario

Objective

In this chapter, we will learn how we can use a text file to pass data to our tests and run it as many times as rows are available in our file. With this, we will understand the concept of parameterization.

Test data file

Test cases generally need test data for execution. When we write scripts to automate the test, it could be possible that we have hard-coded the test data within the test scripts. The drawback of this approach is if our test data needs to be changed for a test execution cycle, we will need to make changes at the test script level, thus making it prone to errors. So a good test script is when test data is kept outside the code.

To achieve the same, we need to parameterize our tests. In this, we replace the hard code values in the test with variables. At the time of execution, these variables are replaced by values that are picked from external data sources. These data sources could be text files, excel sheets, databases, JSON, XML, and others.

Parameterization and login logout scenario

Selenium doesn’t provide any provision to parameterize the tests. We write the code to parameterize the test using the programming language. In this chapter we will see how we can parameterize our test using a CSV file, and an excel file. The scenario we are going to pick is the login logout scenario, and we will parameterize it using two datasets—the first dataset will be for valid user and password combinations. And the second dataset will be for a bad username and password combination.

The data to be picked for the test is available in a file called login. CSV, which is kept in the dataset folder in the project. Refer to the following screenshot:

Selenium Python - Concept of Parameterization chapter 8 img 1

The dataset file login. CSV has the following data:

bpb@bpb.com, bpb@123
abc@demo.com,demo123

In a CSV file, the data is separated by a comma. The test script provided below reads the data using Python file handling commands and splits it based on a comma. It then passes these values for username and password in the script. The following test iterates twice, which is equal to the number of rows in this file:

from selenium import webdriver
import unitest

class Login(unitest.TestCase):
      def setup(self):
          self.driver = webdriver.chrome(executable_path="D:\Eclipse\BPB\seleniumpython\seleniumpython\drivers\chromedriver.exe")
          self.driver.implicitly_wait(30) 
          self.base_url="http://practice.bpbonline.com/catalog/index.php"

dex test_login(self):
    driver=self.driver
    driver.get(self.base_url)
    file = open("D:\Eclipse\BPB\seleniumpython\seleniumpython\datasets\login.csv", "r")
    for line in file:
         driver.find_element_by_link_text("My Account").click( )
         data=line.spilt(",")
         print(data)
         driver.find_element_by_name("email_address").send_keys(data[0])
         driver.find_element_by_name("password").send_keys(data[1].strip())
         driver.find_element_by_id("tab1").click( )
         if(driver.page_source.find("My Account Information")l=-1):
            driver.find_element_by_link_text("log off").click( )
            driver.find_element_by_link_text("continue").click( )
            print("valid user credentail")
   else:
       print("Bad user credentail")
  file.close( )

def tearDown(self):
    self.driver.quit( )

if_name_=="_main_":
    unitest.main( )

In the preceding program, we have written the scenario of login logout, but it is wrapped around a while loop. This while loop is basically reading file contents, until the end of the file is reached. So the entire script will execute as many times as the number of rows in the file.

As we execute the test, we will see that it passes for the first data set picked from the file, as it is a combination of a valid username and password. But for the second dataset, the test reports a failure. The preceding test will execute for as many rows as available in our login.csv dataset file.

Conclusion

In this chapter we have learned how to use test data for our tests, and the importance of keeping test data separate from the actual tests. We also saw how we can read data from a CSV file or a text-based file, and pass them to our test code.

In our next chapter, we will learn how to handle different types of web elements.

Related Articles:

Keyboard Shortcuts for Gmail | List of All Gmail Keyboard Shortcut Keys

Keyboard Shortcuts for Gmail

Keyboard Shortcuts for Gmail: Sending and receiving emails has become an integral part of our daily lives. For this purpose, one of the most popular platforms that we use regularly is Gmail. Though Gmail has a very user-friendly interface, knowing shortcut keys or hotkeys helps us out in any platform that we work in. These shortcuts help us in reducing our effort and save our time while working.

However, for Gmail, one needs to turn the keyboard shortcuts on manually to use the feature. The process to turn the keyboard shortcuts on will be discussed in detail further in this article.

Wondering How to explore & learn Shortcut Keys for various Operating Systems, Computer Software Programs, Social media applications Keyboards? Here is the one-stop destination for all Keyboard Shortcuts, just take a look & memorize regularly for better performance in competitive exams & real-time situations.

Below in this article are the lists of keyboard shortcuts that one can use on a computer, Android device, or Apple device.

Table of Content

How to Turn on Keyboard Shortcuts on Computer for Gmail?

Gmail shortcut keys: For Gmail, some keyboard shortcuts only work if you’ve turned them on manually. However, all keyboards do not support keyboard shortcuts, but most of them do. To turn keyboard shortcuts on, you need to follow the below steps:

  1. Step 1: On a computer, go to Gmail.
  2. Step 2: In the top right corner, click Settings followed by See all settings.
  3. Step 3: Click Settings.
  4. Step 4: Scroll down to the “Keyboard shortcuts” section.
  5. Step 5: Select Keyboard shortcuts on.
  6. Step 6: Scroll down again to the bottom of the page and click Save Changes.

Gmail Keyboard Shortcuts That You Can Use on Computer

Gmail hot keys: Some of the functions for which you can use keyboard shortcuts in Gmail are listed below:

  1. To navigate your inbox and messages.
  2. Format text.
  3. Complete actions like archiving and deleting.

Besides these, there are a lot more functions as well, which we will get to know later in this article.

If you wish to see an entire list of keyboard shortcuts, including those that need to be turned on, you need to type ‘?’ after you open Gmail.

Note: Keyboard shortcuts work differently on PC and macOS computers or devices. For PCs, you’ll use Ctrl instead of Cmd and vice-versa for macOS computers.

Keyboard Shortcuts to Compose and Chat

Keyboard Shortcut Function
p Previous message in an open conversation
n Next message in an open conversation
Shift + Esc Focus the main window
Esc Focus the latest chat or compose
Ctrl + . Advance to the next chat or compose
Ctrl + , Advance to previous chat or compose
Cmd / Ctrl + Enter Send
Cmd / Ctrl + Shift + C Add cc recipients
Cmd / Ctrl + Shift + B Add bcc recipients
Cmd / Ctrl + Shift + F Access custom from
Cmd / Ctrl + K Insert a link
Cmd + ; Go to the next misspelt word (Mac only)
Cmd / Ctrl + M Open spelling suggestions

Keyboard Shortcuts for Gmail

Keyboard Shortcuts for Formatting Text

Keyboard Shortcut Function
Cmd /Ctrl + Shift + 5 Previous font
Cmd / Ctrl + Shift + 6 Next font
Cmd / Ctrl + Shift + – Decrease text size
Cmd /Ctrl + Shift and + Increase text size
Cmd / Ctrl + B Bold
Cmd / Ctrl + I Italics
Cmd / Ctrl + U Underline
Cmd / Ctrl + Shift + 7 Numbered list
Cmd / Ctrl + Shift + 8 Bulleted list
Cmd /Ctrl + Shift + 9 Quote
Cmd / Ctrl + [ Indent less
Cmd / Ctrl + ] Indent more
Cmd / Ctrl + Shift + L Align left
Cmd / Ctrl + Shift + E Align centre
Cmd / Ctrl + Shift + R Align right
Cmd / Ctrl + \ Remove formatting

Keyboard Shortcuts for Gmail 2

Keyboard Shortcuts for Actions

Keyboard Shortcut Function
, Move focus to toolbar
x Select conversation
s Toggle star/rotate among superstars
e Archive
m Mute conversation
! Report as spam
# Delete
r Reply
Shift + r Reply in a new window
a Reply all
Shift + A Reply all in a new window
F Forward
Shift + F Forward in a new window
Shift + N Update conversation
] or [ Archive conversation and go previous/next
Z Undo last action
Shift + I Mark as read
Shift + U Mark as unread
_ Mark unread from the selected message
+ or = Mark as important
Mark as not important
b Snooze
; (This shortcut isn’t available in classic Gmail)
: Expand entire conversation
Shift + t Collapse entire conversation

Keyboard Shortcuts for Hangouts

Keyboard Shortcut Function
h + m Show menu
h + a Show archived hangouts
h + i Show Hangout requests
h + c Focus on the conversation list
h + p Open phone

Keyboard Shortcuts for Jumping

Keyboard Shortcut Function
g + i Go to Inbox
g + s Go to Starred conversations
g + b Go to Snoozed conversations
g + t Go to Sent Messages
g + d Go to Drafts
g + a Go to All mail
Cmd / Ctrl + Alt + , and Cmd / Ctrl + Alt + . Switch between the Calendar/Keep/Tasks sidebar and your inbox.
g + k Go to Tasks
g + l Go to label

Keyboard Shortcuts for Thread List Selection

Keyboard Shortcut Function
* + a Select all conversations
* + n Deselect all conversations
* + r Select read conversations
* + u Select unread conversations
* + s Select starred conversations
* + t Select unstarred conversations

Keyboard Shortcuts for Navigation

Keyboard Shortcut Function
g + n Go to the next page
g + p Go to the previous page
u Back to thread list
k Newer conversation
j Older conversation
o or Enter Open conversation
` Go to the next Inbox section
~ Go to the previous Inbox section

Keyboard Shortcuts for Application

Keyboard Shortcut Function
c Compose
d Compose in a new tab
/ Search mail
g Search chat contacts
. Open the “more actions” menu
v Open “move to” menu
l Open “label as” menu
? Open keyboard shortcuts help

Note: Always remember these shortcuts keys will not work until keyboard shortcuts are turned on manually.

How to Customize Keyboard Shortcuts for Gmail on Computer?

Besides the default keyboard shortcuts in Gmail, you can add, delete or customize shortcuts as per your convenience. The steps below will guide you in the process:

Turn on Custom Keyboard Shortcuts

  1. Step 1: On your computer, go to Gmail.
  2. Step 2: At the top right corner, click Settings followed by See all settings.
  3. Step 3: Click Advanced.
  4. Step 4: Next to “Custom keyboard shortcuts,” choose Enable.
  5. Step 5: At the bottom of the page, click Save Changes.

Change Your Keyboard Shortcuts

  1. Step 1: On your computer, go to Gmail.
  2. Step 2: At the top right corner, click Settings followed by See all settings.
  3. Step 3: At the top, click Keyboard Shortcuts.
  4. Step 4: Next to the action, type the keyboard key to make a new shortcut.
  5. Step 5: At the bottom of the page, click Save Changes.
  6. Note: At a time, one key can refer to only one action.

Gmail Keyboard Shortcuts That You Can Use on Android

For Android devices, you can use the shortcuts listed below if you plug an external keyboard into the device. These keyboard shortcuts work with most kinds of external keyboards. The shortcuts are listed below:

Keyboard Shortcut Function
Ctrl + n Compose a new email
Ctrl + d Archive an email
Ctrl + Enter Send an email
Ctrl + s Save a draft
Ctrl + u Refresh your inbox
Right arrow Open selected conversation
Enter Expand or collapse an email in a conversation
Ctrl + x, Ctrl + c, or Ctrl + v Cut, copy, or paste
Ctrl + a Select all
Ctrl + m Open the side menu
Ctrl + , Open settings
Ctrl + ? Open Help & Feedback
Ctrl + r Reply all
Ctrl + i Mark as read or unread
Ctrl + p Print

How to Turn on Keyboard Shortcuts on iPad and iPhone for Gmail?

By following the below steps, you can turn on keyboard shortcuts for Gmail on your iPad. However, keyboard shortcuts aren’t supported on all keyboards. Also, as said earlier, iPhones currently do not support keyboard shortcuts in the Gmail app.

  1. Step 1: On an iPad, open the Gmail app.
  2. Step 2: In the top left, tap on Menu, and then click on Settings.
  3. Step 3: Tap on Enable keyboard shortcuts.

Gmail Keyboard Shortcuts That You Can Use on iPhone and iPad

If you connect your keyboard to the iPad, you can use the keyboard shortcuts listed below for the Gmail app. Some shortcuts will show a description when you touch and hold the ⌘

or Cmd on the keyboard you have connected to your iPad. To use any shortcut, tap the key after you have turned on keyboard shortcuts for Gmail.

Note: iPhones currently do not support keyboard shortcuts in the Gmail app.

Shortcuts You Can Use While Composing an Email

Keyboard Shortcut Function
Cmd + Delete Delete a line
Option + Delete Delete a word
Cmd + Return Send
Cmd + W Close

Shortcuts with Description Available

Keyboard Shortcut Function
z Undo
u Unselect all
! Mark as spam
# Delete
a Reply all
c Compose
m Mute
e Archive
f Forward
r Reply
x Select
Shift + I Mark as read
Shift + U Mark as unread
Cmd + U Refresh

Shortcuts Without Any Description

Keyboard Shortcut Function
Escape Go back
Return Open item
Up arrow Previous item
Down arrow Next item
j Next conversation
k Previous conversation
n Next message
p Previous message

 

Conclusion on Keyboard Shortcuts for Gmail

In conclusion, we can say that using keyboard shortcuts or hotkeys on any platform or software always help us to ease out our process of working, and it is the same for Gmail as well.

By remembering all the keyboard shortcuts, you can easily move around and work without going to your mouse every time. If you want, you can print these shortcuts, which will help you work even more efficiently.

WEB API Interview Questions in .NET

.net web api interview questions: We have compiled most frequently asked .NET Interview Questions which will help you with different expertise levels.

WEB API Interview Questions in .NET

Question 1.
What is ASP.Net Web API?
Answer:
Web API is the Microsoft open source technology to develop REST services which is based on HTTP protocol. ASP.Net Web API is a framework to build, consume HTTP-based services. Web API can be consumed by a wide range of clients such as web browsers and mobile applications.

Question 2.
Web API vs WCF REST API.
Answer:
WCF REST API is good for Message Queue, duplex communication, one way messaging. Web API is good for HTTP-based services.
Web API is the best fit with the MVC pattern which is the major benefit of the Web API.
WCF will support SOAP and XML format, while Web API can support any media format including JSON, XML.
WCF is good for developing service-oriented applications and ASP.Net Web API is perfect for building HTTP services.
WCF can support HTTP, TCP, Named Pipes as the protocol on another side Web API can support HTTP protocol only.
WEB API is easy for experienced developers in the MVC pattern.
WCF requires lots of configuration to run, while Web API is simple and no configuration is required to run.

WCF

1. It is a framework used to build or develop service-oriented applications.
2. WCF will only be consumed by clients, which will understand XML. WCF can support protocols such as – HTTP, TCP, Named Pipes, etc.

Web API

1. It is a framework that will help us for building/developing HTTP services
2. Web API is an open source platform.
3. It will support most of the MVC features that will keep Web API over WCF.

Question 3.
The advantage of Web API over WCF services.
Answer:
The disadvantage of WCF over Web API is that WCF will require a lot of configuration to work, but in Web API is simple and no extra configuration.

Question 4.
Advantages of using ASP.Net Web API.
Answer:
Using ASP.NET Web API has following advantages :

1. It will work as HTTP works using standard HTTP verbs like GET, POST, PUT, DELETE, etc. for all CRUD operations
2. Complete support for routing
3. Response will be generated in JSON or XML format using MediaTypeFormatter
4. It has the ability to be hosted in IIS and self-host outside of IIS
5.Supports Model binding and Validation
6. Support for OData

Question 5.
What are the various return types in ASP.Net Web API?
Answer:
Following are the various return types in ASP.Net Web API

1. HttpResponseMessage
2. IHttpActionResult
3. Void
4. Other Type – string, int, or other entity types.

Question 6.
What is ASP.Net Web API routing?
Answer:
Routing in ASP.Net Web API is the process that will decide which action and which controller should be called.
There are following ways to implement routing in Web API.
1. Convention based routing
2. Attribute based routing

Question 7.
What are Media type formatter in Web API?
Answer:
Following are Media type formatter in Web API:
1. MediaTypeFormatter- Base class for handling serializing and deserializing strongly- typed objects.
2. BefferedMediaTypeFormatter- Represents a helper class for allowing asynchronous formatter on top of the asynchronous formatter infrastructure.

Question 8.
CORS issue in Web API?
Answer:
CORS will stand for Cross-Origin Resource Sharing. CORS will resolve the same-origin restriction for JavaScript. The same Origin means that a JavaScript will only make AJAX call for the web pages within the same origin.

We must install CORS nuget package using Package Manager Console to enable CORS in Web API.

Open WebAPIConfig.es file
add config.EnableCors( );

Add EnableCors attribute to the Controller class and define the origin.
[EnableCors(origins: headers: methods: “*”)].

Question 9.
How to secure an ASP.Net Web API?
Answer:
Web API security means, We required to control Web API and decide who can access the API and who will not access the Web API. using Token based authentication .Setting proper authentication and authorization makes it safe.

Question 10.
Http Get vs Http Post
Answer:
GET and POST is two important HTTP verbs. HTTP (HyperText Transfer Protocol) can manage the request-response between client and server.
GET parameters is included in URL
POST parameter is included in the body

Get request will not make any changes to the server
POST is for making changes to the server

GET request is idempotent
POST request is non-idempotent.
In a GET request, we will send data in plain text.
In a POST request, we will send binary as well as text data.

Question 11.
Can Web API be used with traditional ASP.Net Forms?
Answer:
Yes, Web API will be used with ASP.Net Forms.
We will add Web API Controller and manage to route in Application Start method in Global.asax file.

Question 12.
Exception filters in ASP.Net Web API
Answer:
Exception filter in Web API will implement lExceptionFilters interface. Web API Exception filters can execute when an action will throw an exception at any stage.

Question 13.
Do we return View from ASP.Net Web API?
Answer:
No, it will not be possible in Web API as Web API will create HTTP based service. It is available in MVC application.

Question 14.
What’s new in ASP.Net Web API 2.0?
Answer:
The following features are introduced in ASP.NET Web API framework v2.0:
1. Attribute Routing
2. External Authentication
3. CORS (Cross-Orrgrn Resource Sharing)
4. OWIN (Open Web Interface for .NET) Self Hosting
5. IHttpActfonResult
6. Web API OData
Following new features are included in Web API 2 –

Attribute-based routing
Route("product/{productid}/category")]
public string Get(int productid)
{
return "value";
}
CORS (Cross-Origin Resource Sharing) support
OWIN to Self Host Web API
Web API OData

Question 15.
How do we restrict access to methods with an HTTP verb in Web API?
Answer:
We will just add an attribute as shown below – [HttpGet]

public HttpResponseMessage Test( )
{
HttpResponseMessage response = new HttpResponseMessage( );
///
return response;
}
[HttpPost]
public void Save([FromBody]string value)
{

}

Question 16.
How do we make sure that Web API returns data in JSON format only?
Answer:
To make sure that web API returns data in JSON format only this open “WebApiConfig.es” file and add below line : config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue(“application/json”))

Question 17.
How to provide Alias name for an action method in Web API?
Answer:
We can provide Alias name by adding an attribute ActionName

[ActionName(“lnertUserData”)]

// POST a pi/
public void Post([FromBody]string value)
{
}

Question 18.
How we can handle errors in Web API?
Answer:
Following classes will help to handle the exception in ASP.Net Web API.
1. ExceptionFilters
2. HttpError
3. HttpResponseException .

Question 19.
How to host Web API?
Answer:
Web API application will be hosted in two ways :
1. Self Hosting – Web API will be hosted in Console Application or Windows Service.
2. IIS Hosting – Web API will also be hosted with IIS and the process can be similar to hosting a website.

Question 20.
How to consume Web API using HttpCIient?
Answer:
HttpCIient will be introduced in HttpCIient class for communicating with ASP.Net Web API. This HttpCIient class will be used in a console application or in an MVC application. Using Entity Framework, the implementation of Web API CRUD operation in MVC application .

Question 21.
Parameters in Web API
Answer:
Action methods in Web API will accept parameters as a query string in URL or it will accept with the request body.
For example to fetch particular product details the Get method will require an id parameter.

public IHttpActionResult GetProductMaster(int id)
{
ProductMaster productMaster = db.ProductMasters.Find(id);
if (productMaster == null)
{
return NotFound( );
}
return Ok(productMaster);
}

In the same way, the Post method will require complex type parameter to post data to the server.

public IHttpActionResult PostProductMaster(ProductMaster productMaster)
{
if (IModelState.lsValid)
{
return BadRequest(ModelState);
}
db.ProductMasters.Add(productMaster);
db.SaveChanges();
return CreatedAtRoute("DefaultApi", new {id = productMaster.id }, productMaster);
}
Similarly PUT method will require primitive data type example for id and complex parameter i.e. ProductMaster class, if (id != productMaster.id)
{
return BadRequest( );
}
db.Entry(productMaster).State = EntityState.Modified; try
{ 
db.SaveChanges();
} 
catch (DbUpdateConcurrencyException)
{
if (IProductMasterExists(id))
{
return NotFoundQ;
}
else
{
throw;
}
} return StatusCode(HttpStatusCode.NoContent);
}

Question 22.
Explain oData with ASP.Net Web API.
Answer:
OData is stand for Open Data Protocol, it will be a Rest-based data access protocol. OData will provide a way for querying and manipulating data using CRUD operation. ASP.Net Web API will support OData V3 and V4.
For using OData in ASP.Net Web API, We required the OData package by running below command in Package Manager Console.

Install-Package Microsoft.AspNet.Odata

Question 23.
Can we consume Web API 2 in C# console application?
Answer:
Yes, we consume Web API 2 in Console Application, Angular JS, MVC or any other application.

Question 24.
Perform Web API 2 CRUD operation using Entity Framework.
Answer:
We can perform CRUD operation using entity framework with Web API. We will read one of my blog for seeing the implementation of Web API 2 CRUD operation using Entity Framework.

Question 25.
How to Enable HTTPS in Web API?
Answer:
Steps to enable HTTPS in ASP.NET Web API,

  • Write a custom class which is inherited from AuthorizationFilterAttribute
  • Register that class in ASP.NET Web API Config
  • Apply [RequireHttps] attribute on API controller actions.
  • Create a temporary certificate for SSL.
  • Install the certificate
  • Enable HTTPS support to the development server in Visual Studio.

Write a custom class which is inherited from AuthorizationFilterAttribute

Write a custom class as shown below.

 public class RequireHttpsAttribute: AuthorizationFilterAttribute
{
 public override void OnAuthorization (HttpActionContext actionContext)
 {
If (act'ronContext.Request.RequestUri.Scheme ! = Uri.UrrScherrreHttps)
{
 actionContext.Response = new HttpResponseMessage (System.Net.HttpSta
 tusCode.Forbidden)
{
ReasonPhrase = "HTTPS Required for this call"
};
}
else
{
base.OnAuthorization(actionContext);
}
}
}

Register that class in ASP.NET Web API Config

To register custom HTTP filter class in web API configuration here are the settings.

// Web API configuration and services
config.Filters.Add(new RequireHttpsAttribute( ));

Remember this a global setting and will require all controller methods to run on HTTPS.

If we want to have a few methods to run on HTTP then in that case, just disable this setting. And use the [Requirehttps] attribute for individual methods.

Apply [RequireHttpsj attribute on API controller actions.

[RequireHttps]
public IEnumerable<string> Get ()
{
return new string [] {"valuel", "value2"};
}

Note
We need to use this [RequireHttps] attribute only in case we need to enable HTTPS only for selective API controller actions. Otherwise Web API configuration global settings are enough.

But if are targeting only a few API methods to run on HTTPS then we must disable the global configuration. Otherwise, all method calls will demand HTTPS.

Create a temporary certificate for SSL

To create a temp certificate run the following command in the command prompt.

makecert.exe -n ”CN=Development CA” -r -sv TempCA.pvk TempCA.cer

Once the certificate is created it will be saved on your machine at the path selected in the command prompt windows.

Now, we need to install it.

Install the certificate

For installing the certificate on your local machine, you need to do the following steps.

  • Open MMC (Management console) window
  • Then go to File – > Add or Remove Snap Ins
  • Then select Certificates from available Snap Ins
  • Then click on the ADD button
  • Then select Computer account in the window pane that opens
  • Then select Local Computer Account
  • Then click next and OK

Now the certificate snap is added to MMC.

Now we need to install the certificate by selecting it in a snap.

For that,

  • Go to Certificates; expand it.
  • Then Select “Trusted root certification Authorities”
  • Then Select Action-> All Tasks-> Imports
  • Select the certificate and finish.

Now, a temporary certificate is installed on your computer.

This certificate will be used for SSL communication on your machine, but apart frbtn !!> installation, you don’t need to do anything with respect to certificates.

Now, the next step is to enable Https for the development server.

Enable HTTPS support to development server in Visual Studio

For that do the following:

  • Open your web API solution in Visual Studio,
  • Then select the web API project in Solution Explorer.
  • Select View Menu in Visual Studio
  • Now select “Properties window” or click F4.
  • A window pane will open.
  • There select “SSL Enabled” property and set it to true

Now, the development server is ready to work with HTTPS too.

Question 26.
How to implement Basic Authentication in ASP.Net Web API?
Answer:
Basic Authentication is a simple authentication mechanism where the client will send request with an Authorization header with word Basic. In Basic Authentication, Authorization header will contain a word Basic followed by base 64 encoded string.
The syntax for Basic Authentication –

Authorization: Basic username: password

Question 27.
What Is Token Based Authentication in Web API?
Answer:
A better approach for securing .Net Web API is by authenticating users by a signed token which is called token-based approach.
In Token-based authentication –
A client will send a request to the server with the credential. If the provided credential is valid then the server will send a token to the client.
This token will contain user details for the identification with an expiry time.
Once the client will received the token, it will use this token to access API resources wherever authentication requires.
To implement Token-based authentication we need to install Microsoft.Owin from Nuget package.

Question 28.
What is content negotiation in .Net Web API?
Answer:
In ASP.Net Web API, content negotiation will be performed at the server-side. This is for determining the media type formatter for returning the response to an incoming request.

Question 29.
What is ASP.Net identity?
Answer:
ASP.Net identity is the membership management framework provided by Microsoft which will be easily integrated with Web API. This will help us in building a secure HTTP service.

Question 30.
What is Bearer Authenticating in .Net Web API?
Answer:
Bearer authentication is also called as Token-based authentication.

Question 31.
What is Rest?
Answer:
REST is stand for Representational State Transfer. This is an architectural pattern to exchange data over a distributed environment. REST architectural pattern can treat each service as a resource and a client will access these resources by using HTTP protocol methods such as GET, POST, PUT, and DELETE.

Question 32.
What is Not Rest?
Answer:
Following is Not Rest:
1. A protocol
2. A standard
3. A replacement of SOAP

Question 33.
When to choose WCF and Web API over the other?
Answer:
WCF (Windows Communication Foundation) is available in .NET to create both SOAP and REST services. A lot of configuration is needed to turn a WCF service into a REST service. To create REST services is ASP.NET Web API is better choice.

WCF is suited to build services which are transport/protocol independent. For example, we want to build a single service which can be consumed by 2 different clients – a Java client and .NET client. Java client will want the transport protocol to be HTTP and message format to be XML for interoperability, whereas the .NET client will expect the protocol to be TCP and the message format to be binary for performance. WCF is the right choice for this. Create a single WCF service, and configure 2 endpoints one for each client (one for the Java client and the other for the .NET client).

It is a bit more complex and configuration can be a headache to use WCF to create REST services. If we are stuck with .NET 3.5 or we have an existing SOAP service we should support but required to add REST to reach more clients, then use WCF.
If we will not have the limitation of .NET 3.5 and we required to create a brand new restful service then use ASP.NET Web API.

Question 34.
When do we need to choose Web API?
Answer:
Today, a web-based application is not sufficient to reach its customers. Peoples are using iPhone, mobile, tablets etc. devices in their daily life. These devices will have a lot of apps to make their life easy. Actually, we are moving towards apps world.
Therefore, if we want for exposing our service data to the browsers to all these modern devices apps in a fast and simple way, we will have an API which will be compatible with browsers as well as all these devices.

The ASP.NET WEB API is a great framework to build HTTP services which will be consumed by a broad range of clients including browsers, mobiles, iPhone and tablets. WEB API is open source and an ideal platform to build REST-full services over the .NET Framework.

Question 35.
What are RESTful services?
Answer:
REST is stand for Representational State Transfer. The REST was first introduced in the year 2000 by Roy Fielding as part of his doctoral dissertation. REST is an architectural pattern to exchange the data over a distributed environment. REST architectural pattern will treat each service as a resource and a client will access these resources by using HTTP protocol methods such as GET, POST, PUT, and DELETE. The REST architectural pattern will specific a set of constraints which a system should adhere to. Following are the REST constraints:

1. Client-Server constraint –
This is the first constraint. This constraint will specify which a Client will send a request to the server and the server will send a response back to the client. This separation of concerns can support the independent development of both client-side and server-side logic. That means client application and server application can be developed separately without any dependency on each other. A client will only know resource URIs and that’s all. Severs and clients will also be replaced and developed independently as long as the interface between them will not be altered.

Stateless constraint –
The next constraint is the stateless constraint. The stateless constraint will specify that the communication between the client and the server should be stateless between requests. We will not be storing anything on the server related to the client. The request from the client will contain all the necessary information for the server for processing that request. This will ensure that each request will be treated independently by the server.

Cacheable constraint –
Some data will be provided by the server such as the list of products, or list of departments in a company will not change that often. This constraint states that let the client know how long this data will be good for therefore the client will not have to come back to the server for that data over and over again.

Uniform Interface constraint-
The uniform interface constraint will define an interface between the client and the server. To understand the uniform interface constraint, we required to understand what a resource is and the HTTP verbs – GET, PUT, POST and DELETE. In the context of a REST API, resources typically represent data entities. The product, Employee, Customer, etc. are all resources. The HTTP verb (GET, PUT, POST, and DELETE) which is sent with each request informs the API what to do with the resource. Each resource will be identified by a specific URI (Uniform Resource Identifier).

Layered System-
REST will allow us to use a layered system architecture where we can deploy the APIs in server A, and will store data on server B and authenticate requests in server C. For example, a client will not ordinarily state whether it will be connected directly to the server or to an intermediary along the way.
1. SOAP Performance is slow as compared to REST.

Question 36.
What are the differences between REST and SOAP?
Answer:
The difference between REST and SOAP is following:
1. SOAP will stand for Simple Object Access Protocol whereas REST stands for Representational State Transfer.
2. The SOAP is an XML which is based protocol whereas REST will not a protocol but it is an architectural pattern example for resource-based architecture.
3. SOAP has specifications for both stateless and state-full implementation whereas REST will be completely stateless.
4. SOAP will enforce message format as XML whereas REST will not enforce message format as XML or JSON.
5. The SOAP message is consist of an envelope that will include SOAP headers and body for storing the actual information we required for sending whereas REST will use the HTTP build-in headers with a variety of media-types for storing the information and it will use the HTTP GET, POST, PUT and DELETE methods for performing CRUD operations.
6. SOAP will use interfaces and named operations for exposing the service whereas to expose resources (service) REST will use URI and methods such as GET, PUT, POST, DELETE.

Question 37.
What are the differences between ASP.NET MVC and ASP.NET Web API?
Answer:
Following are some of the differences between MVC and Web API

MVC
1. MVC is used for creating a web app, in which we will build web pages.
2. For JSON it can return JSONResult from an action method.
3. All requests will be mapped to the respective action methods.

Web API
1. This is used for creating a service using HTTP verbs
2. This will return XML or JSON to the client.
3. All request will be mapped to actions using HTTP verbs.
There are some following differences between ASP.NET MVC and WEB API:
1. MVC can be used for creating web applications which will return both views and data but ASP.NET WEB API will be used for creating rest full HTTP services with the easy and simple way which will return only data, not view.
2. WEB API will help for building REST-full services over the .NET Framework and it will also support content-negotiation that is not in MVC.
3. WEB API will also take care of returning data in a particular format such as JSON, XML or any other based upon the Accept header in the request. MVC return data in JSON format using JsonResult.
4. In WEB API the request will be mapped to the actions based on HTTP verbs but in MVC it will be mapped to actions name.
5. We will mix WEB API and MVC controller in a single project for handling advanced AJAX requests which will return data in JSON, XML or any others format and building a full-blown HTTP service. Typically, this can be called WEB API self-hosting.
6. WEB API is lightweight architecture and will except the web application, it will also be used with smartphone apps.

Question 38.
Is it true that ASP.NET Web API has replaced WCF?
Answer:
No, t ASP.NET Web API has not replaced WCF. It is an other way of building non-SOAP based services, for example, plain XML or JSON string, etc.
Yes, it will have some added advantages such as utilizing the full features of HTTP and reaching more clients like mobile devices, etc.
WCF is a better choice for the following scenarios:
1. If we are intended to use transport other than HTTP, example for TCP, UDP or Named Pipes
2. Message Queuing scenario will be using MSMQ.
3. One-way communication or Duplex communication.

Question 39.
Explain media Formatters in Web API 2
Answer:
Web API will handle JSON and XML formats which is based on the Accept and Content-
Type header values.
The Media-Type Formatters are classes which will be responsible for serializing request/response data therefore that web API will understand the request data format and send data in the format that client expects.
Technically MediaTypeFormatter is an abstract class from which JsonMediaTypeFormatter and XmlMediaTypeFormatter classes inherit from. JsonMediaTypeFormatter which will handle JSON and XmlMediaTypeFormatter handles XML.

Question 40.
How to return only JSON from ASP.NET Web API Service irrespective of the Accept header value?
Answer:
The following line should be included in Register!) method of WebApiConfig.es file in App_Start folder. This line of code will completely remove XmlFormatter that will force ASP.NET Web API to always return JSON irrespective of the Accept header value in the client request. Use this technique when we required our service for supporting only JSON and not XML.

With this change, irrespective of the Accept header value (application/xml or application/json), the Web API service will always going to return JSON. config. Formatters. Remove(config.Formatters.XmlFormatter);

Question 41.
How to return JSON instead of XML from ASP.NET Web API Service when a request is made from the browser?
Answer:
We can return JSON instead of XML from ASP.NET Web API Service when a request is made from the browser in following way:
1. when a request will be issued from the browser, the web API service will return JSON instead of XML.
2. When a request can be issued from a tool such as a fiddler the Accept header value will be be respected. This means if the Accept header will set to application/xml the service should return XML and if it will be set to application/json the service should return JSON.
There are 2 ways to achieve this

Approach1:
The following line should be included in Register!) method of WebApiConfig.es file in App_Start folder. This states ASP.NET Web API to use JsonFormatter when a request will be made for text/html which is the default for most browsers. The problem with this approach is that the Content-Type header of the response will be set to text/html which is misleading.
config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new
MediaTypeHeaderValue(“text/html”));

Approach2:
The following clas should be included in WebApiConfig.es file in App_Start folder.
Register Formatter:
Place the following line in RegisterQ method of WebApiConfig.es file in App_Start folder

Question 42.
Which protocol is supported by WebAPI?
Answer:
WebAPI will supports only HTTP protocol.So it will be consumed by any client which can support HTTP protocol.

Question 43.
What are the Similarities between MVC and WebAPI.
Answer:
Both are based on the same principle of Separation of concerns.
• Both have similar concepts such as routing,controllers and models.

Question 44.
Differences between MVC and WebAPI
Answer:
MVC will be used to develop applications which have User Interface.Views in MVC can be used for developing user interface.
• WebAPI will be used to develop HTTP services.Other applications call the WebAPI methods to fetch the data.

Question 45.
Who can consume WebAPI?
Answer:
Following can consumes WebAPI:

  • WebAPI will be consumed by any client which can support HTTP verbs like GET,PUT,DELETE,POST.
  • Since WebAPI services will not require any configuration they are very easy to consume by any client.
  • Even portable devices like Mobile devices can easily consume WebAPI.lt is the biggest advantages of WebAPI.

Question 46.
How are Requests mapped to Action methods in WebAPI?
Answer:
Since WebAPI will use HTTP verbs so a client which can consume a WebAPI requires some way to call the WebAPI method.
Client will use HTTP verbs to call the WebAPI action methods.For example to call a method called GetEmployee a client will use a jQuery method as:

$.get("/api/Employees/l", null, function(response) {
$("#employees").html(response);
});

 

Therefore, there is no mention of the method name above.Instead GetEmployee method will be called using the GET HTTP verb.
We define the GetEmployee method as:

[ttpGet]
public void GetEmployee(int id)
{
StudentRepository.Get(id);
}

As we will see the GetEmployee method is decorated with the [HttpGet] attribute.We will use different verbs to map the different HTTP requests:

  • HttpGet
  • HttpPost
  • HttpPut
  • HttpDelete

Question 47.
Can the HTTP request will be mapped to action method without using the HTTP attribute ?
Answer:
There are actually two ways to map the HTTP request for action method.One of the ways is to use the attribute on the action method .There is another way is to just name method starting with the HTTP verb.For example if we required to define a GET method we can define it as:

public void GetEmployee(int id)
{
StudentRepository.Get(id);
}

The above method will be automatically mapped with the GET request since it can start with GET.

Question 48.
What is the base class of WebAPI controllers?
Answer:
APIController is the base class from which all WebAPI controller derive Providing an alias to WebAPI action method
By using the ActionName attribute.For example we Can rename the GetEmployee action method as:

[ActionName("GetSingleEmployee")]
 public void GetEmployee(int id)
{
StudentRepository.Get(id);
}

Question 49.
What types can WebAPI action method return?
Answer:
WebAPI will return any of the following types:

  • void This means WebAPI will not returns any data.
  • HttpResponseMessage This allows to have control over the response.
  • IHttpActionResult This acts as the factory for creating HttpResponseMessage.
  • Custom type Any custom type.WebAPI uses different Media formatters to serialize custom type.

Question 50.
Can a WebPI return an HTML View?
Answer:
WebAPI will return data so views will not returned from WebAPl.lf we want to return views then using MVC is better idea.

Question 51.
How can you give a different name to action method ?
Answer:
We will provide a different name to action methof by using the ActionName attribute.For example if we want to rename a method called GetStudent to search then We can use the ActionName attribute as:

[ActionName("search")j
public ActionResult GetStudent(int id)
{
// get student from the database
 return View();
}

Question 52.
What is routing in WebAPI?
Answer:
Routing in WebAPI is used to match URLs with different routes.Routes specify which controller and action can handle the request.Routes will be added to the routing table in the WebApiConfig.es as:

routes.MapHttpRoute(
name: “API Default”,
routeTemplate: “api/{controller}/{id}”,
defaults: new {id = RouteParameter.Optional}
);
Routing mechanism can also be used in MVC.

Question 53.
What is MessageHandler?
Answer:
Message handler can be used to receive an HTTP request and to return HTTP response.Message handlers will be implemented as classes deriving from HttpMessageHandler.They will implement the cross-cutting concerns.
Question 54.
How WebAPI is useful in creating RESTful web services
Answer:
REST is stand for ‘Representational State Transfer’.It is an architectural pattern and will use HTTP as the communication meachnism.ln a REST API resources will be the entities
which are represented using different end points.
Question 55.
WebAPI is used for creating RESTful web services?
Answer:
WebAPI controllers will represent different entities in application and different action methods will be mapped using HTTP verbs like POST and GET.
Question 56.
Will you lose all of your work if you accidentally exit a container?
Answer:
No, We won’t lose any information, data and other parameters if we accidentally exit the Docker container. The only way to lose progress would be to issue a specific command to delete the container – exiting it won’t do the files within any harm.
Question 57.
Can Web API return view in MVC?
Answer:
We will not return view from Web API.
Question 58.
How to restrict access to methods with specific HTTP verbs in Web API?
Answer:
With the help of Attributes such as http verbs one will implement access restrictions in WebAPI.
We will define HTTP verbs as attribute over method for restricting access.
Example :
[HttpPost]
public void SampleMethod(SampleClass obj)
{
//logic
}

Question 59.
What is Web API Routing?
Answer:
Routing is pattern matching such as in MVC.
All routes can get registered in Route Tables.
Example :
Routes. MapHttpRoute(
Name: “SampleWebAPIRoute”,
routeTemplate: “api/{controller}/{id}
defaults: new {id = RouteParameter.Optional}
};

Question 60.
What are the return types supported in Web API?
Answer:
A A Web API controller action will return any of the following:
1. void – this type returns will empty content (Status Code :204)
2. HttpResporrseMessage – this can convert response for an HTTP response message.
3. IHttpActionResult – internally calls will ExecuteAsync for creating an HttpResponseMessage.
4. Some other type – we will write the serialized return value into the response body.
Question 61.
What is the namespace for IHttpActionResult return type in Web API?
Answer:
System.Web.Http.Results namespace
Question 62.
What is the disadvantage of “Other Return Types” in Web API?
Answer:
The main disadvantage of this approach is that we will not directly return an error code such as 404 error.
Question 63.
What are the default media types supported by Web API?
Answer:
Web API will support XML, JSON, form-urlencoded data, BSON and also can support additional media types by writing a media formatter.
Question 64.
How do you construct HtmIResponseMessage?
Answer:
Following is the way for constructing to do,
public class TestController: ApiController
{
public HttpResponseMessage Get( )
{
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, "value");
response.Content = new StringContent("Testing", Encoding.Unicode);
response.Headers.CacheControl = new CacheControlHeaderValueQ
{ 
MaxAge = TimeSpan.FromMinutes(20)
};
return response;
}
}

Question 65.
What is the status code for “Emptry return type” in Web API?
Answer:
void will return empty content and its code is 204.

Question 66.
What is HTTPResponseMessage?
Answer:
This will represent the response of the WebAPI action method.lt can allow to return the data along with the status code such as success or failure.
In the following example if the passed Roll Number exists in the list of students then the method returns the Student object and the status code “OK” while if the roll number doesn’t exists then “NotFound” status code is returned
public HttpResponseMessage GetStudent(int number)
{ 
Student stud = studentList.Where(student => student.rolINo
== number). FirstOrDefault( ) ;
if (stud != null)
{ 
return
Request.CreateResponse(FlttpStatusCode.OK, 
stud); 
} 
else 
{ 
return Request.CreateErrorResponse(FlttpStatusCode.NotFound, "Student Not Found");
}
}

Question 67.
Is it possible to have MVC kind of routing in Web API?
Answer:
Yes, we will implement MVC kind of routing in Web API. )

Question 68.
Where is the route is defined in Web API?
Answer:
Route can be defined in the WebApiConfig.es file, that will be placed in the App_Start directory.
App_Start -> WebApiConfig.es
routes.MapHttpRoute(
name: “myroute”,
routeTemplate: “api/{controller}/{id}”,
defaults: new {id = RouteParameter.Optional} ;
); :
Question 69.
Why “api/” segment is used in Web API routing?
Answer:
It will be used for avoiding collisions with ASP.NET MVC routing
Question 70.
Explain Action Results in WebAPI ?
Answer:
void : Nothing return
HttpResponseMessage : Convert directly to HTTp Response message
IHttpActionResult: CaH ExecuteAsync for creating artHttpResponseMessage, change to an HTTP response message.
Some other type : Write a serialized return value HttpResponseMessage Example :
public HttpResponseMessage GetData( )
{
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, "value");
response.Content = new StringContent("hello", Encoding.Unicode);
response.Headers.CacheControl = new CacheControlHeaderValue( )
{
MaxAge = TimeSpan.FromMinutes(20)
};
return response;
}
public HttpResponseMessage GetData( )
{
// Get a list of Students from a database.
Enumerable students = GetStudentsFromDB( );


// Write the list to the response body.
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, students);
return response;
}

IHttpActionResult:

It defines an HttpResponseMessage
Simplifies unit testing your controllers.
Moves common logic to create HTTP responses to separate classes.
create the intent of the controller action clearer, to hide the low-level details of
constructing the response.
public class MyResult: IHttpActionResult
{


string _value;
HttpRequestMessage _request;


public MyResult(string value, HttpRequestMessage request)
{
_value = value;
_request = request;
}
public Task ExecuteAsync(CancellationToken cancellationToken)
{
var response = new HttpResponseMessageQ
{
Content = new StringContent(_value),
RequestMessage = _request
};
return Task.FromResult(response);
}
}


public class ValuesController: ApiController
{
public IHttpActionResult Get()
{
return new MyResult("Pass", Request);
}
}

Question 71.
How parmeters gets the value in WebAPI ?
Answer:
The following way parameters get the values
1) URI
2) Request body
3) Custom Binding

Question 72.
How to enable Attribute routing ?
Answer:
For enabling attribute routing, call MapHttpAttributeRoutes( ); method in WebApi config file.
public static void Register(HttpConfiguration config)
{
// Web API routes
config. MapHttpAttributeRoutesQ;
// Other Web API configuration not shown.
}

Question 73.
Can we apply constraints at route level ?
Answer:
Yes we will apply.
[Route(“students/{id:int}”]
public User GetStudentByld(int id) {…}

[Route(“students/{name}”]
public User GetStudentByName(string name) {…}
The first route can only be selected whenever the “id” segment of the URI is an integer. Otherwise, the second route can be chosen.
Question 74.
How to mention Roles and users using Authorize attribute in Web API?
Answer:
// Restrict by Name
[Authorize(Users="Shiva,Jai")]
public class StudentController: ApiController
{
}
// Restrict by Role [Authorize(Roles=" Administrators")] public class StudnetController: ApiController
{
}

Question 75.
How to enable SSL to ASP.NET web?
nswer:
To enable SSL to ASP.NET web , click project properties there we will see this option.

Question 76.
How to add certificates to website?
Answer:
1. go to run type command mmc
2. click on ok
3. its opend certificate add window

Question 77.
Write a LINQ code for authenticate the user?
Answer:

public static bool Login(string UN, string pwd)
{
StudentDBEntities students = new StudentDBEntitiesQ
students.sudent.Any(e => e.UserName.Equals(UN) && e=>e.Password.Equlas(UN)) //
students has more than one table
}

Question 78.
How to navigate other page in JQuery?
Answer:
using widow.location.href = “~/homw.html”;

Question 79.
Exception handling in WebAPI?
Answer:
The HttpResponseException most common exception in WebAPI.

public Product GetStudentDetails(int rno)
{
Student studentinfo = repository.Get(rno);
if (studentinfo == null)
{
throw new HttpResponseException(HttpStatusCode.NotFound);
}
return studentinfo;
}

we will handle the exceptions at action method level or controller level using exception filters.

if we required to apply any filter to entire application , register the filter in WebAPI confil file

using Exception hadlers and Exception loogers aslo can handle the Exceptions

Question 80.
What is NonActionAttribute class in WebAPI?
Answer:
If we required to restrict the particular actionmethod accessing from browser, we will
NonAction attribute.public ActionResult
[NonAction]
public ActionResult lnsert(){ return View( );
}
Above method not getting access from browser

Question 81.
How parameter binding works in Web API?
Answer:
Following are the rules followed by WebAPI before binding parameters –
1. If it is simple parameters such as bool,int, double etc. then value can be obtained from the URL.
2. Value is read from message body in case of complex types.

Question 82.
Can we do unit test Web API?
Answer:
Web API will be unit test by using Fiddler tool.
Following is the settings to be updated in Fiddler:
Compose Tab -> Enter Request Pleaders -> Enter the Request Body and execute

API Stands for Application Program Interface. It is a framework that consists of various components of a small software package to interact between the applications or interfaces. Web API is an Application Program Interface used in web applications, The Web API gives lot of flexibility for the developers to build a configurable system, also it enables easy maintenance of system in future. Almost every new application uses API framework in these days.

Research Methodology Lecture Notes | Syllabus, Reference Books and Important Questions

Research Methodology Lecture Notes

Research methodology notes: Students can refer to the Big Data Lecture Notes For CSE as per the latest and updated syllabus from this article.

Introduction to Research Methodology

A research methodology is defined as the process of identifying, selecting, processing and analysing information. With so much information available online, it isn’t easy to get a clearer picture of the topic under study in this information-rich age. The objective of this course is to provide the students with the know-how of research methodologies. It is how a researcher designs the study for obtaining results for the aim and objective of the study. It tells us how the researcher went through the process of researching the topic, what data is collected, how it is collected, and how he analyses it.

Research methodology might sound complex with all the technical terminology that revolves around the topic. The objective of the course is, therefore, to provide an in-depth and clear understanding of this topic so that researchers know as to how to conduct studies for any topic. To help you with this course, Research methodology lecture notes pdf is designed. The pdf contains a comprehensive explanation of the concepts. You can download this pdf for free. For any further details click on the link below:

Download Research Methodology Lecture Notes

Just like the boundaries of research are not limited, your learning isn’t either. The process of research methodology does sound like a lot of work. Also, the terms and concepts can be a bit overwhelming. To aid you in your preparations of the subject, you can download the Research methodology lecture notes pdf for free and kick start your preparations. The pdf is written in a simple language to make sure that you understand the terms and concepts clearly.

This pdf is one of the few reliable and accurate study materials available online. Experts of the subject verify these pdf. Also, these are recommended by students and teachers. These are great for a quick revision because they are well categorized. You can freely download the pdf from the links given below-

  • Research methodology lecture notes pdf
  • Research methodology free lecture notes
  • Handwritten notes for research methodology
  • Sample question paper for research methodology
  • Research methodology notes pdf free download.

Reference books for Research Methodology

Books are a great referencing tool. They are filled with examples to solidify your conceptual learning. But finding the right reference book can be a daunting task. Given below is a list of reference books students can use in their preparations. These will help you in your learning and understanding of the course. The contents are well categorised to increase the ease of using it as a referencing tool. Students are required to go through these concepts regularly.

The list is in no particular order. It is advised to go for a newer edition, if available. The newer editions will include changes in the syllabus if there are any. Most of these are available online as free pdf also, so make sure to check it too.

  • Business Research Methods by Donald Cooper, Pamela Schindler(9th edition).
  • Business Research Methods(Oxford University Press) by Alan Bryman & Emma Bell.
  • Research methodology: Methods and techniques by C.R.Kothari
    Introducing research methodologies: A beginner’s guide, Uwe Flick (2011)
  • Essentials of research designing and methodologies by Geoffrey R. Marczyk (2005)
  • The craft of research by William T. Fitzgerald (Fourth edition)
  • Designing and researching by Vicki L. Plano Clark (2006)
  • Research methodology, Panneerselvam (2014)
  • Social research methods (2001)
  • Qualitative Research analysis: A method resource book (A. Michael Huberman)
  • Conducting educational research by Bruce Tuckman
  • Fundamental of research methodologies and statistics by Y.K. Singh (2006)

Research Methodology syllabus

The research methodology is a wide field of study. The further you go, you will find more complex methodologies. The course syllabus is designed to lay down a proper foundation of the subject. Also, it tries to simplify the complexities around the subject. Students should be well versed with the course requirements. This course is all about practical applicability of the theoretical concepts. To develop a grasp over the concepts, terms, methodologies and applications, it is advised to develop a habit of regularly going over your course contents.

The course module is divided into ten units. Each unit has a theoretical foundation and is built upon that. Every research starts with the aims and objective of the research. Rightly so the course begins like that and is like a step by step guide to a proper research methodology. Given below is the topic-wise distribution of each unit.

UNIT 1 Foundations of Research: Meaning, Objectives, Motivation, Utility. Concept of theory, empiricism, deductive and inductive theory. Characteristics of the scientific method – Understanding the language of research – Concept, Construct, Definition, Variable. Research Process
UNIT 2 Problem Identification & Formulation – Research Question – Investigation Question – Measurement Issues – Hypothesis – Qualities of a Good Hypothesis –Null Hypothesis & Alternative Hypothesis. Hypothesis Testing – Logic & Importance
UNIT 3 Research Design: Concept and Importance in Research – Features of a good research design – Exploratory Research Design – concept, types and uses, Descriptive Research Designs – concept, types and uses. Experimental Design: Concept of Independent & Dependent variables.
UNIT 4 Qualitative and Quantitative Research: Qualitative research – Quantitative research – Concept of measurement, causality, generalization, replication. Merging the two approaches.
UNIT 5 Measurement: Concept of measurement– what is measured? Problems in measurement in research – Validity and Reliability. Levels of measurement – Nominal, Ordinal, Interval, Ratio.
UNIT 6 Sampling: Concepts of Statistical Population, Sample, Sampling Frame, Sampling Error, Sample Size, Non-Response. Characteristics of a good sample. Probability Sample – Simple Random Sample, Systematic Sample, Stratified Random Sample & Multi-stage sampling. Determining the size of the sample- Practical considerations in sampling and sample size.
UNIT 7 Data Analysis: Data Preparation – Univariate analysis (frequency tables, bar charts, pie charts, percentages), Bivariate analysis – Cross tabulations and Chi-square test including the testing hypothesis of association.
UNIT 8 Interpretation of Data and Paper Writing – Layout of a Research Paper, Journals in Computer

Science, the Impact factor of Journals, When and where to publish? Ethical issues related to publishing,

Plagiarism and Self-Plagiarism. 

UNIT 9 Use of Encyclopedias, Research Guides, Handbook etc., Academic Databases for Computer Science Discipline.
UNIT 10 Use of tools/techniques for research: methods to search required information effectively, Reference Management Software like Zotero/Mendeley, Software for paper formatting like LaTeX/MS Office, Software for detection of Plagiarism

Theoretical problems of Research Methodology

The research methodology is a practical field. Even then, students should know the concepts and terms that are commonly used. To better understand the practical aspect, it is equally important to understand the theoretical know how. These are sample questions to give the students a brief outlook of what the course contents are and what type of questions are asked in the question paper. Students can refer to these questions and keep them as a base in preparing for their examinations.

  • What are the disadvantages of closed-end questions?
  • What is a control group?
  • Explain the test of significance.
  • What is the need for research design?
  • What is the role of theoretical perspective?
  • What is the sample size?
  • Explain the null hypothesis?
  • Explain Plagiarism.
  • What are TypeType I and type II errors?
  • How do we create a questionnaire?
  • What are the factors that affect a research design?
  • Explain interviewing techniques.

Frequently Asked Questions on Introduction to Research Methodology

Question 1.
Differentiate between Qualitative and quantitative research?

Answer:
Qualitative and Quantitative are two different types of methodologies researchers use in their studies. Usually, a mix of both of these methods is used.

Qualitative research – Qualitative as the name suggests, refers to collecting and analysing spoken or textual data. Often one-on-one interviews are qualitative. We also look for weak data points such as the body language and visual data elements. If the research is exploratory, usually qualitative research techniques are used. For example,- A study for people’s choice for Prime minister in the upcoming elections will be qualitative research.

Quantitative research – It is defined as collecting and analysing numerical data. Data points are often numeric, and we study those data points to conclude our study. Quantitative research is more commonly used in confirmatory research. For example,- To test a hypothesis, we often use quantitative research methods.

Question 2.
What are the four types of research methodologies?

Answer:
Data is grouped into four categories based upon the method of collection. These are observation, experimental, simulation and derived data.

  1. Observational Data -Data is captured through observation of a behaviour or activity. Data points are flexible, and often open-ended surveys are used.
  2. Experimental data – A causal relationship is derived that applies to a much larger population. These are tiresome and require time and effort; therefore, these are the most reliable. Experimental data is derived by measuring the variable.
  3. Simulation Data – Sometimes, a real life model is used to imitate the population behaviour and then research is conducted. The researcher sets the environment and conditions to determine what could happen when.
  4. Derived data – Often, data is available to us. These data points are used to find a new set of data points. Existing data points are used, often from other sources.

Question 3.
What are the principles of Scientific Research?

Answer:
Principles of scientific research deals with the systematic and rigorous use of research methodologies to find the results of a study. This is often defined as a 5 step process:

  1. Development of a logical chain of reasoning to clearly define the objectives of the research and why the researcher uses a particular research method.
  2. Using methods that are appropriate for the research type. It depends if the research undertaken is exploratory or confirmatory in nature.
  3. Finding correct research designs to come to any conclusion or findings of the research. It is necessary to provide reliable information.
  4. Using data points to strengthen the findings. The data used should be accurate and from a reliable source.
  5. Explaining the procedure and results clearly in detail and including any relevant information.

Question 4.
What are the steps involved in a research methodology problem?

Answer:
A research problem is a statement about an area of concern, a condition to be improved, a difficulty that is to be eliminated, or a troubling question that exists in scholarly literature, in theory, or in practice that needs to be studied and evaluated thoroughly to develop a probable action against it. A step-wise method is designed to solve any research problem. The method is not absolute, but just a framework as to how the problem is to be tackled.

Steps in the Formulation of Research Problem:

  • Identify a broad field or subject area of interest to you
  • Dissect the broad area into subareas
  • Select what is of most interest to you
  • Raise the research question
  • Formulate objectives
  • Access your objectives

Conclusion

The objective of the course is to develop a clearer understanding of research methodology and its techniques in the students. The pdf is designed to help students in this. The research methodology is a vast field of study. If students are looking to study further in this field, it is imperative to develop a firm base first. With a better understanding of the concepts, students will not only score well but also develop an in-depth understanding of the course.

Autocad command list – AutoCAD Keyboard Shortcuts | List of AutoCAD Commands and Shortcut Keys

AutoCAD Keyboard Shortcuts

AutoCAD Keyboard Shortcuts: In today’s world, nearly everything is designed with CAD software these days, and AutoCAD is one of the most widely used programs. Offering features and functions that stand out, AutoCAD has revolutionized the design and engineering fields and can be applied to almost any industry.

So, for beginners and professionals to get the most out of AutoCAD, it’s necessary to know how to use it efficiently by learning the most useful shortcuts and commands discussed in this article.

Wondering How to explore & learn Shortcut Keys for various Operating Systems, Computer Software Programs, Social media applications Keyboards? Here is the one-stop destination for all Keyboard Shortcuts, just take a look & memorize regularly for better performance in competitive exams & real-time situations.

Table of Content

Keyboard Shortcuts for AutoCAD

Autocad command list: The most important shortcuts that you must know are the keyboard combinations. These combinations increase your productivity and help you navigate AutoCAD’s interface with ease. These shortcuts help save the time and effort that one would have to give if these shortcuts weren’t there. Here below, we will list the significant keyboard shortcuts that we use in AutoCAD.

For Drawing Modes

Keyboard Shortcut Function
F1 Display Help
F2 Toggle text screen
F3 Toggle OBJECT SNAP MODE or OSNAP
F5 Toggle ISOPLANE
F6 Toggle COORDS
F7 Toggle GRIDMODE
F8 Toggle ORTHO MODE
F9 Toggle SNAP MODE
F10 Toggle POLAR MODE
F11 Toggle object snap tracking
F12 Toggle dynamic input mode

AutoCAD Keyboard Shortcuts 1

To Manage Screen & Workflow

Keyboard Shortcut Function
Ctrl + 0 Clean Screen
Ctrl + 1 Property Palette
Ctrl + 2 Design Centre Palette
Ctrl + 3 Tool Palette
Ctrl + 4 Sheet Set Palette
Ctrl + 7 Mark-up Set Manager Palette
Ctrl + 8 Quick Calc
Ctrl + 9 Command Line
Ctrl + C Copy object
Ctrl + X Cut object
Ctrl + V Paste object
Ctrl + Shift + C Copy to clipboard with base point
Ctrl + Shift + V Paste data as block
Ctrl + Shift + L Change text into lower case
Ctrl + Shift + U Change text into upper case
Ctrl + Z Undo last action
Ctrl + Y Redo last action
Ctrl + [ (or Ctrl + \) Cancel current command
Esc Cancel current command

AutoCAD Keyboard Shortcuts 2

For Other General Features

Keyboard Shortcut Function
Ctrl + E Cycle isometric planes
Ctrl + F Toggle running object snaps
Ctrl + G Toggle Grid
Ctrl + H Toggle Pick Style
Ctrl + Shift + H Toggle display palettes

Commands for AutoCAD

Autocad shortcuts keyboard: Commands are to be used by entering them in the command bar at the bottom of the screen. AutoCAD suggests similar commands that might start with the same characters as you type the characters in the command bar. The below list is about some of the basic commands that will be helpful to you in the AutoCAD drawing interface.

Basic Commands

  • ARCTEXT: This command lets you add text or write in an arc shape. It adds text over an existing arc or for getting quirky appearances.
  • AUDIT: Auditing your drawings frequently helps you avoid unnecessary errors that may later show up and corrupt the drawings. You must use this command periodically to review any errors and correct them instantly.
  • CAL: It’s practically impossible to sketch any drawing without performing some basic arithmetic in the drawing. Often, the measurements that you have are not enough to sketch out a perfect drawing. Using this command, you can perform the basic operations in the command line itself without having to use a calculator or exiting another window.
  • CLOSEALL: This command is used to close all the windows and tabs currently open in your AutoCAD. This shortcut doesn’t exit directly to the desktop but takes you to the main interface or home screen of AutoCAD.
  • COPY:  Whenever you need to copy objects, you can use this command.
  • DIST: It’s not always possible to dimension every object that’s in the drawing. In this case, this command comes in handy to quickly find the distance between two points in your drawing.
  • LIST: This command presents you with information about the various properties of a drawing element, such as the area, length, radius, and centre point of an element.
  • OOPS: In a situation where you have accidentally deleted an entire drawing and performed various actions over it, you can use the UNDO command, but the drawback is that it reverses only a certain number of steps. Preferably, the OOPS command comes in handy to recover the entire drawing in an instant. The command OOPS brings everything back at once.
  • PREVIEW: It’s always good to know how your drawing will be represented once it’s finished. Previewing it is an excellent way to analyse the outcome. It gives you a forecast. Based on that, you can alter any elements you would like to in the drawing.
  • RECOVERALL: This command works similarly to the AUDIT command. It lets you retrieve the file and other external references (XREFs), if any, that are included in your drawing. It’s a helpful command for fixing any errors and retrieving your drawing.
  • SAVEALL: It’s a good habit to save your current or ongoing work. But it’s a tedious job to switch tabs and save every drawing. Hence, this command saves all the drawings and tabs in a project to avoid extra work. This way, you can be sure that all your work is saved.
  • SPELL: We often need to use text in AutoCAD to annotate dimensions, images, objects, among other things, and a lot of time, we are bound to make spelling mistakes. So, this command performs a spell check on the selected texts and flags any mistakes or errors.
  • TIME: This command notifies you about the time that you’ve spent working on a drawing. It shows all the details about the starting time of the drawing to the time it was last edited. It’s a useful command if you want to analyse your performance in AutoCAD. This is also very useful for quoting time frames for projects.

Commands for Modifications

Auto cad commands list: The following list of commands helps you in being more productive as you’re drawing. These will help you in editing elements of your drawings quickly; rather than manually moving to each element in the pallets and selecting it, you can type a command to execute the action.

  • ALIGN: The feature ALIGN will, instead of selecting and moving the object manually to a point, quickly aligns the surfaces of two selected objects. An example to explain this command is when you want to align a sofa chair to the edge of the wall.
  • BREAK: To cut off a specific part of a section from any line, you can use this command. Using this command, you can choose the breakpoints on a line. So, in place of deleting the entire line, BREAK deletes only the selected part of a line.
  • CHAMFER: Chamfer is one of the most popular features of AutoCAD drawings used to sketch an angled edge in the drawing that gives an aesthetic appearance while eliminating sharp edges in the model. We can use this command in both 2D and 3D drawings.
  • ERASE: To draw an element then erase it is a very common phenomenon. This command helps in saving time and erase entire elements in the drawings in a single move.
  • EXTEND: To connect the edges of one line to the edge of another line, you don’t need to drag the endpoint of a line to meet with another. Instead, select the two lines, and they get automatically connected. The main benefit is that you can extend multiple lines at the same time to meet a surface.
  • FILLET: The fillet command is used if you need a rounded corner in a drawing. It lets you quickly add a fillet to any edges of your selection. Fillets and chamfers are commonly used as a weight-saving feature and a safety measure.
  • GROUP: When you need to regularly copy, move, or edit only certain drawing elements, you can work on them all at once by grouping them. It will save you from selecting each element every time.
  • LAYER: Layers are one of the many essential features in AutoCAD. Using this command, designers can carry out a drawing across various levels. For example, one might create a layer for dimensions, a floor plan layer, a layer for furniture, and many more. Managing layers effectively is essential, and this command lets you easily access the Layer Properties Manager.
  • MIRROR: This is useful in symmetrical drawings as you can draw one half, then mirror the other half, saving a lot of time and ensure accuracy.
  • OVERKILL: It’s very simple to get many lines on top of each other, but it isn’t very beneficial and may lead to errors in the final output of the drawing. If you select and delete each overlapping line manually, it may lead to more errors and take a lot of time. With this command, you can delete the elements that are overlapping in your drawing, and even it informs you about its deleted lines.
  • PURGE: While working in AutoCAD, you may insert many objects and elements that you may not have used in the drawing. These elements can cause unnecessary errors and also increase the overall file size. Using this command, you can delete all these elements at once.
  • SCALE: Scale is one of the most heavily used features in AutoCAD as you’re always needed to scale your drawings, XREFs, PDFs, and many other things in AutoCAD for various purposes.
  • SCALETEXT: Different to the regular SCALE command, which is used to scale entire drawings and objects, this command is used to scale only the text in a drawing. It’s always better to match the scale of your text to the scale of your drawing.
  • TEXTFIT: With this command, you can auto-scale your text to fit inside a space without any need to change scales or look at whether or not the text fits a box. This command will fit your text within the selected boundaries.
  • TRIM: This command is used to shorten a line or any unwanted edges. It’s popularly used to trim off any hanging lines and maintain the boundaries of the drawing. If you execute this command, the entire line will be trimmed up to the nearest edge in a drawing.

Commands for Dimensions

After navigation and drawing, we need the dimensioning commands as we all know the importance of dimensioning in a drawing. So, to help you out with dimensions, we have a list of amazing commands that will make your working in AutoCAD a smooth process.

  • QUICKCALC: While dimensioning, we often need to add, subtract, or multiply the units. In such cases, the calculator is the most helpful tool for anyone working in AutoCAD. So, to solve this issue, this command is used by which a built-in calculator opens up in a new window within AutoCAD.
  • DIMSTYLE: This command allows the customization of the dimensions in your drawing depending on how you want them to appear.
  • DIMALIGNED: This command is used to align a dimension with the origin points of a line. Hence for an inclined line, you will be able to dimension the inclined height of the line rather than the vertical height.
  • DIMANGULAR: If you need to insert angular dimensions in a drawing, you will need to use this command. The command lets you choose the vertex and the edges of an angle and then denotes the dimension of the selected angle.
  • DIMARC: Like the earlier commands, this one gives you the dimensions of an arc or a polyline. It’s specifically used to express the arc length of an arc in the drawing.
  • DIMDIAMETER: Using this command, you can assign dimensions to any circle in the drawing, precisely the diameter of the selected circle.
  • DIMEDIT: Using this command, you can edit all the existing dimensions, which comprise the positions and orientations of dimensions that you’ve assigned earlier to an element. It is very much helpful for last-minute corrections.

Conclusion on AutoCAD Keyboard Shortcuts

As discussed earlier in the article, the primary purpose of using shortcuts and commands in AutoCAD is to increase productivity and efficiency. They allow us to execute functions more quickly, as we don’t need to search through the entire AutoCAD interface for the right tool, thereby making our work seamless. Hence, the shortcuts and commands discussed above will surely make you love using AutoCAD even more.

Dotnet core interview questions – .NET Core Interview Questions and Answers

Dotnet core interview questions: We have compiled most frequently asked .NET Interview Questions which will help you with different expertise levels.

.NET Core Interview Questions and Answers PDF Free Download

Question 1.
What is Asp .NET page life cycle?
Answer:
asp .net page life cycle in which it performs a series of processing steps. These include initialization, instantiating controls, restoring and maintaining state, running event handler code, and RENDERING, the asp .net page life cycle include as given below:

A) INITIALIZATION – Init event initializes the control property and the control tree is built. This event can be handled by overloading the Onlnit method or creating a Pagelnit handler.

B) load view state – LoadViewState event allows loading view state information into the controls.

C) load post-back data – During this phase, the contents of all the input fields are defined with the <form> tag are processed.

D) load – The Load event is raised for the page first and then recursively for all child controls. The controls in the control tree are created.

E) Raise postback event – click button event generated

F) save view state – State of control on the page is saved. Personalization, control state, and view state information are saved. The HTML markup is generated. This stage can be handled by overriding the Render method or creating a Page_Render handler.

G) render – html page generated

H) dispose – object associated request cleaned up.

Question 2.
Asp .net validation control & type?
Answer:
ASP.NET provides the following validation controls:

A) Required Field validation – The RequiredFieldValidator control ensures that the required field is not empty, ex.

<asp:RequiredFieldValidator ID=”test”
runat-‘server” ControlToValidate -’ddluser”
ErrorMessage=”Please choose a user”
InitialValue=”Please choose a user”>
</asp:RequiredFieldValidator>

B) Range Validator Control – The Range Validator control verifies that the input value falls within a predetermined range, ex.

<asp:RangeValidator ID="rvclass"
runat="server" ControlToValidate="txtclass"

ErrorMessage="Enter your class (6 - 12)" 
MaximumValue="12"

MinimumValue="6" Type="Integer">

</asp:RangeValidator>

C) Compare validation control – The Compare Validator control compares a value in one control with a fixed value or a value in another control, the specifies the comparison operator, the available values are Equal, NotEqual, Greater Than,
GreaterThanEqual, LessThan, LessThanEqual, and DataTypeCheck..

D) Regular Expression – The RegularExpressionValidator allows validating the input text by matching against a pattern of a regular expression. The regular expression is set in the Validation Expression property.

E) Custom validation – The Custom Validator control allows writing application-specific custom validation routines for both the client-side and the server-side validation, the custom validation is validating against your logic of coding.

F) Validation summary – the validation summary display all error on page COLLECTIVITY.

Question 3.
Write the types of authentication in asp .NET.
Answer:
the following types of authentication are used in asp .net as given below:

A) Windows Authentication – windows authentication is a feature of Windows applications.
B) form base authentication – the user uses the database by validation of the form.
C) passport service – the passport service validates against Microsoft passport services which are basically centralized authentication services.

Question 4.
What is State Management in asp .NET? describe the details.
Answer:
State management means to preserve the state of a control, web page, object/data, and user in the application explicitly because all ASP.NET web applications are stateless, i.e., by default, for each page posted to the server, the state of controls is lost, there is two types of state management in asp .net. client-side state management & server-side state management.

Client-side state management:

A) View state – store user data in user pc. it’s stores data in the generated HTML using hidden files, not on the server, view state provides page-level state management as long as the user is on the current page, the state is available and the user redirects to the next page and the current page state is lost.

B) Control STATE – whichever we developed in the custom control and we want to preserve some information, we can use view state but suppose view is DISABLE EXPLICIT by the user the control will not work.

C) Hidden Field – Hidden field is a control provided by asp .net which is used to store a small amount of data on the client’s pc. it stores one value for the variable and it is a preferable way when a variable’s value is changed frequently.

D) Cookies – A cookie is a small amount of data that is stored either in a text file on the client file system or in-memory in the client browser session. It contains site-specific information that the server sends to the client along with page output. Cookies can be temporary (with specific expiration times and dates) or persistent, cookies to store information about a particular client, session, or application. The cookies are saved on the client device, and when the browser requests a page, the client sends the information in the cookie along with the request information, the default time out of cookies is 30 minutes.

E) Query String – A query string is an information that is appended to the end of a page URL. Query strings provide a simple but limited way to maintain state information. For example, they are an easy way to pass information from one page to another, such as passing a product number from one page to another page where it will be processed.

Server-Side State management:

A) Application state – Application event is written in a special file called global.aspx application file, application state is useful for storing information that needs to be maintained between server round trips and between requests for pages. Application state is stored in a key/value dictionary that is created during each request to a specific URL.

B) Session – session is used to store user information or uniquely identify the users through session id which is store in server only run time. If different users are using your application, each user session will have a different session state, the default time out of the session is 20 minutes.

Question 5.
Types of cookies in asp .net?
Answer:
there are two types of cookies in asp .net. persistent cookies & nonpersistent cookies.

A) persistent cookies – the persistent cookies are permanent cookies store AS A text file in the hard disk of the computer.
B) not persistent cookies – they are temporary cookies store in memory as per session-based cookies, these cookies are active as long as the browser remains active if the browser closed cookies will automatically expire.

Question 6.
What are generics?
Answer:
Answer: The generic allows you to delay the specification of the data type programming elements in class or method until it’s actually used in the program or generics allow you to write a class or method that can work with any data type. EX.

public static void Main( )
{
Generic<string> g = new Generic<string>( );
g.Field = "A new string";
//...
Console.WriteLine("Generic.Field = \"{0}\"", g.Field);
Console. WriteLine("Generic.Field.GetType() = {0}", g.Field.GetType().FullName);
}

Question 7.
What is THREAD?
Answer:
The thread is defined as the execution path of the program, each thread defines a unique flow of control, each thread performed a particular job. thread is a lightweight process, the uses of threads serve wastage of cpu cycle and increase the efficiency of an application.

Question 8.
What is namespace?
Answer:
.Net framework uses a namespace to organize its many classes, the namespace allows you to create a system to organized your code. The System namespace contains fundamental classes and base classes that define commonly-used value and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.

Question 9.
Constructor in C# define?
Answer:
When class & structure is created. ITs constructor CALLED CONSTRUCTOR FLAVE the same name as the class or structure and they usually initialize the data member of the new object. Constructors enable the programmer to set default values, limit instantiation, and write code that is flexible and easy to read.

If you don’t provide a constructor for your struct, C# relies on an implicit parameterless constructor to automatically initialize each field of a value type to its default value as listed in the Default Values Table.

Static constructor: A class or struct can also have a static constructor, which initializes static members of the type. Static constructors are parameterless. If you don’t provide a static constructor to initialize static fields, the C# compiler initializes static fields to their default value as listed in the Default Values Table.

Question 10.
Date Set, Data Reader, Data table, Property define?
Answer:
Data Set – DataSet, which is an in-memory cache of data retrieved from a data source, is a major component of the ADO.NET architecture. The DataSet consists of a collection of DataTable objects that you can relate to each other with DataRelation objects. A DataSet can read and write data and schema as XML documents.

Data reader – the data reader used for data reading from retrieve data.

Data Table – The DataTable is a central object in the ADO.NET library. Other objects that use the DataTable include the DataSet and the DataView. DataTable objects are that they are conditionally case sensitive.

Property – The language defines a syntax that enables developers to write code that accurately expresses their design intent. The property is the main part of c# coding. Properties behave like fields when they are accessed. However, unlike fields, properties are implemented with assessors that define the statements executed when a property is accessed.

Question 11.
Different between namespace & Assembly?
Answer:
The namespace provides the fundamental unit of logic code grouping while an assembly provides a fundamental unit of physical code grouping, namespace is a logical group of related classes that can be used by any other language targeting the Microsoft .net framework.

Question 12.
What is string & string Builder?
Answer:
The string is a sequential collection of characters that is used to represent text. The maximum size of a String object in memory is 2GB or about 1 billion characters

The string builder object is not a string but rather an auxiliary object used for manipulating characters, it contains a buffer typically initialized with a string but usually larger than a string.

substring that begins at a specified character position and ends before the end of the string, call the Substring(Int32, Int32) method.

Question 13.
write a common control event in asp .net & Page Control Events?
Answer:

Event Attribute Page Control Events
Click OnClick Data Binding
Command OnCommand Disposed
Text Changed On Text Changed Error
Select     Index    Changed On Select Index Changed IN IT
Checked Changed On Checked Changed Load & Preload

Question 14.
Difference between Interface & Abstract Class?
Answer:

SL Abstract Class Interface
1 Abstract class does not support multiple inheritances. Interface support multiple inheritances.
2 abstract class contains data members. Interface does not
3 abstract class contain a constructor the interface does not contain a constructor.
4 it’s containing classes completed & INCOMPLETE. the interface contains only completed class
5 only complete members of the abstract class can be static. the member of the interface can’t be static.

Question 15.
Write the type of session in ASP .Net?
Answer:
In-process – the session default store in web configure file. OutProc – data store in server-side.
SQL Server/State Server – store in the database this session stores permanently in the database.
Custom mode – we can save session value as per custom mode in our pc or user define LOCATION.

Question 16.
Define MSIL?
Answer:
Microsoft intermediate language (MSIL) we can call Its intermediate language(IL) common intermediate language during the compile time, the compiler converts to source CODE INTO Microsoft intermediate language. MSIL is a CPU independence set of instructions that can be efficiently converted to the native code.

Question 17.
What are Assembly & Types of Assembly?
Answer:
The assembly is a file that is automatically generated by the compilation of every .net application, it can be either dynamic link library (DLL) or on the executable file. IT’S GENERATED only once for an application and upon each subsequent compilation, the assembly gets updated either process will run in the background of your application.

There are two types of assembly.

A) Private assembly – they are simple and copied with each calling assembly in the calling folder.
B) Shared Assembly – the shared assembly is copied to a single location for all calling assemblies within the same application, the same copy of the shared assembly is used from its original location.

Question 18.
What is garbage collection?
Answer:
When you create an object in C# (CLR) allocates memory for the object from heap, this process is repeated for each newly created object, but there is a limitation and we need to be clean some used space in order to make room for new objects, here the concept of garbage collection introduced, the garbage collection managed allocation and reclaiming of memory.

Question 19.
What is the static class?
Answer:
Static class can only contain static data member static method & static constructor, we can use static keyword it’s not allowed to create an object of the static class, the static class are sailed class means you can’t inherit a static class from non-static class.

Question 20.
Cashing in C# and using of cashing?
Answer:
The web browser typically uses a cache to make the web page load faster by sorting a copy of the webpage files locally, such as a local computer. Starting cashing is the process of sorting data into cache working, three types of cashing use in the process, object cashes, Memory cashes & caches items.

Question 21.
What is ado .net?
Answer:
The ADO.NET is a data access technology of Microsoft. ADO.NET is a module of .Net Framework which is used to establish connections between applications and data sources. Data sources can be such as SQL Server and XML. ADO.NET consists of classes that can be used to connect, retrieve, insert and delete data.

Question 22.
What are ASP built-in objects?
Answer:
ASP built-in objects that are available to ASP pages. Using ASP built-in objects, you can access information regarding the Web server, the client who is accessing a Web page, the Web application that contains the Web page, and the fields in the HTTP request and response streams. The ASP built-in objects are organized by the type of information they contain. The information in ASP built-in objects can also be obtained in a COM component or an ISAPI application.

Question 23.
What is Connected & Disconnected Architecture of ADO.NET?
Answer:
The architecture of ADO.net, in which connection must be opened to access the data retrieved from the database is called connected architecture. The connected architecture was built on the classes connection, command, DataReader, and transaction. DataReader is a “connected” approach

Ex: Connected = Make CONNECTION, Keep Connection ALIVE, Close Connection when close is called.

The architecture of ADO.net in which data retrieved from the database can be accessed even when the connection to the database was closed is called disconnected architecture. The disconnected architecture of ADO.net was built on classes connection, DataAdapter, command builder, and dataset and data view. the dataset is a “disconnected” approach

Ex: Disconnected = Make CONNECTION, Fetch DATA, Close Connection.

Question 24.
The difference between Data readers & Data Adapters?
Answer:
Data Reader to retrieve a read-only, forward-only stream of data from a database. Results are returned as the query executes, and are stored in the network buffer on the client until you request them using the Read method of the Data Reader. Using the Data Reader can increase application performance both by retrieving data as soon as it is available.

DataAdapter is used to retrieve data from a data source and populate tables within a DataSet. The DataAdapter also resolves changes made to the DataSet back to the data source. The DataAdapter uses the Connection object of the .NET Framework data provider to connect to a data source, and it uses Command objects to retrieve data from and resolve changes to the data source.

Question 25.
Can we create multiple web. config in a project?
Answer:
Yes, We have one main configuration file (Web. Config), then we have two more configurations files. App.Config and Database.Config. in App. Config we defined all the application-level settings, in the Database. Config we define all the database level settings. And in Web. Config we refer App. Config and Database.Config like this:
Ex:

<appSettings configSource="app.config">
</appSettings>
CconnectionStrings configSource="database.config">
</connectionStrings>

Question 26.
What is the Global.asax file?
Answer:
global.asax allows us to write event handlers that react to global events in web applications. Global.asax files are never called directly by the user, rather they are called automatically in response to application events. They do not contain any HTML or ASP.NET tags. They are optional, but a web application has no more than one global.asax file, a few lists of events global.asax like Application_Start,Aplication_End,Session_Start,Session_End,Application BeginRequest,Application AuthenticateRequest,Applic ationError, Applicantion_ Authorize Request etc.

Question 27.
What is a delegate in C# .NET?
Answer:
A delegate is a type-safe function pointer this is a hold reference pointer to a function, delegate is similar to a class you can create an instance of it. the delegate point to the function. A delegate can be declared using the delegate keyword followed by a function signature
Syntax:

<access modifier> delegate <return type >
<delegate_name>(<parameters>)

Question 28.
What is a property in .Net?
Answer:
A property in C# is a member of a class that provides a flexible mechanism for classes to expose private fields. Internally, C# properties are special methods called accessors. A C# property has two accessors, get property accessor and set property accessor. A get accessor returns a property value, and a set accessor assigns a new value.

Question 29.
What is a collection in C#?
Answer:
Collection classes are specialized classes for data storage and retrieval. These classes provide support for stacks, queues, lists, and hash tables. Most collection classes implement the same interfaces. Collection classes serve various purposes, such as allocating memory dynamically to elements and accessing a list of items on the basis of an index, etc.

Question 30.
How to Improve Application Speed in .NET Technology?
Answer:
The details as given below:

  • Avoid Session & Application Variable.
  • Use Caching, CSS-based layout & JavaScript for validation.
  • Use SP, XML, XSLT format, use data set & clean garbage collection.
  • Use String builder, Threads & avoid bulk data upload on server-side.

Question 31.
You need to select a class that is optimized for key-based item retrieval from both small and large collections. Which class should you choose?
A .OrderedDictionary class
B. HybridDictionary class
C. ListDictionary class
D. Hashtable class
Answer:
B. HybridDictionary class

Question 32.
Which of the following is a dictionary object?
A. HashTable
B. SortedList
C. NameValueCollection
D. All of the above
Answer:
D. All of the above

Question 33.
Which delegate is required to start a thread with one parameter?
A. ThreadStart
B. ParameterizedThreadStart
C. ThreadStartWithOneParameter
D. None of the above
Answer:
B. ParameterizedThreadStart

Question 34.
Why should you write the cleanup code in the Finally block?
A. Compiler throws an error if you close the connection in the try block.
B. Resource cannot be destroyed in the catch block.
C. Finally blocks run whether or not the exception occurs.
D. All of the above
Answer:
C. Finally blocks run whether or not the exception occurs.

Question 35.
Which method is used to dynamically register client script from code?
A. Page.ClientScript.RegisterClientScriptBlock
B. RegisterScript
C. Page.ClientScript
D. None of the above
Answer:
A. Page.ClientScript.RegisterClientScriptBlock

Question 36.
To implement a specified .NET Framework interface which directive is used?
A. @Register
B. @Control
C. @Reference
D. @Implements
Answer:
B. @Control

Question 37.
Which file is used to write the code to respond to the application start event?
A. Any ASP.NET web page with an .aspx extension
B. Web. config
C. Global.asax
D. None of the above.
Answer:
C. Global.asax

Question 38.
Attribute must be set on a validator control for the validation to work.
A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. Validate
Answer:
B. ControlToBind

Question 39.
What is used to validate complex string patterns like an e-mail address?
A. Extended expressions
B. Basic expressions
C. Regular expressions
D. Irregular expressions
Answer:
C. Regular expressions

Question 40.
Why is Global.asax is used?
A. Declare Global variables
B. Implement application and session-level events
C. No use
Answer:
B. Implement application and session-level events

Question 41.
Which DLL translates XML to SQL in IIS?
A. SQLISAPI.dll
B. SQLXML.dll
C. LISXML.dll
D. SQLIIS.dll
Answer:
A. SQLISAPI.dll

Question 42.
Which of the following ASP.NET object encapsulates the state of the client?
A. Session object
B. Application object
C. Response object
D. Server object
Answer:
A. Session object

Question 43.
Which of the following are the performance attributes of the process model?
A. request queue limit
B. max worker threads
C. max threads
D. All
Answer:
D. All

Question 44.
Which of the following is the way to monitor the web application?
A. MMC Event viewers
B. Performance logs
C. Alerts Snap-ins
D. ALL
Answer:
D. ALL

Question 45.
The ____________ property affects how the .Net The framework handles dates, currencies, sorting, and formatting issues.
A. CurrentUICulture
B. CurrentCulture
Answer:
A. CurrentUICulture

Question 46.
How to swap two numbers in C# without using 3rd variable.
Answer:
Input value 100 & 200;

Using System;
Class Swap1
{
Static void main (string [ ] args)
}
int first, second;
First = 100;
Second = 200;
First = first + second;
Second = first - second;
Second = first - second;
Console.writeLine (First.ToString( )) ;
Console.writeLine(Second.ToString( ));
Console.ReadLine( );
}}

Output: 200,100

Question 47.
How to remove duplicate characters from String in C#?
Answer:
Input: Google, Yahoo, BBC

Using system;
Class duplicate1
{
static void main ( )
{
String value1 = RemoveDuplicateChars(“Google”);
String Value2 =RemoveDuplicateChars(“Yahoo”);
String Value3 =RemoveDuplicateChars(“BBC”);
String Value4
=RemoveDuplicateChars(“Linel\Line2\Li ne3”);
Console.writeLine(value1);
Console.writeLine(value2);
Console.writeLine(val ue3);
Console.writeLine(val ue4);
}
StaticstringRemoveDuplicateChars(stri ngkey) //
using for remove duplicate characters.
Stringtable The result will be store.
foreach(charval ue in key) // loop over each characters.

if (table.indexof(value)==-l) // see if
character is in the table.
{
table + = value ;// append to the table and result.
result + = value;
}
}
Returnresult;
}
}

Output: Gogle, Yaho, BC

Question 48.
How to calculate factorial using recursion in C# programming?
Answer:
Enter The Number: 5

Using system;
Using system.collection.generic;
Using system.linq;
Using system.text;

Namespace factorial1
{
Class program
{
Static void Main (string [ ]args)
{
int i, number, fact;
Console.writeLine(“Enter The Number”);
number = int.Parse(Console.Read.Line( ));
fact = number;
for (i = number -1; i> = 1; i- -)
{
fact = fact*1;
}
Console.writeLine(“\n factorial of given number is : “+fact);

Console.ReadLine( );
}
}
}

Output:
Enter The Number: 5
Factorial of the given number is: 120

Question 49.
How to check if a number is Armstrong or not?
Answer:
Input: Enter the Number : 371

Using system;
Using system.collection.generic;
Using system.linq;
Using system.text;

Namespace Armstrong
{
Class program
{
Static void Main (string [ ] args)
{
Int number, remainder, sum = 0;
Console.Write(“Enter The Number”);
number = int.Parse(Console.ReadLine( ));
for (int i = number; i>0; i= i/10)
{
reminder = i%10;
sum = sum + remi nder*reminder*reminder;
}
if (sum == number)
Console.writeLine(“Enter Number is Armstrong Number”);
}
else
Console.writeLine(“Enter number is not Armstrong number”);
cousole.ReadLine();
}
}
}

Output: Enter number is Armstrong number.

Question 50.
Algorithm to check if a number is prime or not?
Answer:
Input: Enter The Number: 11

Using system;
Namespace example
{
Class prime
{
Public static void Main ( )
{
Console.Write.Line(“Enter The Number:”);
Int num // local variable is num.
num = Convert.ToString32(Console.ReadLine( )) ;
int = k;
k = 0;
for( int i = 1; i<= num/2; i++)
{
If (num%i==0)
{
K++ ;
}
}
If(k==2)
{
Console.Write.Line(“Enter Number is Prime Number”);
}
else
{
Console.write.Line(“Enter Number is not Prime Number”);
}
Console.Read.Line( ) ;
}
}
}

Output: Enter Number is Prime Number

Question 51.
Write an algorithm to check if a number is a palindrome or not?
Answer:
Input: Civil, Level, Radar, Apple, Stats, Mango.

using System;
Class palindrome
{
Public static bool lsPalindrome(string word)
{
int min = 0;
int max = word, length-1;
while(true)
{
if(min> max)
{
return true;
}
Char a = word[min];
Char b = word[max];
if (Char.ToString(a) != Char.ToLower(b))
{
return false;
}
Min ++;
Max - - ;
}
}
String void Main ( )
{
String [ ] array = “Civil”,” Level”,” Radar”,” Apple”,” State”,” Mango”,””};
Console.WriteLine(“{0}={l}”, value, isPalindrome (value);
}
}
}

Output:
Civil = True
Level = True
Radar = True
Apple = false
Stats = True
Mango = false

Question 52.
How to find out the sum of digits of a number using recursion?
Answer:
Input = Enter the number 1239

Using system;
Class digit
{
Public static void Main( )
{
Int num, result;
Pro pg = new pro( );
Console.write(“Enter The Number”);
number = int.Parse(Console.ReadLine( ));
result = pg.sum(num);
Console.WriteLine(“Sum of Digits in {0} is {1}”, num, result);
Console.ReadLine( );
}
}
Class pro
{
Public int sum (int num)
{
lf(num ! = 0)
{
Return (num%10 + sum (num/10));
}
else
return 0;
}
}
}

Output: The sum of digits is 1239 is 15.

Question 53.
Write a function to count a total number of set bits in 32 bits’ integer? (Bit Count Algorithms)
Answer:

Using System;
Namespace console application
{
Class bit count
{
Static void Main ( )
{
Console.writeLine(SparseBltcount(0));
Console.writeLine(SparseBitcount(1));
Console.writeLine(SparseBitcount(i nt.Maxval ue))
;
Console.WriteLine(SparseBltcount(256));
Console.ReadLine();
}
Static int SparseBitCount(int n)
{
int count = 0;
while (n! =0)
{
Count ++;
N& = (n-1);
}
Return count;
}
}
}

Output:
0
1
31
1
Press key to continuous………

Question 54.
Write a function to print the nth number in the Fibonacci series.
Answer:
Fibonacci series is a sequence of numbers in below order: 0,1,1,2,3,5,8,13,21,34…. the next number is found by adding up the two numbers before it.
Formula: f(n) = f(n-l)+f(n-2)

Using system;
Using system.collection.generic;
Using system.linq;
Using system.text;

Namespace Fibonaccil
{
Class program1
{
Public static int FibonacciSrties (int i)
{
if(n==0) return 0; //To Return first Fibonacci number. .
if(n==l) return 0; //To Return Second Fibonacci number.
Return Fibonacci Series(n-l) +
FibonacciSeries(n-2);
Public static void Main (string [] args)
{
Console.WriteLine(“Enter the Length of Fibonacci”);
int length =
Convert.Toln132((console.ReadLi ne));
For (int 1=0; i< length; i++)
{
Console.Write(“{0}”, FibonacciSeries(i));
}
Console.ReadKey( );
}
}
}

Question 55.
Write Basic Syntax of Dot Net Technology Example?
Answer:
The Syntax of if-else Condition:

• If(boolen_expression)
{
True block Statement(s)
else
False Block Statement(s)
}
Statement x


• Switch Statement Syntax:


Switch(Expression)
{
Case1 value: block1
break;
Case2 value: block2
break;
default: default-block
break;
}

 

System Analysis and Design Notes | Syllabus, Reference Books and Important Questions

System Analysis and Design Notes

System Analysis and Design Notes: Students who are trying to get access to the System Analysis And Design Notes Pdf and other study material can download it from this article. This article on System Analysis And Design Notes Pdf can access the best notes and reference materials on System Analysis And Design for their preparation process. Students can refer to the Big Data Lecture Notes For CSE as per the latest and updated syllabus from this article.

The System Analysis And Design Notes Pdf and Reference Sources act as the main study sources that improve and enhance the preparation process. With the help of the study resources, students will be able to improve and score the best marks. The article on System Analysis And Design Notes Pdf provides all the important topics according to the latest curriculum.

The System Analysis And Design Notes Pdf gives students. A head start and an overview of all the entire chapter. Students will be able to access the latest and up-to-date syllabus, subject expert-recommended reference books or textbooks, and a list of the important questions on System Analysis And Design.

Graduates can avail the System Analysis And Design Notes Pdf, Study materials and other reference sources from this article and refer to them during their preparation method. Students can score the best marks with credible and reliable study resources.

Introduction to System Analysis and Design

System analysis and design notes: Systems analysis is a system which deals with the collection of data, interpretation of facts and identification of all the problems. It includes the decomposition of a system into all its components. System Design is a process which deals with the planning of new business systems. However, sometimes it can be replacing the existing System by defining components to specific requirements.

BCA System Analysis And Design Notes PDF Free Download

System analysis and design notes: Students who are pursuing their BCA or MCA can access and download the System Analysis And Design Notes Pdf and other study materials available in this article. Candidates can better and improve their preparation with the help of the study materials as it is the ultimate preparation tool. With these study materials, students can improve their scores.

Students can download the sources of reference and pdf notes on System Analysis And Design from this article. They can download the notes for free and refer to them during their preparation process. The more frequently students will refer to the System Analysis And Design Notes, the more they will understand the important topics and concepts.

Here is a list of a few important System Analysis And Design Notes Pdf for a thorough preparation of the course programme for the examination:

  1. System Analysis and Design Notes PDF
  2. System Analysis and Design Handwritten Notes PDF
  3. System Analysis and Design Previous Year’s Question Paper PDFs

System Analysis and Design Reference books

System analysis and designing notes: Reference books are sources of important pieces of information on all important topics. Candidates should refer and choose the right reference books that provide excellent information.

The article on System Analysis And Design Notes Pdf provides the list of the best and most recommended textbooks and reference books for System Analysis And Design. Students can access, refer and read through the System Analysis And Design Reference Books during their preparation.

The list of the best and highly recommend textbooks and reference books for System Analysis And Design preparation is as follows. Students should select the right textbooks and reference books that meet their knowledge and preparation.

  1. System Analysis and Design
  2. Power System Analysis and Design
  3. Peeling Design Patterns: For Beginners and Interviews
  4. How to Do Systems Analysis
  5. System Engineering Analysis, Design and Development
  6. Modern Systems Analysis and Design
  7. Systems Analysis and Design in a Changing World

System Analysis and Design Curriculum

System analysis and designing notes: The System Analysis And Design Syllabus is the most effective course planning tool that helps students structure and organises their preparation process. One of the best ways to start the preparation process for an examination is to review the syllabus. Students can enhance their preparation method by holding an initial course outline of the System Analysis And Design Syllabus.

The article on System Analysis And Design Notes Pdf provides a detailed and structured view of all the important topics falling under the System Analysis And Design. Curriculum available in this article on System Analysis And Design is according to the requirements of all students.

The course curriculum provides students with a clear, concise idea of what to study and how to study all the topics for their preparation process. The article on System Analysis And Design Notes Pdf presents a unit-wise breakdown of all the important topics under each unit so that students can allot time to each topic and prepare.

Students should cover all ten topics and concepts before attempting the System Analysis And Design examination. When students know all the topics, they will be able to answer the paper easily and comfortably. Students should remain aware of the System Analysis And Design syllabus to prevent studying unnecessary and redundant topics.

The updates unit-wise division of the System Analysis And Design Notes Pdf is as follows:

Units  Topics
Unit 1 Introduction to System:

 Introduction

Definition of a System

Types of Systems

Delineating Systems

Products and Tools

Precedent versus Unprecedented Systems

Analytical Representation of a System

Systems that require engineering

Unit 2 Data and information: 

Types of Information

operational, tactical, strategic and statutory

why do we need information systems

management structure

requirements of information at different levels of management

functional allocation of management

requirements of information for various functions

qualities of information-small case studies.

Unit 3 System Attributes, Properties, and Characteristics

Introduction

Properties, Characteristics and elements of System

Every System has its own unique identity

Understanding System Performance

System Characteristics

The System’s State of Equilibrium:

Unit 4 The Architecture of Systems

 Introduction

Introducing the System Architecture Construct

Introduction of the System Elements

Understanding System Element Entity Relationships

Guiding Principles

Unit 5 The Systems Development Life Cycle

Feasibility

Analysis

Planning and Design:

Implementation

Testing

Maintenance

Requirements determination

requirements specifications

Feasibility analysis

final specifications

hardware and software study

Role of systems analyst

attributes of a systems analyst

tools used in system analysis

Unit 6 System design

system implementation

system evaluation

system modification

Structured Design

Input design and Output design

Form Design.

Unit 7 Systems Development Methodologies:

 Rapid Application

Development Newer (current) methodologies

selecting the Appropriate Development Methodology

Unit 8 System Analysis-I:

Introduction to System analysis

Problem Definition

Information requirements

Information gathering tools

Tools of structured Analysis

Data Flow Diagrams

Data Dictionary

Decision Tree

Decision tables

structured English.

Unit 9 System Analysis-II: 

File Organisation

Sequential Indexed Sequential

 Chaining and Inverted list organisation

System Testing: Test Plan

 AND test data

types of system test.

Unit 10 System Implementation:

 Implementation Plan

activity network for conversion

combating resistance to change

Hardware/Software Selection: Procedure for selection

Major phases in the selection

Make v/s buy decision

Criteria for software selection.

Unit 11 Data-oriented systems design: 

Entity-relationship model

 E-R diagrams

 relationships cardinality and participation

 normalising relations

various normal forms and their need

some examples of relational database design.

Unit 12 Object-oriented systems modelling:

 What are objects?

Why objects?

Objects and their properties

classes

 inheritance

polymorphism

 how to identify objects in an application

 how to model systems using objects

some cases of object-oriented system modelling

Unit 13 Project Team Skills and Roles:

 Skills and Roles of a Project Team

Business Analyst

Systems Analyst

Infrastructure Analyst

Change Management Analyst

Project Manager

Unit 14 Systems analysis and design in e-commerce: 

B2B, B2C and C2C

e-commerce – advantages and disadvantages of e-commerce

E-commerce system architecture

 physical networks

logical network

World Wide Web

 web-services – HTML, XML.

List of System Analysis and Design Important Questions

  • What is meant by the term concept?
  • State the importance of documentation.
  • Write a short note on the good practices for the documentation process.
  • What is meant by Information Systems Analysis and Design?
  • Make a comparative study between the five types of coupling and their application.
  • Write a short note on the concept of design.
  • State the role of CASE tools and their usage in organisations.
  • Make a comparative study between Information Systems.
  • Name the various issues related to system development.
  • What is the goal of designs?

FAQ’s on System Analysis and Design Notes

Question 1.
What is System Analysis And Design?

Answer:
Systems analysis is a system which deals with the collection of data, interpretation of facts and identification of all the problems. It includes the decomposition of a system into all its components. System Design is a process which deals with the planning of new business systems. However, sometimes it can be replacing the existing System by defining components to specific requirements.

Question 2.
What are some of the reference materials that students can download from this article on System Analysis And Design Notes Pdf?

Answer:
Students can download the sources of reference and pdf notes on System Analysis And Design from this article. The more frequently students will refer to the System Analysis And Design Notes, the more they will understand the important topics and concepts.

Here is a list of a few important System Analysis And Design Notes Pdf for a thorough preparation of the course programme for the examination:

  • System Analysis And Design Notes Pdf
  • System Analysis And Design Handwritten Notes Pdf
  • System Analysis And Design Previous Year’s Question Paper Pdfs

Question 3.
List some of the reference books that students can download from this article on System Analysis And Design Notes Pdf?

Answer: 
Here are some of the reference books that students can download from this article on System Analysis And Design Notes Pdf:

  • System Analysis And Design
  • Power System Analysis And Design
  • Peeling Design Patterns: For Beginners and Interviews
  • How to Do Systems Analysis
  • System Engineering Analysis, Design and Development

Question 4.
State some of the important questions that students can review before the System Analysis and Design examination.

Answer: 
Here are some of the important questions that students can review before System Analysis and Design examination:

  • What is meant by the term concept?
  • State the importance of documentation.
  • Write a short note on the good practices for the documentation process.
  • What is meant by Information Systems Analysis and Design?
  • Make a comparative study between the five types of coupling and their application.
  • Write a short note on the concept of design.

Conclusion

The article on System Analysis And Design Notes Pdf provides students with the most reliable and credible sources of reference to enhance their preparation of all the important topics. In this article on System Analysis And Design, students will gain access on the key reference materials like – pdf notes, reference books, study materials and important questions on System Analysis And Design.

With the help of the key materials, students can improve and enhance their knowledge and understanding of the important concepts and topics. The article briefs students and keeps them updated to the current notes pdfs, and other sources of reference sources. All the reference material like textbooks, reference books, updated syllabus and important questions are available for free.

Python Data Presistence – os Module

Python Data Presistence – os Module

clbr.dll: This is another module containing useful utilities for manipulating files and directories programmatically. The usual operating system commands for directory management have equivalents in this module. There is mkdir ( ) function that creates a new directory inside the current directory by default. To create it at any other location in the file system, its absolute path has to be given.

Example

import os
os.mkdir(1newdir’) # inside current directory
os.mkdir(‘c:\\newdir’) #in C drive

The chdir ( ) function (to set current working directory) and rmdir ( ) function (to remove a directory) also take relative path by default. A ge tcwd ( ) function is also available to know which is the current working directory. All these operations are demonstrated in following interpreter session:

Example

>> import os
>>> os.mkdir(“newdir”) #new directory in current path
>>> os.chdir(“newdir”) #set current directory
>>> os.getcwdO #displays current working directory
‘E:\\python37\\newdir’
>>> os.rmdir(“newdir”) #shouldn’t be current directory and should be empty Traceback (most recent call last):
File “<stdin>”, line 1, in <module> FileNotFoundError: [WinError 2] The system cannot
find the file specified: ‘newdir’
>>> os.chdir) #sets current directory to parent
directory
>>> os.getcwd ( )
‘ E:\\python3 7 ‘
>>> os.rmdir(“newdir”) #now it can be deleted
>>> os.listdirO #returns list of files and directories in current path
[‘abcdemo.py’, ‘aifftest.py’, ‘checkindent.py’,
‘clbr.py’, 1combinations-2.py’, ‘combinations.py’,
‘comprehensionl.py’, ‘conditionals.jpg’, ‘continue- example.py’, ‘data_class.py’, ‘DLLs’, ‘Doc’, ‘else- in-loop.py’, ‘ equitriangle .py’ , ‘fibolist.py’ ,
‘ findertest.py’, ‘for-l.py’, ‘for-2.py’, ‘for-3.
py’, ‘for-4.py’, ‘for-5.py’, ‘for-6.py’, ‘for-7.
py’, ‘gcexample.py’, ‘hello.py’, ‘include’, ‘Lib’,
‘libs’, ‘LICENSE.txt’, ‘modfinder.py’, ‘modspec. py’, ‘modulel.py’, ‘module2.py’, ‘mydb.sqlite3’,
‘myfunctions.cover’, ‘myfunctions.py’, ‘mymain.
cover’, ‘mymain.py’, ‘nestedfor.py’, ‘newdirbak’,
‘NEWS.txt’, ‘out.aiff’, ‘out.au’, ‘out.mp3’,
‘out.wma’, ‘polar.png’, ‘python.exe’, ‘python3. dll’, ‘python37.dll’, ‘pythonw.exe’, ‘report.txt’,
‘runpyexample.py’, ‘sample.wav’, ‘Scripts’, ‘secret- number.py’, ‘securepwd.py’, ‘sound.aiff’, ‘sound,
wav’, ‘sqrmodule.py’, ‘structexample.py’, ‘tabdemo.py’, ‘taxl.py’, ‘tax2.py’, ‘tax3.py'( ‘tax4. py’, ‘tel’, ‘testindent.py’, ‘Tools’, ‘triangle, py’, ‘trianglebrowser.py’, ‘vcruntimel40.dll’,
‘warningexample.py’, ‘wavetest.py’, ‘while-1.py’, ‘_threadexample.py’, ‘ pycache ‘]
>>>

The os module also has functions to create a new file and perform read/ write operations on it. We shall learn about these functions in the chapter on File Handling.

MVC architecture in java with example – MVC Architecture in JSP with Example | What is MVC? | Layers, Advantages & Example Program

MVC Architecture in JSP with Example

MVC architecture in java with example: Are you searching for information on MVC Architecture in JSP? Then, this java tutorial is the correct choice for you. Here, we have shared the complete details about MVC Architecture in JSP with Example like definition, layers of MVC, advantages, and an example program.

What is MVC?

MVC stands for Model View Controller. It is a design pattern that is used to separate the business logic, presentation logic, and data. It can be used to design a web application in a standard manner ie: It will provide a pattern to design a web application. It is able to define which element is used for which purpose.

Layers of MVC Architecture

As per MVC, our application will be divided into three layers.

1. Model Layer:

  • Model Layer is the data layer.
  • It consists of all the data of our web application.
  • It represents a state of an application.
  • The Model Layer is responsible to connect with the database as well as stores the data into a database.
  • It consists of all the classes in our application that have a connection to the database.

2. View Layer:

  • It represents the presentation layer
  • It normally represents the User Interface (UI) of the application.
  • We can use HTML, CSS, JS, etc to create a presentation layer.

3. Controller Layer:

  • It is an interface between the view layer and the model layer.
  • It receives the request from View Layer.
  • It read the data which is coming from the presentation layer.
  • To read data from the presentation layer, we can use Servlet, JSP, Filter, etc.

The MVC Architecture is given below:

MVC Architecture in JSP with Example 1

Also Check:

Advantage of MVC (Model 2) Architecture

The advantage of MVC architecture are:

  • It is easy to maintain a large application.
  • It is easy to test.
  • It is easy to extend.
  • The navigation control is centralized.

Example of MVC Architecture in JSP:

In this example, we are going to show you how to use MVC architecture in JSP. In this example, we are going to create an example in which servlet as a controller, JSP as a view component, Java Bean class as a model.
In this example, we have created 6 pages.

  • index.jsp: It gets the input from the user.
  • ControllerServlet.java: It acts as a controller.
  • loginSuccess and loginError.jsp files acts as a view component.
  • LoginMvcBean.java: It acts as a Model layer.
  • web.xml file is used to mapping the servlet.

index.jsp

MVC Architecture in JSP with Example 2

ControllerServlet.java

MVC Architecture in JSP with Example 3

LoginMvcBean.java

MVC Architecture in JSP with Example 4

loginSuccess.jsp

MVC Architecture in JSP with Example 5

loginError.jsp

MVC Architecture in JSP with Example 6

web.xml

MVC Architecture in JSP with Example 7

Output: When we enter the right credential.

MVC Architecture in JSP with Example 8

MVC Architecture in JSP with Example 9

Output: When we enter the wrong credential.
MVC Architecture in JSP with Example 10

MVC Architecture in JSP with Example 11

Outlook Keyboard Shortcuts | Most Commonly Used Shortcut Keys for Outlook

Outlook Keyboard Shortcuts

Outlook Keyboard Shortcuts: Outlook belongs to the family of Microsoft Office ever since 1997. You are probably using Outlook every day, isn’t it? Or do you receive your email through various web services like Gmail? Do you know Microsoft Office Outlook has hundreds of shortcuts in keyboard settings for all types of functions? No? Don’t worry; listed below are some of the most frequently used shortcuts.

These shortcut keys are a life changer! It will no doubt change the way of your email. Don’t worry; it simply takes two minutes to grasp them, and you will be saving at least 15 minutes per day of your email time! It will speed things up for you and will make emailing a lot more comfortable task. Go through this article, and you can thank us later!

Wondering How to explore & learn Shortcut Keys for various Operating Systems, Computer Software Programs, Social media applications Keyboards? Here is the one-stop destination for all Keyboard Shortcuts, just take a look & memorize regularly for better performance in competitive exams & real-time situations.

Outlook Keyboard Shortcuts

How To Enable The Shortcut Keys?

Outlook shortcut keys: Before we move to the shortcut keys, you should know about how to enable certain shortcut keys:

  1. First, you should go to the home screen and then select the ‘Settings’ option.
  2. From ‘Settings’, now select the ‘More mail settings’ option.
  3. The next step consists of moving to the ‘Customizing Outlook’ option.
  4. After you have selected the ‘Customizing Outlook’ option, you should select the option ‘Keyboard Shortcuts’.
  5. From here you can make your choice. Now click on the ‘Save’ button to save your choice.

A Brief List Of Keyboard Shortcuts for Outlook With Explanations

Microsoft outlook shortcut keys: You can use the given list as a reference which is a composite list of all shortcuts. All the given shortcuts are applicable for both Mac and Windows-based computer systems. However, in case you are using a Mac, then simply substitute the ‘Ctrl’ option with the key named ‘Command’. You should press the listed keys simultaneously to activate the shortcut.

Shortcuts Of Keyboard for The Purpose Of Navigation In Microsoft Outlook

Purpose Shortcuts
Switching to Mail Ctrl-1
Switching to Calendar Ctrl-2
Switching to Contacts Ctrl-3
Switching to Tasks Ctrl-4
Moving Up One Line Up Arrow
Moving Down One Line Down Arrow
Switching to Notes Ctrl-5
Switch to Inbox Ctrl-Shift-i
Opening the address book Ctrl-Shift-B
Go to any particular folder Ctrl-Y
Delete the previous word Ctrl-Backspace
Delete the next word Ctrl-Delete
Moving to the next email Ctrl-.
Moving to the previous email Ctrl-,

Outlook Keyboard Shortcuts 1

Shortcuts Of Keyboard for The Purpose Of Searching In Microsoft Outlook

Purpose Shortcuts
Searching in Outlook Alt-Q
Searching all folders Ctrl-Alt-A
Open Advanced Search option Ctrl-Shift-F
Searching the current folder Ctrl-Alt-K
Searching the subfolders Ctrl-Alt-Z

Shortcuts Of Keyboard for The Purpose Of Any General Task In Microsoft Outlook

Purpose Shortcuts
Cancelling a task Esc
Sending and receiving any email F9
Help F1
Printing the chosen item Ctrl-P
Expanding or collapsing the ribbon Ctrl-F1
Align Left Ctrl-L
Align Right Ctrl-R
Align Center Ctrl-E
Spelling Check F7
Making Letters Bold Ctrl-B
Making Letters Italic Ctrl-I
Underline Ctrl-U
Move to another folder Ctrl-Shift-V
Increasing font size Ctrl-]
Decreasing font size Ctrl-[

Outlook Keyboard Shortcuts 2

Shortcuts Of Keyboard for The Purpose Of Working With A New Email In Microsoft Outlook

Purpose Shortcuts
Checking the names Ctrl-K
Sending a message Ctrl-Enter
Forwarding any email in the form of an attachment Ctrl-Alt-F
Forwarding any email message Ctrl-F
Marking any message as unread Ctrl-U
Marking any message as read Ctrl-Q
Replying to any email message Ctrl-R
Reply All to any email message Ctrl-Shift-R
Quick Flag Insert
Open any selected email Enter or Ctrl-O
Flag any message for follow-up Ctrl-Shift-G
Marking any message as “not junk” Ctrl-Alt-J
Searching all the folders Ctrl-Alt-A

Shortcuts Of Keyboard for The Purpose Of Creating Items In Microsoft Outlook

Purpose Shortcuts
Creating a new email Ctrl-Shift-M
Creating any search folder Ctrl-Shift-P
Creating any new contact Ctrl-Shift-C
Creating any meeting request Ctrl-Shift-Q
Scheduling any new appointment on the calendar Ctrl-Shift-A
Creating any new document Ctrl-Shift-H
Creating any new group of contacts Ctrl-Shift-L
Creating any new Note Ctrl-Shift-N
Creating any new task Ctrl-Shift-K

Shortcuts Of Keyboard for The Purpose Of Working In Microsoft Outlook Calendar

Purpose Shortcuts
Displaying the current month Alt-=
Changing the number of days that the calendar is showing Alt-[number]
Displaying the ongoing week in the calendar Alt-Minus

Advantages Of Using The Keyboard Shortcuts In Outlook

Outlook for mac keyboard shortcuts: There are lots of advantages of using keyboard shortcuts in Outlook. It will no doubt make you much more efficient while working, but also save you a lot of time. Imagine a situation where your mouse stops working and you are in urgent need to send or check any email. This is where these shortcuts are very handy.

Apart from making you efficient, these shortcuts are very helpful for those who have issues like difficulty in mobility or are visually impaired. For them, using a mouse or touching the screen for using the onscreen keyboard is very difficult. These shortcuts will help them to operate freely without any outside help.

Using keyboard shortcuts in Microsoft Outlook is also an advantage in situations where the work requires precision. It helps in editing texts and these situations become more accurate to be handled if done with the shortcut keys.

The shortcut keyboard if used with the mouse as well, makes tasks easier. For example, while browsing any email, there are many times when you are required to click links at the same time. Here you can use these keyboard shortcuts to click on these links or browse the mail and do the complementary work with your mouse.

Conclusion on Outlook Keyboard Shortcuts

As you might have comprehended from the above read, using keyboard shortcuts is quite useful. In Microsoft Outlook, such an advantage becomes very handy while you work on your emails. Being on the computer almost all the time, these shortcuts will be of extreme use to you and you can save so much time.