Copyrights © 2012 Jatin Kotadiya. All Rights Reserved . Powered by Blogger.

Monday, November 12, 2012

.Net MCQ


A.it is less efficient than string concatenation when many concatenation are performed
B.There is a method which formats the string being appended to the stringBuilder, much like the string format
C.The StringBuilder is most efficient when initialized using the parameterless constructor
D.All of the above
E.None of the Above.
Ans:B
A.it uses a connected provider model
B.it uses a Disconnected provider Model
C.it includes a dataAdapter class, which provides a high-performance mechanism for retrieving data
D.system.data.common provides classes that are database agnostic
Ans:A&B
A.Datatable.rows.find (Correct)
B.Datatable.rows.select
C.Datatable.select
D.Enumerating across datatable.rows
Ans:A
A.They can be dervied from any reference type
B.Two anonymous types with the same named parameters in the same order declared in differentclassed have the same type
C.Anonymous types can have methods
D.All properties of an anonymous types are read/write
E.Anonymous types cannot cross method boundaries
Ans:A
A.There is no supported application level means to determine if a specfic amount of memoryis available
B.using static methods of system.runtime.memoryfailpoint and checking the return value
C.creating an instance of system.runtime.memoryfailpoint and monitoring for an insuffcientMemoryException
D.Creating an instance of system.runtime.memoryfailpoint and monitoring for an outofmemoryException
Ans:C
A.The number of queued requests befoer returning "Server Busy (error: 503)"
B.The maximum number of threads per processor
C.The maximum number of threads per request
D.The Maximum amount of memory utilized per request
Ans:D
A.System.datetime
B.System.timeSpan
C.System.Globalization.Calender
D.System.Globalization.CultureInfo
Ans:A
A.Examining the user languages property of the current request object
B.Examining the currentCulture property of the current request object
C.Examining the CurrentCulture property of the current thread Object
D.Examining the language property of the current page object
Ans:C
A.Yes
B.No
Ans:B
A.They must be declared static
B.They can be declared either static or instance members
C.they must be declares in the same assembly(but may be in different sources files)
D.Extension methods can be used to override existing instance methods
Ans:A&D
A.Rosario
B.Orcas
C.Yukon
D.LINQ
Ans:D
A.Microsoft Certified Application Developer
B.Microsoft Certified Technology Specialist
C.Microsoft Certified Architect
D.Microsoft Certified IT Professional
Ans:A
A.Refactoring
B.Debugger ToolTips
C.Code snippets
D.Snap lines for graphical form-building
Ans:A
A.Modular programming
B.Aspect-oriented programming
C.Object-oriented programming
D.Reflective programming
Ans:C
A.You want to take advantage of ASP.NET features such as its caching abilities.
B.The application relies heavily on third-party controls or dynamic link libraries (DLLs).
C.The application's original developers were new to Visual Basic and/or used some "out of the box" development approaches.
D.Your company's business processes do not change all that often.
Ans:D
A.Yes, in all cases.
B.Yes, in some cases.
C.No, not at all.
Ans:C
A.True
B.False
Ans:B
A.DHTML pages
B.ActiveX documents
C.OLE controls
D.ADO to ADO via Interop
Ans:D
 A.Yes
 B.No
 C.Not always
 D.None of these
ANS:A
A.Open the Visual Basic Upgrade Wizard, get a cup of coffee and watch it run.
B.Assess the VB 6 application; find out what controls it uses, what projects are in there and so on.
C.Cancel all social plans for the next couple months and start rewriting the app in .NET.
D.Schedule meetings with end users to see what features they want to add to the app.
Ans:B
 A.With OPTION STRICT ON keyword
 B.With OPTION EXPICIT Keyword
 C.With OPTION STRICT OFF keyword
 D.All the above
ANS:A
 A.Create a method and name it with the same name as class name
 B.Create a method and which is named as New
 C.Create a method and which is named as Initialize
 D.None of the above
ANS:B
A.By setting the object to Null
B.With Close keyword
C.By setting the object to Nothing
D.None of the above
ANS:C
A.Using NEW keyword
B.Using CREATEOBJECT keyword
C.Using GETOBJECT keyword
D.Both A & B
ANS:A
 A.Using
 B.Package
 C.Imports
 D.None of the above
