.NET MCQs MULTIPLE CHOICE QUESTION
Check your Knowledge Press to Start www.prolearninghub.com
Object oriented language 1) VB .NET is a Object oriented language Structured language Classical language None of these www.prolearninghub.com
2) VB.Net programming is very much based on JAVA language Web based languages Visual Basic programming languages None of these www.prolearninghub.com
3) Which of the following Loop structure does not supported by VB.Net? DO loop For next DO While For Each While www.prolearninghub.com
4) The _____ model does not offer a model for source code reuse. COM+ DCOM COM .NET www.prolearninghub.com
5) ____ allow custom items of information about a program element to be stored with an assembly's metadata. Properties Attributes Methods Classes www.prolearninghub.com
6) The corresponding .Net FCL type for Short is ___________. System.Int32 System.Int64 System.Int16 System.Object www.prolearninghub.com
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 www.prolearninghub.com
8) The ___________ method converts an OLE automation date value to a DateTime Instance. Today timeofDay Now FromOADate www.prolearninghub.com
9) The function procedures are ___________ by default. Public Private Protected Inherited www.prolearninghub.com
10) Every optional argument in the procedure definition must specify a _________ value which must be a constant expression. Constant Default Integer Character www.prolearninghub.com
11) Type casting in VB.Net is implemented by means of ____________ statement. TypeDef() Btype() Ctype() www.prolearninghub.com
12) State whether the statement true or false 12) State whether the statement true or false. Function procedures are public by default. True False www.prolearninghub.com
13) A variable which is declared inside a method is called a________variable? Serial Local Private Static www.prolearninghub.com
14) Using a ________ variable does not enable us to create read-only properties that are often required by a class. Public Private Protected Friend www.prolearninghub.com
15) A _______ performs invisible tasks even if you write no code. destructor Private method constructor function www.prolearninghub.com
Class Library Reference 16) The______ does not describe inherited member functions, inherited operators, and overridden virtual member functions. Class Library Reference Library Object Classes www.prolearninghub.com
17) The ________ group classes according to their common services. Object Inheritence Name space Program www.prolearninghub.com
18) Whenever an application is created, a ______ is added. Form Class Property Object www.prolearninghub.com
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 www.prolearninghub.com
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 www.prolearninghub.com
21) Which is not a feature of a GUI that makes learning a program easy for users? Online help WYSIWYG formatting Icons Dialogue box www.prolearninghub.com
22) object is composed of: Properties Method Events All of the above www.prolearninghub.com
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 www.prolearninghub.com
24) Which is a numeric data type? Floating point Integer boolean All of the above www.prolearninghub.com
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 www.prolearninghub.com
26) The Date data type does not hold which type of information. Days Months Hours Quarters www.prolearninghub.com
27) The Boolean data type: Is unassigned has two states is displayed by the program as yes or no. Both A and B www.prolearninghub.com
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 www.prolearninghub.com
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 www.prolearninghub.com
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 www.prolearninghub.com
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. www.prolearninghub.com
32) With A = False and B = True, which statement evaluates as True? A AND A A and A B and A B and B www.prolearninghub.com
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 www.prolearninghub.com
34) Which is the appropriate prefix for a Dataset object? Das dat ds www.prolearninghub.com
35) Which object does the data-aware control bind to? A) Data set B) Data adaptor C) Connection Both A and B www.prolearninghub.com
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) www.prolearninghub.com
37) Which object contains the Position property of the current record in a dataset? BindingData BindingContext DataBound DataContext www.prolearninghub.com
38) The first record in a dataset has a position property of: Zero One any value defined by the programmer. All of them www.prolearninghub.com
39) Which below is specified by the DataMember Property? Connection Object DataAdapter object Data field Database table www.prolearninghub.com
40) Which below is specified by the DataSource Property? Connection object DataAdapter object Database field Database Object www.prolearninghub.com
41) What is the extension for a Visual Basic web form code file? .asp .aspx .aspx.vb .asp.vb.net www.prolearninghub.com
42) user action will not generate a server-side event? Mouse move Text change Button Click All of them www.prolearninghub.com
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 www.prolearninghub.com
44) Which property is used to name a web control? Control name Designation ID Name www.prolearninghub.com
45) Which language is used to create an ASP.NET code file? Visual Basic C# C++ All of the above www.prolearninghub.com
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 www.prolearninghub.com
47) Which set of symbols are used to signify the presence of ASP 47) Which set of symbols are used to signify the presence of ASP.NET code? <@ <# <% <$ www.prolearninghub.com
48) The _____ class provides static methods to start, stop, or filter Windows messages in an application. Form Window Application Control www.prolearninghub.com
49) The ______ enable us to pass data between a program and a class. Function Properties Procedures Variables www.prolearninghub.com
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 www.prolearninghub.com
The Results