Tag: .net

Questions Related to .net

  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
  1. HTML source

  2. Text file

  3. URL

  4. Both a and b.

  5. All of the above.


Correct Option: B
  1. Cookies

  2. Query string

  3. View state

  4. Both a and b.

  5. All of the above.


Correct Option: C
  1. Cookies

  2. Query string

  3. View state

  4. Both a and b.

  5. All of the above.


Correct Option: A
Explanation:

To solve this question, the user needs to be familiar with client-side web development techniques.

The correct answer is option A, which is cookies.

Explanation:

Cookies are small text files that are stored on the user's computer by a website. They are used to store user preferences, login information, and other relevant data. Since cookies are stored on the user's computer, they can be easily disabled by the end-user. Users can disable cookies in their browser settings or use a browser extension to block them.

Option B, query strings, cannot be disabled by the end-user. Query strings are a part of the URL, and they are used to pass data between a web server and a client. They are not stored on the user's computer, so they cannot be disabled by the end-user.

Option C, view state, is a technique used in ASP.NET web development to store state information on the client-side. View state is not a client-side technique that can be disabled by the end-user. It is generated by the server and sent to the client as a hidden field in an HTML form.

Option D, both A and B, is incorrect because query strings cannot be disabled by the end-user.

Option E, all of the above, is incorrect because view state cannot be disabled by the end-user.

Therefore, the correct answer is:

The Answer is: A. Cookies

  1. @

  2. #

  3. $

  4. %

  5. ?


Correct Option: E
Explanation:

To solve this question, the user needs to know about Uniform Resource Identifier (URI) and URL components.

A query string is a part of a URL that contains data to be passed to web applications. It begins with a question mark (?) symbol, which specifies the beginning of a query string.

Now, let's go through each option and explain why it is right or wrong:

A. @ : This symbol is used for specifying the username and password in the URL, not for the query string. Therefore, this option is incorrect.

B. #: This symbol is used for specifying the HTML anchor tag. It is not used for the query string. Therefore, this option is incorrect.

C. $: This symbol is not used for any URL components, including the query string. Therefore, this option is incorrect.

D. %: This symbol is used for URL encoding and decoding special characters. It is not used to specify the beginning of a query string. Therefore, this option is incorrect.

E. ?: This symbol is used to specify the beginning of a query string in a URL. Therefore, this option is correct.

The Answer is: E

  1. Application.VariableName = Value

  2. Application.VariableName = (Value)

  3. Application(VariableName) = Value

  4. Application(VariableName) = (Value)

  5. Application("VariableName") = Value


Correct Option: E
  1. Application states

  2. Session states

  3. Database support

  4. Both a and b.

  5. All of the above.


Correct Option: D
  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