ANS:C
A.My.Computer.CurrentFolder
B.My.Application.CurrentFolder
C.My.System.CurrentFolder
D.All the above
ANS:B
A.Applog.Log
B.Application.Log
C.assemblyname.log
D.None of these
ANS:C
A.AssemblyInfo
B.manifest
C.AssemblyData
D.None of these
ANS:B
A.System.FileObjects
B.System.FileSystem
C.System.IO
D.System.Input/Output
ANS:C
A.A field always has Get and Set Methods
B.A property always has Get and Set Methods
C.Both 1 and 2
D.None of the above
ANS:B
A.VB.NET
B.C#
C.Both of them will run equally fast.
D.None of these
ANS:B
A.ildasm
B.clr
C.ilasm
D.All the above
ANS:C
A.IL Code
B.Native code
C.Byte Code
D.None of these
ANS:A
A.No, a toolbar can only display images
B.No, a toolbar can only display text
C.Yes, a toolbar can display text, images, or both.
D.None of these
ANS:C
A.Only Toolbar control
B.ImageList and Toolbar control
C.Both 1 and 2
D.All the above
ANS:B
A.Modular programming
B.Aspect-oriented programming
C.Reflective programming
D.Object-oriented programming
ANS:D
A.False
B.True
C.Not always
D.Can't say
ANS:A
A.DHTML pages
B.ADO to ADO via Interop
C.ActiveX documents
D.OLE controls
ANS:B
A.Schedule meetings with end users to see what features they want to add to the app.
B.Open the Visual Basic Upgrade Wizard, get a cup of coffee and watch it run.
C.Assess the VB 6 application; find out what controls it uses, what projects are in there and so on.
D.Cancel all social plans for the next couple months and start rewriting the app in .NET.

ANS:C

A.   True
B.   False
Ans:A


A.   Assert( )
B.  Open()
C.  Flush( )
Ans:B


A.  True
B.  False
Ans:A


A.   Parent
B.  MyBase
C.  Super
 
Ans:B

A.   Me
B.   This
 C.   Super
Ans:A


A.   Add keyword to Method signature
B.  Add [WebMethod] on top of the Method Signature
C.  Add {WebMethod} on top of the Method Signature
Ans:A


A.   Regsvr32
B.   Regasm
C.   ILDASM
 D.  Regedit
Ans:B


A.   Showdialog( )
B.   Activate ( )
C.  Loaddialog()
 D.   Show( )
Ans:A

A.  Connection
B.   Command
C.   DataReader
Ans:B

A.   Data Set
B.  Typed Data Set
C.  DataReader
Ans:C

A.   DataReader
 B.   Dataset
 C.   DataAdapter
Ans:B

A.   Loadxml ( )
 B.   Load( )
 C.  Save ( )
 Ans:A 

A.   System.Runtime.Interopservices
B.   System.XML
C.   System. Data
Ans:A

 A.  Using Inherits Keyword
 B.  Private interfaces can not be implemented
 C.  Using Implements Keyword
 Ans:B 

 A.  Using Inherits Keyword
 B.  Private interfaces can not be implemented
 C.  Using Implements Keyword
 Ans:B


A.   Directly invoking the method name
B.  Invoking the method through the instance of that class
C.   None of the above
Ans:B 

A.   Idestructor
B.  Icleanup
C.  Idisposable
 
Ans:B

A.   Class_Load
B.  Class_Terminate
C.  Class_Initialize
Ans:C

A.   Using Only Get..EndGet with in property definition
B.   Using Only Set..EndSet with in property definition
C.  Using both Get and Set
Ans:A


A.  Exit
B.  Close Sub
C.  Exit Sub
 D. Kill
Ans: C


A.   Constructors
B.   Interrogative methods
C.   Imperative methods
Ans: B 

A.   Private
B.   Protected
C.  Friend
D.  Global
Ans:A 

 A.   ArrayList
 B.   Queue
 C.   DictionaryList
 D.   Stack
 
Ans:C

A.   Specifies that any variable name is declared (with type) before use
B.   Specifies whether strings should be compared as binary
C.   Specifies that variables should be initialized before use
Ans:A


A.  Value Type
B.   Reference Type
C.  None
Ans:A


A.  System .Object
B.   System .Type
C.   System .Data
Ans:A 


A.   .config
B.   .vb
C.  .cs
Ans: B


A.   True
B.   False
Ans: A 


A.   One
B.   Two
C.   Three
Ans:B


A. System.NET.DNS
B. System.Diagnostics.Process
C. System.Data.Common
D. None of the Above
Ans:A


A. Process
B. Application
C. Exe
D. Execute
Ans:A


A. .NET Compact Framework
B. .NET Small Framework
C. .NET Smartclient Framwork
Ans:A


A. By setting the object to Null
B. By setting the object to Nothing
C. With Close keyword
D. None of the above
Ans:B


A. Public
B. Private
C. Friend
D. Protected
E. Protected Friend
Ans:C


A. IsDdNull( )
B. IsEmpty( )
C. ISNull( )
Ans:A


A.  Trace
B.  Debug
C.  Listeners
D.  None
Ans:C


A. True
B.  False
Ans:A


A. Used to call any procedure
B. Used to call the procedure through Delegate variable
C. Both
D. None
Ans:B


A. System.XML
B. System.Assembler
C. System.Reflection
D. System.IO
Ans:C


A.  Dim statement is used to create a variable that represents a value type
B.  Data associated with a value type is allocated on the stack
C.  Reference types must be instantiated after declaration
D. Data associated with a reference type is allocated on the stack
Ans:D


A.  -1
B.  0
C.  2
D.  3
Ans:B


A. CLR
B. Assembly
C.Namespace
D. None of the Above
Ans:B


A. System.IO
B. System.ComponentModel
C. System.Reflection
D. System.Data
Ans:D


A. VB Allows non-type template parameters
B. VB supports explicit specialization
C. VB allows the type parameters to be used as the base class for the generic type
D. VB allows a generic type parameter itself to to be a generic
E. VB enforces that all codes are valid for all types of parametrs
Ans: E


 A. Public
 B. Private
 C. Friend
 D. Protected
Ans:A


 A. Shared members belong to the type but not to any instance of a type
 B. They can be accessed without creating an instance of the type.
 C. They can be accessed using the type name
 D. They are accessed using instance name
Ans:D


A. PictureBox
 B. LablControl
 C. ListBox
 D. TabControl control
Ans:A

A. Command
 B. Connection
 C. DataReader
Ans:A

A. GroupBox
 B. TabPage
 C. Panel
 D. All of the above
Ans:D
A. BitArray
 B. Enum
 C. Queue
 D. Stack
Ans:B


 A. A delegate is a strongly type function pointer
 B. It is a type-safe function pointer
 C. Delegates are used to create associations between events and event handlers in VB.NET
 D. All of the above statements are correct for a delegate
Ans:D

 A.Yes
 B. No
Ans:B

 A. Option Strict On
 B. Option Strict=1
 C. Options Strict True
 D. Option Strict off
Ans:A

A.True
 B.False
Ans:A

 A. Public
 B. Protected
 C. Friend
Ans:C

 A. System.Runtime.Interopservices
 B. System.XML
 C. System. Data
Ans:A
 A. Step Out
 B. Step Over
 C. Step Into
 D. Run to Cursor
 E. Set Next Statement
Ans:C

A. Assert( )
 B. Flush( )
 C. Open( )
Ans:C


A. Role-based security
 B. Code-based security
Ans:B

A.Data Set
B.Typed Data Set
C.DataReader
Ans:C

A.True
 B.False
Ans:A
 A. Files
 B. Identity
 C. Security Permissions
 D. All of the above
Ans:D

---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------


