Computer Science :: All Aptitude Test ::

1. Choose the form in which Postback occur
A. HTMLForms
B. Webforms
C. Winforms
D. HTMLForms

2. Web.config file is used...
A. Configures the time that the server-side codebehind module is called
B. To store the global information and variable definitions for the application
C. To configure the web server
D. Configures the time that the server-side codebehind module is called

3. Which of the following object is not an ASP component?
A. LinkCounter
B. Counter
C. AdRotator
D. LinkCounter

4.The first event triggers in an aspx page is.
A. Page_Init()
B. Page_Load()
C. Page_click()
D. Page_Init()

5.Which of the following method must be overridden in a custom control?
A. The Paint() method
B. The Control_Build() method
C. The default constructor
D. The Paint() method

6.How do we create a FileSystemObject?
A. Server.CreateObject("Scripting.FileSystemObject")
B. Create("FileSystemObject")
C. Create Object:"Scripting.FileSystemObject"
D. Server.CreateObject("Scripting.FileSystemObject")

7. Which of the following tool is used to manage the GAC?
A. RegSvr.exe
B. GacUtil.exe
C. GacSvr32.exe
D. RegSvr.exe

8.What class does the ASP.NET Web Form class inherit from by default?
A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.UI.Page

9. We can manage states in asp.net application using
A. Session Objects
B. Application Objects
C. Viewstate
D. Session Objects

10.Attribute must be set on a validator control for the validation to work.
A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. ControlToValidate

11.Caching type supported by ASP.Net
A. Output Caching
B. DataCaching
C. a and b
D. Output Caching

12. What is used to validate complex string patterns like an e-mail address?
A. Extended expressions
B. Basic expressions
C. Regular expressions
D. Extended expressions

13.File extension used for ASP.NET files.
A. .Web
B. .ASP
C. .ASPX
D. .Web

14. An alternative way of displaying text on web page using
A. asp:label
B. asp:listitem
C. asp:button
D. asp:label

15. Why is Global.asax is used?
A. Declare Global variables
B. Implement application and session level events
C. No use
D. Declare Global variables

16.Which of the following is not a member of ADODBCommand object?
A. ExecuteScalar
B. ExecuteStream
C. Open
D. ExecuteScalar

17.Which DLL translate XML to SQL in IIS?
A. SQLISAPI.dll
B. SQLXML.dll
C. LISXML.dll
D. SQLISAPI.dll

18. Default Session data is stored in ASP.Net.
A. StateServer
B. Session Object
C. InProcess
D. StateServer

19.Default scripting language in ASP.
A. EcmaScript
B. VBScript
C. PERL
D. EcmaScript

20.How do you get information from a form that is submitted using the "post" method?
A. Request.QueryString
B. Request.Form
C. Response.write
D. Request.QueryString

21.Which object can help you maintain data across users?
A. Application object
B. Session object
C. Response object
D. Application object

22.Which of the following ASP.NET object encapsulates the state of the client?
A. Session object
B. Application object
C. Response object
D. Session object

23. Which of the following object is used along with application object in order to ensure that only one process accesses a variable at a time?
A. Synchronize
B. Synchronize()
C. ThreadLock
D. Synchronize

24.Which of the following control is used to validate that two fields are equal?
A. RegularExpressionValidator
B. CompareValidator
C. equals() method
D. RegularExpressionValidator

25.Mode of storing ASP.NET session
A. InProc
B. StateServer
C. SQL Server
D. InProc

26.Which of the following is not the way to maintain state?
A. View state
B. Cookies
C. Hidden fields
D. View state

27.You can have only one Global.asax file per project.
A. Yes
B. No
C. Both (a) & (b)
D. Yes

28. ______________ element in the web.config file to run code using the permissions of a specific user
A. < credential> element
B. < authentication> element
C. < authorization> element
D. < credential> element

29._________ is a special subfolder within the windows folder that stores the shared .NET component.
A. /bin
B. GAC
C. Root
D. /bin

30.Which of the following is the performance attributes of processModel?
A. requestQueue limit
B. maxWorkerThreads
C. maxIdThreads
D. requestQueue limit


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers