0% found this document useful (0 votes)
96 views5 pages

For IT and Programmers: Web - Config

This document contains 21 multiple choice questions that test knowledge of ASP.NET concepts like the web.config file, caching, session state, asynchronous pages, MVC routing, and more. It provides answers to an online test for IT professionals and programmers about ASP.NET fundamentals.

Uploaded by

Shalabh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views5 pages

For IT and Programmers: Web - Config

This document contains 21 multiple choice questions that test knowledge of ASP.NET concepts like the web.config file, caching, session state, asynchronous pages, MVC routing, and more. It provides answers to an online test for IT professionals and programmers about ASP.NET fundamentals.

Uploaded by

Shalabh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Elance ASP.

NET Test Answers


for IT and Programmers

1. Which file is used to configure an asp.net website?

power.cs
settings.ini
asp.settings
web.config
index.html

2. Which of the following contains one or more variables that are accessed
through sequential indices?

Delegates
Nullable Types
Indexers
Arrays

3. Caching in ASP.NET is used to:

Reduce database hits


Reduce redundant object creation
Reduce server round trips
Load pages from memory

4. Which one is the first step in Asp.Net MVC request cycle.

Action Execution
Mvc Handler
View Engine
Routing
Controller

5. The threading model used in ASP.NET is:

Not supported
Single Threaded
STA
MTA

6. Where is the default Session data stored in ASP.Net?

Session Object
InProcess
StateServer

7. What method(s) must be used with the Application object to ensure that only
one process accesses a variable at a time?

Lock() and UnLock()


Synchronize()
ThreadLock

8. _______ is a special subfolder within the windows folder that stores the
shared .NET component?

Root
GAC
/bin

9. The property used to access user's locale information is:

System.Web.UI.Page.Locale
System.Web.Locale
System.Web.UI.Page.User

System.Web.UI.Page.Culture

10. You are developing ASP.NET templated server control. You need to ensure
that a new ID namespace is created within the page control hierarchy when the
control is added to the page. Which interface should you implement on the
control?

IDataItemContainer
INamingContainer
IExtenderCtonrol
IDataKeysControl

11. What is/are the methods to author pages in ASP.NET?

In-Line Code

Code Behind

Outline Code

Both In-Line Code and Code Behind

By-Directional Code

12. By default, ASP.NET store SessionIDs in

Cookies
Cache
Database
Global variable

13. Which of the following statements best describes setting up an async page
in .NET 4.5?

async=true on page directive, RegisterAsyncTask in page load and


async method

async=true on page directive

TaskFactory.StartNew(method1)

async method
14. Can you run a web application without the web.config file?

No

Runtime error
It will not compile if there is no web.config file
Yes

15. What is the default scripting language in ASP?

PERL
VBScript
JavaScript

16. In LINQ what is the difference in .Ancestor and .Parent?

Parent is the immediate node below, Ancestors is all nodes above and
below.

None of the above

Parent is the immediate node a level above, Ancestors is all nodes


all levels above.

Parent is the immediate node a level above, Ancestors is all nodes


above and below.
17. False or True? Using DateTime.Now is much faster than using the
Timestamp property

True
False

18. Which formats can Web API work with?

XML
All of these
xVx
ATOM Pub

19. Contents of assembly file can be investigated using

ILDASM.inc
ILDASM.dll
ILDASM.aspx
ILDASM.exe

20. How can an MVC View be protected from CSRF?

@Html.AntiForgeryToken() in View and


ValidateAntiForgeryToken attribute on controller action

Web.Config app setting AntiForgeryToken true

@Html.AntiForgeryToken() in View

not possible
21. How do you make a controller action async?

return an async Task from controller action while awaiting within the
method

return an async Task from controller action

return an async Task<ActionResult> from controller action while


awaiting within the method

Register async controller action in Global.asax

You might also like