A.The Params and Forms collection of the HTTPRequest class are exactly same and theForms collection has       been provided only for backward  compatibility
B.The HTTPRequest class does include the Params collection
C.The HTTPRequest class does include the Forms collection
D.The difference between the Params and Forms collection of the HTTPRequest class is that the Params collection also represents QueryStrings, ServerVariables, andCookies
Ans:D
A.By comparing the old value with the new value
B.By checking the NewValue property of the TextBox control
C.By handling the TextBox control's TextChanged event
D.By checking the HasChanged property of the TextBox
Ans:C
A.EnableViewState
B.MaintainValue
C.SaveValue
D.AutoPostBack
Ans:A
A. GET
B. POST
C. SOAP
D. SMTP
Ans:B
A. aspnet_isapi.dll
B.aspnet_wp.exe
C.inetinfo.exe
D.None
Ans: C
A. invoke event
B.raise event
C. bubble event
D.instantiate event
Ans:C
A. Session
B. Application
C. Response.Cookies
D. Response.ViewState
Ans: B

 A. Application Object
 B. Session Object
 C. Response Object
 D. Request Object
Ans: B
 A. Use the output cache
 B. Use a cache object
 C. Use the ASP.NET central cache
 D. Use the client cache
Ans: B
 A. Infinite
 B. 0 seconds
 C. None of these
Ans:B

 A. Inproc
 B. StateServer
 C. SQLServer
 D. None
Ans:A

 A. Call the ShowControl method on the TextBox.
 B. Set the VisibleControl to true on the TextBox.
 C. Add the TextBox instance to the form1.Controls collection.
 D. Execute the AddControl method on the Web page.
Ans:C.


 A. Open the code-behind page and write the code.
 B. Right-click the control and select Create Handler.
 C. Drag an event handler from the ToolBox to the desired control.
 D. Double-click the control.
Ans: D

 A. Include the authentication element.
 B. Include the authorization element.
 C. Include the identity element.
 D. Include the deny element.
Ans: B.

 A. The DropDownList control
 B.The RadioButtonList control
 C.The FormView control
 D.The TextBox control
Ans: A

 A. The DataColumn object
 B. The DataTable object
 C. The DataRow object
 D. The DataRelation object
Ans: D

 A. The DetailsView control
 B.The Table control
 C.The GridView control
 D.The FormView control
Ans: C

 A. The View control
 B.The TextBox control
 C.The Wizard control
 D.The DataCollection control
Ans: C

 A. BeginExecute=true
 B.MultiThreaded=true
 C.MultipleActiveResultSets=true
 D.Asynchronous=true
Ans: D

 A. Separation model
 B.Code-Behind model
 C.In-Line model
 D.ClientServer model
Ans: B

 A.FirstGet
 B.Initialized
 C.IncludesData
 D.IsPostBack
Ans: D

 A. Page_Init
 B.Page_Load
 C.Control events
 D.Page_Unload events
Ans: B

A. Config files
B.Database text file
C. session
Ans:  A


A. Anonymous
B.Basic
C.Digest
D.Integrated Windows authentication
Ans: A and D

A. aspnet_isapi.dll
B. aspnet_wp.exe
C. inetinfo.exe
Ans: C

A. boolean
B. int
C. object
D. string
Ans: A

A.ISerializable
B.ISingleCall
C. IUnknown
D.IMarshalByValue
Ans: A

A. Synchronize
B. ThreadLock
C. Sychronize()
D. Lock() and UnLock()
Ans: D

A. Satellite
B. Shared
C. Hub
D. localized
Ans: A

A. Server object
B. Request object
C. Response object
D. Session object
Ans: D
A. When application is running low of memory
B.  It runs random
C.  When application is running for more than 15 minutes
D.  None of the above
Ans: A

A. Concat method of the String object
B. Append method of the StringBuilder object
C. Plus sign operator to concatenate the strings
D. Substring method of the String object
Ans: B

A. System.Web.Control
B. System.Web.RootBuilder
C. System.Web.UserControl
D. System.Web.UI.Page
Ans: D

A. PreRender()
B. Load()
C. Unload()
D. Init()
Ans: D

A. Performance Counters
B. Data Performance Counters
C. Web Performance Counters
D. Data Readers
Ans: A

A. ValidationExpression
B. InitialValue
C. ValueToCompare
D. ControlToCompare
E. ControlToValidate
Ans: E


A. Window class
B. Web class
C. Form class
D. Page class
 
Ans: D

