0

Basic ASP .Net Quiz

Description: Basic ASP .Net Quiz
Number of Questions: 24
Created by:
Tags: .net asp
Attempted 0/24 Correct 0 Score 0

Which is not a fundamental service identified in a three-tier architecture?

  1. Association layer

  2. Connection layer

  3. Logical layer

  4. Both a and b.

  5. All of the above.


Correct Option: E

Which layer is exemplified by a web server?

  1. Application

  2. Association

  3. Data

  4. Logical

  5. Presentation


Correct Option: A

Which layer is exemplified by a fat client?

  1. Application

  2. Association

  3. Data

  4. Logical

  5. Presentation


Correct Option: E

Which layer is exemplified by the use of ADO.NET?

  1. Application

  2. Association

  3. Data

  4. Logical

  5. Presentation


Correct Option: C

How will using a middle tier typically affect the number of connections to a database?

  1. Increase the number

  2. Have no effect on the number

  3. Decrease the number

  4. It depends on the type of client.

  5. It depends on the type of database.


Correct Option: C

An application layer:

  1. will contain business logic.

  2. manage connections to the database.

  3. can be distributed over many computers.

  4. Both a and b.

  5. All of the above.


Correct Option: E

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) An application layer will contain business logic - This option is correct because the application layer is responsible for implementing the business logic of an application. It handles the processing and manipulation of data to perform the specific tasks and functions required by the application.

Option B) An application layer manages connections to the database - This option is incorrect because managing connections to the database is typically handled by the data access layer or the database management system itself. The application layer interacts with the data access layer to retrieve or update data from the database, but it does not directly manage the connections.

Option C) An application layer can be distributed over many computers - This option is correct. In a distributed application architecture, the application layer can be divided into multiple components or services that run on different computers. This allows for scalability, fault-tolerance, and workload distribution.

Option D) Both a and b - This option is incorrect because option B is incorrect. The application layer does not manage connections to the database.

Option E) All of the above - This option is correct because both option A and option C are correct. The application layer contains business logic and can be distributed over many computers.

Therefore, the correct answer is E) All of the above.

A data layer is responsible for:

  1. retrieving information from a database.

  2. updating information in a database.

  3. deleting information in a database.

  4. Both a and b.

  5. All of the above.


Correct Option: E

What is the minimum number of computers in a three-tier architecture?

  1. 1

  2. 2

  3. 3

  4. 4


Correct Option: A

AI Explanation

To answer this question, let's understand the three-tier architecture first.

Three-tier architecture is a client-server architecture that separates the presentation layer, application logic layer, and data storage layer into three separate tiers. Each tier performs a specific function and communicates with the other tiers to provide a complete system.

The three tiers are as follows:

  1. Presentation tier: This is the topmost tier that interacts directly with the user and provides the user interface. It includes devices such as computers, smartphones, tablets, etc.

  2. Application logic tier: This tier contains the business logic and application processing. It handles the user requests from the presentation tier and interacts with the data storage tier to retrieve or store data. It typically consists of one or more servers.

  3. Data storage tier: This tier is responsible for storing and managing data. It can include databases, file systems, or any other data storage mechanism.

Now, coming back to the question, the minimum number of computers in a three-tier architecture is 1. This is because the presentation tier can be a single computer or device, such as a computer or smartphone, that interacts directly with the user. The other tiers (application logic and data storage) can be hosted on the same computer or on separate computers.

Let's go through each option to understand why it is correct or incorrect:

Option A) 1 - This option is correct because the presentation tier can be a single computer or device.

Option B) 2 - This option is incorrect because it implies that there are two computers in the three-tier architecture, which is not necessary. The minimum number is 1.

Option C) 3 - This option is incorrect because it implies that there are three computers in the three-tier architecture, which is not necessary. The minimum number is 1.

Option D) 4 - This option is incorrect because it implies that there are four computers in the three-tier architecture, which is not necessary. The minimum number is 1.

The correct answer is A) 1. This option is correct because the minimum number of computers in a three-tier architecture is 1, as the presentation tier can be a single computer or device.

  1. an example of a distributed application.

  2. makes it easy to add new computers if demand increases.

  3. applies only to web servers.

  4. Both a and b.

  5. All of the above.


Correct Option: D

Which is a valid type of state management for the creation of web pages?

  1. Client side

  2. Server side

  3. Data side

  4. Both a and b.

  5. All of the above.


Correct Option: D

The stateless HTTP protocol refers to web pages created:

  1. on a web server.

  2. without information from a database.

  3. without knowledge of previous web pages.

  4. before a request from a client.

  5. on a client machine.


Correct Option: C

Client-side state management techniques are appropriate when using:

  1. sensitive information.

  2. critical applications.

  3. an intranet.

  4. Both a and b.

  5. All of the above.


Correct Option: C
  1. HTML source

  2. Text file

  3. URL

  4. Both a and b.

  5. All of the above.


Correct Option: A

Where does the query string store information?

  1. HTML source

  2. Text file

  3. URL

  4. Both a and b.

  5. All of the above.


Correct Option: C

Where do cookies store information?

  1. HTML source

  2. Text file

  3. URL

  4. Both a and b.

  5. All of the above.


Correct Option: B

Which client-side technique is specific to ASP.NET?

  1. Cookies

  2. Query string

  3. View state

  4. Both a and b.

  5. All of the above.


Correct Option: C

Which client-side technique can be disabled by the end-user?

  1. Cookies

  2. Query string

  3. View state

  4. Both a and b.

  5. All of the above.


Correct Option: A

What symbol specifies the beginning of a query string?

  1. @

  2. #

  3. $

  4. %

  5. ?


Correct Option: E

What is the syntax for creating and using an application variable?

  1. Application.VariableName = Value

  2. Application.VariableName = (Value)

  3. Application(VariableName) = Value

  4. Application(VariableName) = (Value)

  5. Application("VariableName") = Value


Correct Option: E

Which server-side technique is available in ASP.NET?

  1. Application states

  2. Session states

  3. Database support

  4. Both a and b.

  5. All of the above.


Correct Option: D

An Application variable is created:

  1. when the application is first placed on a web server.

  2. when the web server is first started.

  3. when the first client requests a URL resource.

  4. every time a client requests a URL resource.

  5. every time a new client interacts with the web application.


Correct Option: C

A Session variable is created:

  1. when the application is first placed on a web server.

  2. when the web server is first started.

  3. when the first client requests a URL resource.

  4. every time a client requests a URL resource.

  5. every time a new client interacts with the web application.


Correct Option: E

If there is no activity from a browser, how long will a session variable last?

  1. 10 minutes

  2. 20 minutes

  3. 60 minutes

  4. 100 minutes

  5. 200 minutes


Correct Option: B

Which is not a reason for using a database to store state information?

  1. The capacity to store high volumes of information

  2. The ability to use data mining techniques on the stored information

  3. The ability to use application and session variables

  4. Security from unauthorized use

  5. The power to easily query for specific information


Correct Option: C
- Hide questions