Engineering :: All Aptitude Test ::

Hassan
1.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

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

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

4.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

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

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

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

8. 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

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

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

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

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

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

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

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

16.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

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

18.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

19. 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

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

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

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

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

24. ______________ 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

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

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

27.Identify wrong C Keywords below.
A. auto, double, int, struct
B. break, else, long, switch
C. case, enum, register, typedef
D. auto, double, int, struct

28.Identify wrong C Keywords below.
A. union, const, var, float
B. short, unsigned, continue, for
C. signed, void, default, goto
D. union, const, var, float

29.Identify wrong C Keywords below.
A. static, while, break, goto
B. struct, construct, signed, unsigned
C. short, long, if, else
D. static, while, break, goto

30.Find a correct C Keyword below.
A. breaker
B. go to
C. shorter
D. breaker


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