0

web technology Online Quiz - 43

Description: web technology Online Quiz - 43
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

How do enable output cache for an ASP.Net page?


Correct Option: B

Whats the top .NET class that everything is derived from?

  1. System.Object

  2. System.Page

  3. System.Web

  4. System.Namespace


Correct Option: A

Can you store multiple data types in System.Array?

  1. True

  2. False


Correct Option: B

Is it possible to add object in ViewState in .NET?

  1. Not Possible

  2. Always Possible

  3. Only If object have Serializable feature or have TypeConverter option

  4. Only if object is an String


Correct Option: C

What is the default port for Http?

  1. 8081

  2. 80

  3. 7071

  4. 500


Correct Option: B

How can we maintain the page scroll position after postback?

  1. Set PositionOnPostback as true in Page directive

  2. Set MaintainScrollPositionOnPostback as true in Page directive

  3. Set ViewState as true in Page directive

  4. Not Possible


Correct Option: B

Which of the following Protocols can be used to call a Web Services in Asp.net?

  1. Http-Post

  2. Http-Get

  3. SOAP

  4. All the above


Correct Option: D

How to get last month date from C# code?

  1. DateTime.Now.PreviousMonth;

  2. DateTime.Now.CurrentMonth - 1;

  3. DateTime.Now.AddMonths(-1);

  4. DateTime.Now.AddMonths(1);


Correct Option: C

What is DOM?

  1. Data Object Model

  2. Document Object Model

  3. Derived Object Model

  4. None of the above


Correct Option: B

AI Explanation

To answer this question, you need to understand what the DOM stands for.

Option A) Data Object Model - This option is incorrect because the correct term for the acronym "DOM" is not "Data Object Model".

Option B) Document Object Model - This option is correct. The DOM stands for Document Object Model. It is an application programming interface (API) for HTML and XML documents. The DOM represents the structure of a document as a tree-like model, where each element in the document is represented as a node in the tree. This allows programmers to access and manipulate the content, structure, and style of a document using programming languages like JavaScript.

Option C) Derived Object Model - This option is incorrect because the correct term for the acronym "DOM" is not "Derived Object Model".

Option D) None of the above - This option is incorrect because the correct option is B) Document Object Model.

The correct answer is B) Document Object Model. This option is correct because the DOM is commonly used to interact with and manipulate HTML and XML documents.

How to create an alias name for a namespace in C#?

  1. using AliasName = System.Text;

  2. using System.Text AliasName;

  3. Alias System.Text AliasName;

  4. Not Possible


Correct Option: A

How can we get Client IP Address in ASP.NET?

  1. Request.ClientAddress

  2. Request.UserHostAddress

  3. Request.IPAddress

  4. Request.Client.IPAddress


Correct Option: B

Private, Protected, Public, Internal, Protected Internal are the access specifiers?

  1. True

  2. False


Correct Option: A

Only Abstract class, Static class and Sealed class are in .Net

  1. True

  2. False


Correct Option: B

An assembly is the basic unit used by the .NET CLR

  1. True

  2. False


Correct Option: A

DLL and assembly are same

  1. True

  2. False


Correct Option: A

ADO Record set can hold multiples tables data.

  1. True

  2. False


Correct Option: B

Multiple catch blocks cannot be executed for a single try statement

  1. True

  2. False


Correct Option: A

Which utility has the set commands?

  1. BTEQ

  2. Fastexp

  3. Multiload

  4. Tpump


Correct Option: A

Once ASP.NET automatically parses and compiles the global.asax file into a dynamic .NET Framework class, which base class is extended?

  1. ASPApplication

  2. HttpsApplication

  3. ASPNETApplication

  4. NETApplication

  5. HttpApplication


Correct Option: E

You develop a page expecting a DataGrid to appear upon rendering, but it does not appear when you run the application. What is the likely explanation for the problem in the above scenario?

  1. The DataGrid control is not bound to its DataTable property.

  2. The DataGrid control is not bound to the table Header

  3. The DataGrid control is not bound to its DataSource property.

  4. The DataGrid control is not bound to its DataKeyField property

  5. The DataGrid control is not bound to its DataKeys property.


Correct Option: D
- Hide questions