Live Help (Start Chat)
View Count: 0
Duration: 34 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 26 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 41 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 58 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 48
In an ASP.NET page life cycle, when does a control retrieves its previous state from the ViewState? 
Options:
  1. Before Init event of Page is rasied.
  2. After Init and before Load event of Page is raised
  3. After Load event of Page is raised
  4. Just before PreRender event of page is raised.
View Answer/Explanation:
b
Explanation:
Its only after Init event of Page is raised the controls uses the ViewState data to restore its state.

Question No: 2 of 48
Which of the following is correct about Codebehind and Src attributes in the Page directive of aspx page? 
Options:
  1. Codebehind is used when as ASP.NET application is developed as a Project in Visual Studio.NET.
  2. Src attribute was used prior to ASP.NET 2.0.
  3. Codebehind refers to the partial class which contains code for event handlers of controls in aspx page
  4. All the above.
View Answer/Explanation:
d
Explanation:
"Codebehind" is specific to Visual Studio and if we are using some other editors like notepad we have to use "Src" attribute. The "src" attribute was used prior to ASP.NET 2.0 and thereafter "Inherits" is used to link with the source file and this can be noticed when a application is developed as a "WebSite". Code-behind is used when the application is developed as a Visual Studio Project.

Question No: 3 of 48
What are the different ways in which we can host website on IIS? 
Options:
  1. By creating Virtual Directory through IIS manager.
  2. Creating Virtual directory during creating the project by choosing Location as HTTP.
  3. A & B
  4. None of the above.
View Answer/Explanation:
c
Explanation:
We can host website on IIS in following ways: 1. By creating Virtual Directory through IIS manager. 2. Folder Web Sharing . Apart from that Visual studio provide some inbuilt features to host the site on IIS like 3. Publishing the web site. 4. Copy web Tool. 5. Creating Virtual directory during creating the project by choosing Location as HTTP.

Question No: 4 of 48
Which of the following is correct way to pass key- value pairs through URL ? 
Options:
  1. Response.Redirect(“Newpage.aspx?Name=”+Server.UrlEncode(txtName.Text )+”&Age=”+Server.UrlEncode(txtAge.Text));
  2. Response.Redirect(“Newpage.aspx?Name=txtName.Text &Age=txtAge.Text”);
  3. Response.Redirect(“NewPage.aspx?Name=”+username+”&Age=”+35);
  4. All the above.
View Answer/Explanation:
a
Explanation:
For example to pass information: Response.Redirect(“Newpage.aspx?Name=”+txtName.Text +”&Age=”+txtAge.Text); To Retrieve information: String name=Request.QueryString[“Name”]; String age=Request.QueryString[“Age”]; Advantages: 1. It is easy to use and is light weight. DisAdvantages: 1. It has Max length of 1or 2 kb ,so limited information can be passed. 2. It is visible in address part of the browser and hence we cannot send any sensitive information. 3. QueryString cannot be used to send special characters like ‘ &’ and ‘space’ characters. To solve this problem we have to use Server.UrlEncode. For example above code can be rewritten as: Response.Redirect(“Newpage.aspx?Name=”+Server.UrlEncode(txtName.Text )+”&Age=”+Server.UrlEncode(txtAge.Text))

Question No: 5 of 48
What namespace does the Web page belong in the .NET Framework class hierarchy? 
Options:
  1. System.IO
  2. System.Web.UI.Page
  3. System.Net
  4. System.Collection
  5. System.Page
View Answer/Explanation:
b
Explanation:
System.Web.UI.Page class is a control that acts as the user interface for web application

Question No: 6 of 48
What type of code is found in a Code-Behind class? 
Options:
  1. Server-side code
  2. Client-side code
  3. Html code
  4. JavaScript code
View Answer/Explanation:
a
Explanation:
The answer is server-side code since code-behind is executed on the server. However, during the code-behind's execution on the server, it can render client-side code such as JavaScript to be processed in the client's browser. But just to be clear, code-behind executes on the server, thus making it server-side code.

Question No: 7 of 48
Which of the following denote page code model in ASP.NET? 
Options:
  1. single-file
  2. code-behind
  3. text-file
  4. word-file
View Answer/Explanation:
a b
Explanation:

Question No: 8 of 48
File extension used for ASP.NET files. 
Options:
  1. .Web
  2. .ASP
  3. .ASPX
  4. .Form
View Answer/Explanation:
c
Explanation:

Question No: 9 of 48
An alternative way of displaying text on web page using 
Options:
  1. asp:label
  2. asp:listitem
  3. asp:button
  4. asp:textbox
View Answer/Explanation:
a
Explanation:

Question No: 10 of 48
Choose the form in which Postback occurs. 
Options:
  1. HTMLForms
  2. Webforms
  3. XmlForms
  4. HttpForms
View Answer/Explanation:
b
Explanation:

  1