A. Page_Load
B. Event Handling
C. Page_Init
D. Validate
E. Page_Unload
Ans: E

A. Cookies
B. Cache
C. Database
D. Global variable
Ans: A


A. VaryByParams
B. VaryByHeaders
C. SetCacheability
D. SetVaryByCustom
Ans: A


A. Regression tests
B. Integration tests
C. Unit tests
D. Load test
Ans: B

A. Yes
B. No
Ans: A

A. DLLImport Attributes
B. ComVisible attributes
C. COM Interop
D. All
Ans: B

A. Windows
B. Form
C. User
 D. All
Ans: A


A. < credential>
B. < authorization>
C. < Identity>
D. < authentication>
Ans: A


A. < Credential>
B. < authorization>
C. < identity>
D. < authentiation>
Ans: B

A. CurrentUICulture
B. CurrentCulture
Ans: B

A. MMC Event viewers
B. Performance logs
C. Alerts Snap-ins
D. ALL
Ans: D

A. SQLDataReader
B. Data Set
Ans: A


A. requestQueue limit
B. maxWorkerThreads
C. maxIdThreads
D. All
Ans: D

A. /bin
B. GAC
C. Root
Ans: B

A. < credential> element
B. < authentication> element
C. < authorization> element
D. < identity> element
Ans: D

A. Yes
B. No
Ans: A


A. View state
B. Cookies
C. Hidden fields
D. Request object
Ans: D

A. InProc
B. StateServer
C. SQL Server
D. All of the above
Ans: D

A. RegularExpressionValidator
B. CompareValidator
C. equals() method
D. RequiredFieldValidator
Ans: B

A. Synchronize
B. Synchronize()
C. ThreadLock
D. Lock()
Ans: B

A. Session object
B. Application object
C. Response object
D. Server object
Ans: A

A. Application object
B. Session object
C. Response object
D. Server object
Ans: A


A. Request.QueryString
B. Request.Form
C. Response.write
D. Response.writeln
Ans: B


A. EcmaScript
B. VBScript
C. PERL
D.JavaScript
Ans: B

A. StateServer
B. Session Object
C. InProcess
D. all of the above
Ans: C

A. SQLISAPI.dll
B. SQLXML.dll
C. LISXML.dll
D. SQLIIS.dll
Ans: A

A. ExecuteScalar
B. ExecuteStream
C. Open
D. ExecuteReader
Ans: C


A. Declare Global variables
B. Implement application and session level events
C. No use
Ans:B

A. asp:label
B. asp:listitem
C. asp:button
Ans:A

A. .Web
B. .ASP
C. .ASPX
D. None of the above
Ans:B
A. Extended expressions
B. Basic expressions
C. Regular expressions
D. Irregular expressions
Ans: C
A. Output Caching
B. DataCaching
C. A and B
D. none of the above
Ans: C
A. ControlToValidate
B. ControlToBind
C. ValidateControl
D. Validate
Ans: A
A. Session Objects
B. Application Objects
C. Viewstate
D. All of the above
Ans: D
A. System.Web.UI.Page
B. System.Web.UI.Form
C. System.Web.GUI.Page
D. System.Web.Form
Ans: A
A. RegSvr.exe
B. GacUtil.exe
C. GacSvr32.exe
D. GacMgr.exe
Ans: B
A. Server.CreateObject("Scripting.FileSystemObject")
B. Create("FileSystemObject")
C. Create Object:"Scripting.FileSystemObject"
D. Server.CreateObject("FileSystemObject")
Ans:A
A. The Paint() method
B. The Control_Build() method
C. The default constructor
 D.The Render() method
Ans: D
A. Response.Output.Write() allows you to buffer output
B. Response.Output.Write() allows you to write formatted output
C. Response.Output.Write() allows you to flush output
D. Response.Output.Write() allows you to stream output
Ans: B
A. Page_Init()
B. Page_Load()
C. Page_click()
Ans: A
A. LinkCounter
B. Counter
C. AdRotator
D. File Access
Ans: A
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. To configure the web browser
Ans: B
 A. HTMLForms
 B. Webforms
 C.Winforms
Ans: B


0 comments:

Post a Comment