1 .NET MCQs MULTIPLE CHOICE QUESTION
2 Check your Knowledge Press to Start
3 Object oriented language1) VB .NET is a Object oriented language Structured language Classical language None of these
4 2) VB.Net programming is very much based onJAVA language Web based languages Visual Basic programming languages None of these
5 3) Which of the following Loop structure does not supported by VB.Net?DO loop For next DO While For Each While
6 4) The _____ model does not offer a model for source code reuse.COM+ DCOM COM .NET
7 5) ____ allow custom items of information about a program element to be stored with an assembly's metadata. Properties Attributes Methods Classes
8 6) The corresponding .Net FCL type for Short is ___________.System.Int32 System.Int64 System.Int16 System.Object
9 7) The member "clear" of the Array class that sets a range of array elements to zero, false or null reference is a _____________ method. Shared Methods Class Object
10 8) The ___________ method converts an OLE automation date value to a DateTime Instance.Today timeofDay Now FromOADate
11 9) The function procedures are ___________ by default.Public Private Protected Inherited
12 10) Every optional argument in the procedure definition must specify a _________ value which must be a constant expression. Constant Default Integer Character
13 11) Type casting in VB.Net is implemented by means of ____________ statement.TypeDef() Btype() Ctype()
14 12) State whether the statement true or false12) State whether the statement true or false. Function procedures are public by default. True False
15 13) A variable which is declared inside a method is called a________variable?Serial Local Private Static
16 14) Using a ________ variable does not enable us to create read-only properties that are often required by a class. Public Private Protected Friend
17 15) A _______ performs invisible tasks even if you write no code.destructor Private method constructor function
18 Class Library Reference16) The______ does not describe inherited member functions, inherited operators, and overridden virtual member functions. Class Library Reference Library Object Classes
19 17) The ________ group classes according to their common services.Object Inheritence Name space Program
20 18) Whenever an application is created, a ______ is added.Form Class Property Object
21 19) Which are the standard prefixes for the text box and label controls respectively?Tex and lbl Tex and lab Txb and lbl Txb and lab
22 20) Which task is accomplished in the Code editor?Adding for to the project All control to the form Both A and B None of these
23 21) Which is not a feature of a GUI that makes learning a program easy for users?Online help WYSIWYG formatting Icons Dialogue box
24 22) object is composed of:Properties Method Events All of the above
25 23) Which statement about objects is true?One object is used to create one class. One class is used to create one object object can create many classes One class can create many objects
26 24) Which is a numeric data type?Floating point Integer boolean All of the above
27 25) Which sequence of char data types is listed from lowest to highest?a, A, z, Z A, a, Z, z A, Z, a, z z, a, Z, A
28 26) The Date data type does not hold which type of information.Days Months Hours Quarters
29 27) The Boolean data type:Is unassigned has two states is displayed by the program as yes or no. Both A and B
30 28) Which is a valid statement for declaring a variable?Const Form As Integer Const myForm As Integer Dim myForm As Integer All of above
31 can begin with an underscore.29) B.Net identifiers: Are case sensitive can begin with an underscore. can begin with a number. None of them
32 30) The name of a constant:must both begin with a letter and be all upper case. does not have to begin with a letter but must be all upper case. does not have to begin with a letter and be either upper or lower case. None of them
33 31) The proper operator precedence, from first to last, is:logical, comparison, and arithmetic. arithmetic, comparison, and logical. arithmetic, logical, and comparison. comparison, arithmetic, and logical.
34 32) With A = False and B = True, which statement evaluates as True?A AND A A and A B and A B and B
35 33) Which is a valid statement for declaring a variable?Const Form As Integer Const myForm As Integer Dim Form As Integer Dim myForm As Integer
36 34) Which is the appropriate prefix for a Dataset object?Das dat ds
37 35) Which object does the data-aware control bind to?A) Data set B) Data adaptor C) Connection Both A and B
38 36) What is the proper code to put data into the dataset called CustomerDataset using the CustomerDataAdapter object? CustomerDataset.Fill(CustomerDataAdapter) CustomerDataAdapter.Fill(CustomerDataset) CustomerDataset.Load(CustomerDataAdapter) CustomerDataAdapter.Load(CustomerDataset)
39 37) Which object contains the Position property of the current record in a dataset?BindingData BindingContext DataBound DataContext
40 38) The first record in a dataset has a position property of:Zero One any value defined by the programmer. All of them
41 39) Which below is specified by the DataMember Property?Connection Object DataAdapter object Data field Database table
42 40) Which below is specified by the DataSource Property?Connection object DataAdapter object Database field Database Object
43 41) What is the extension for a Visual Basic web form code file?.asp .aspx .aspx.vb .asp.vb.net
44 42) user action will not generate a server-side event?Mouse move Text change Button Click All of them
45 43) Because of the latency of a round-trip on the internet:the interface and code of a web form are stored in separate files. it is best to use server-side control only some user actions, such as button clicks, will generate events none of above
46 44) Which property is used to name a web control?Control name Designation ID Name
47 45) Which language is used to create an ASP.NET code file?Visual Basic C# C++ All of the above
48 46) It is best to use a web instead of a windows application when the application:has a thin front end (client). needs to be available to the public must be platform-independent. All of above
49 47) Which set of symbols are used to signify the presence of ASP47) Which set of symbols are used to signify the presence of ASP.NET code? <# <% <$
50 48) The _____ class provides static methods to start, stop, or filter Windows messages in an application. Form Window Application Control
51 49) The ______ enable us to pass data between a program and a class.Function Properties Procedures Variables
52 50) The ____ method converts the value of this instance to a double representing the OLE automation date From OA Date TO OA Date Today Now
53 The Results