

MCQOPTIONS
Saved Bookmarks
This section includes 120 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
101. |
Which of the following is true about dispose() method? |
A. | This method is protected. |
B. | Its return type is int. |
C. | It accepts a float parameter. |
D. | All of the above. |
Answer» B. Its return type is int. | |
102. |
ADO.NET was created for |
A. | Multiple users. |
B. | Single users. |
C. | Home network users. |
D. | Limited users. |
Answer» B. Single users. | |
103. |
Which of the following statements are correct about data types? 1. If the integer literal exceeds the range of byte, a compilation error will occur. 2. We cannot implicitly convert non-literal numeric types of larger storage size to byte. 3. Byte cannot be implicitly converted to float. 4. A char can be implicitly converted to only int data type. 5. We can cast the integral character codes. |
A. | 1,3,5 |
B. | 2,4 |
C. | 3,5 |
D. | 1,2,5 |
Answer» E. | |
104. |
The controls available in the tool box of the ______ are used to create the user interface of a web based application. |
A. | Microsoft visual studio IDE |
B. | Application window |
C. | Web forms |
D. | None of the above |
Answer» B. Application window | |
105. |
To avoid writing additional SQL statements to update a live database, you instantiate an object of which class? |
A. | DataAdapter |
B. | DataReader |
C. | DataSet |
D. | CommandBuilder |
Answer» B. DataReader | |
106. |
________causes the loop to continue with the next iteration after skipping any statementsin between. |
A. | Loop |
B. | Exit |
C. | Break |
D. | Continue |
Answer» E. | |
107. |
The ______ parentheses that follow _____ indicate that no information is passed to Main(). |
A. | Empty, class |
B. | Empty, submain |
C. | Empty, Main |
D. | Empty, Namespace |
Answer» D. Empty, Namespace | |
108. |
A _____ is any valid C# variable ending with a colon. |
A. | goto |
B. | Label |
C. | Logical |
D. | Bitwise |
Answer» C. Logical | |
109. |
Which of the Control objects is viewed as a container that can hold other objects whenyou design a Windows application? |
A. | Control |
B. | Button |
C. | Window |
D. | Form |
Answer» E. | |
110. |
The ADO.NET disconnected dataset |
A. | Provides a flexible way of working with database records. |
B. | Makes working with databases very complex. |
C. | Requires a large amount of memory space. |
D. | Is required when single users want to access a database. |
Answer» B. Makes working with databases very complex. | |
111. |
Dot Net Framework consists of : |
A. | Common language runtime |
B. | Set of class libraries |
C. | Common language runtime and set of class libraries |
D. | None of above |
Answer» D. None of above | |
112. |
Which of the following statements are correct? 1. Instance members of a class can be accessed only through an object of that class. 2. A class can contain only instance data and instance member function. 3. All objects created from a class will occupy equal number of bytes in memory. 4. A class can contain Friend functions. 5. A class is a blueprint or a template according to which objects are created. |
A. | 1,3,5 |
B. | 2,4 |
C. | 3,5 |
D. | 2,4,5 |
Answer» B. 2,4 | |
113. |
The point at which an exception is thrown is called the _______. |
A. | Default point |
B. | Invoking point |
C. | Calling point |
D. | Throw point |
Answer» E. | |
114. |
A connection string contains |
A. | a using directive |
B. | the name of the data source |
C. | the version number of database management system |
D. | the list of fields in the database |
Answer» C. the version number of database management system | |
115. |
Databases store information in records, fields and: |
A. | data providers |
B. | grids |
C. | columns |
D. | tables |
Answer» E. | |
116. |
Which of the following benefits do we get on running managed code under CLR? 1. Type safety of the code running under CLR is assured. 2. It is ensured that an application would not access the memory that it is not authorized to access. 3. It launches separate process for every application running under it. 4. The resources are Garbage collected. |
A. | Only 1 and 2 |
B. | Only 2, 3 and 4 |
C. | Only 1, 3 and 4 |
D. | All of the above |
Answer» E. | |
117. |
Which of the following statements are correct about JIT? 1. JIT compiler compiles instructions into machine code at run time. 2. The code compiler by the JIT compiler runs under CLR. 3. The instructions compiled by JIT compilers are written in native code. 4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code. 5. The method is JIT compiled even if it is not called |
A. | 1, 2, 3 |
B. | 2,4 |
C. | 3,4,5 |
D. | 1,2 |
Answer» B. 2,4 | |
118. |
Which of the following statements is correct about the C#.NET code snippet given below?class Student s1, s2; // Here 'Student' is a user-defined class. s1 = new Student(); s2 = new Student(); |
A. | Contents of s1 and s2 will be exactly same. |
B. | The two objects will get created on the stack. |
C. | Contents of the two objects created will be exactly same. |
D. | The two objects will always be created in adjacent memory locations. |
Answer» D. The two objects will always be created in adjacent memory locations. | |
119. |
When is the dataset connected to the database? |
A. | Whenever the program makes changes to a field or record |
B. | They are always connected |
C. | They are always disconnected |
D. | Whenever the program is running |
Answer» B. They are always connected | |
120. |
What will be the output of the following code snippet when it is executed? int x = 1; float y = 1.1f; short z = 1; Console.Write.Line((float) x + y * z - (x += (short) y)); |
A. | 0.1 |
B. | 1.0 |
C. | 1.1 |
D. | 11 |
Answer» B. 1.0 | |