

MCQOPTIONS
Saved Bookmarks
This section includes 623 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
151. |
Which class is used to run the EXE application file in VB.NET? |
A. | Process |
B. | Application |
C. | Exe |
D. | Execute |
Answer» B. Application | |
152. |
Which of the following namespaces is used to access "computer name" and its IP address in VB.NET? |
A. | System.NET.DNS |
B. | System.Diagnostics.Process |
C. | System.Data.Common |
D. | None of the Above |
Answer» B. System.Diagnostics.Process | |
153. |
It is a comprehensive, object-oriented collection of reusable types that you can use to develop applications. |
A. | Class Library |
B. | Solution Explorer |
C. | Properties Window |
D. | Windows Form Designer |
Answer» B. Solution Explorer | |
154. |
A click event procedure stud for the label control can be created by: |
A. | selecting the object and event from the code editor window’s drop-down boxes. |
B. | typing the code in the code editor window. |
C. | by double clicking the control. |
D. | All of the above |
Answer» E. | |
155. |
In event-driven programming an event is generated by: |
A. | the system |
B. | a user’s action |
C. | the program itself |
D. | All of the above |
Answer» E. | |
156. |
VB.Net is |
A. | Platform Independent |
B. | Compiler Language |
C. | Forward compatibale |
D. | Backward compatible |
Answer» E. | |
157. |
VB.Net supports |
A. | Structured error handling |
B. | Unstructured error handling |
C. | Both |
D. | None |
Answer» B. Unstructured error handling | |
158. |
It translates all high level instructions into machine code first before running the program. |
A. | Interpreter |
B. | Compiler |
C. | Translator |
D. | Language |
Answer» C. Translator | |
159. |
A window that lists the solution name, the project name and all the forms used in the project. |
A. | Properties Window |
B. | Solution Explorer |
C. | Windows Form Designer |
D. | Project Window |
Answer» C. Windows Form Designer | |
160. |
The CancelButton property belongs to which object? |
A. | Form |
B. | Button |
C. | Label |
D. | TextBox |
Answer» B. Button | |
161. |
Which of the following property of Array class in VB.NET gets the rank (number of dimensions) of the Array? |
A. | Rank |
B. | LongLength |
C. | Length |
D. | None of the above |
Answer» B. LongLength | |
162. |
State the following statements are True or False for arrays in visual basic .net arei) Array are objects in vb .netii) Array variables can have the public, protected, friend, private or protected friend specifier |
A. | True, False |
B. | False, True |
C. | True, True |
D. | False, False |
Answer» D. False, False | |
163. |
When you save a solution, it’s give the file extension .sln and all the projects in the solution are saved with the extension …………… |
A. | .vbproj |
B. | .vbdisco |
C. | .vbs |
D. | .vb |
Answer» B. .vbdisco | |
164. |
The .NET platform and the .NET framework class library were developed in an effort to address these weakness of …………………. |
A. | XML |
B. | HTML |
C. | COM |
D. | DCOM |
Answer» D. DCOM | |
165. |
___________ displays current directory with any subdirectories and allows the user to change directory. |
A. | FileListBox |
B. | DirListBox |
C. | DriveListBox |
D. | All of these |
Answer» C. DriveListBox | |
166. |
We can assign form’s start position property values from the FormStartPosition enumeration, with the following values.i) Certerpart ii) CenterScreen iii) Manual iv) Location |
A. | i, ii and iii only |
B. | ii, iii and iv only |
C. | i, ii and iv only |
D. | All i, ii, iii and iv |
Answer» B. ii, iii and iv only | |
167. |
Which of the following converts the expression to String data type in VB.NET? |
A. | CStr(expression) |
B. | CSByte(expression) |
C. | CShort(expression) |
D. | CSng(expression) |
Answer» B. CSByte(expression) | |
168. |
________ function returns the intervals between two dates in terms of years, months or days. |
A. | DateDiff( ) |
B. | DateIn( ) |
C. | DateFix( ) |
D. | DiDate( ) |
Answer» B. DateIn( ) | |
169. |
The possible values for the FormBorderStyle property is/are the followingi) Fixed3D ii) None iii) FixedSingle iv) VariableDialog |
A. | i, ii and iii only |
B. | ii, iii and iv only |
C. | i, ii and iv only |
D. | All i, ii, iii and iv |
Answer» B. ii, iii and iv only | |
170. |
Which of the following converts the expression to Decimal data type in VB.NET? |
A. | CDbl(expression) |
B. | CDec(expression) |
C. | CInt(expression) |
D. | CLng(expression) |
Answer» C. CInt(expression) | |
171. |
……………… namespace in vb.net includes essential classes and base classes that define commonly used data types, events and event handlers, interfaces, attributes, exceptions and so on. |
A. | System |
B. | System.collections |
C. | System.NET |
D. | System.Reflection |
Answer» B. System.collections | |
172. |
……………….. keyword is used to refer to the current object. |
A. | Current |
B. | Me |
C. | This |
D. | ThisForm |
Answer» C. This | |
173. |
JIT stands for |
A. | Just In Type |
B. | Just In Time |
C. | Just In Thread |
D. | Just In Text |
Answer» C. Just In Thread | |
174. |
Which of the following accesss modifier specifies that a class cannot be used as a base class? |
A. | MustInherit |
B. | MustOverride |
C. | Narrowing |
D. | NotInheritable |
Answer» E. | |
175. |
……………… are symbolic names given to values stored in memory and declared with the Dim keyword. |
A. | Keywords |
B. | Operators |
C. | Variables |
D. | Expressions |
Answer» D. Expressions | |
176. |
The Java and Visual Basic .NET belong to this type of programming language. |
A. | Assembly language |
B. | Machine language |
C. | High level programming language |
D. | Object oriented programming language |
Answer» B. Machine language | |
177. |
Which of the following block of VB.NET identifies a place to catch an exception with an exception handler at the place in a program where you want to handle the problem? |
A. | Try |
B. | Catch |
C. | Finally |
D. | Throw |
Answer» C. Finally | |
178. |
A …………………… is a collection of one or more record sets as well as the relationships between those tables or record sets. |
A. | dataset |
B. | datatable |
C. | recordset |
D. | relationshipset |
Answer» B. datatable | |
179. |
……………… property of windows form sets the padding used between docked controls and the form’s edge. |
A. | DockPadding |
B. | DialogResult |
C. | Dialog Padding |
D. | DockResult |
Answer» B. DialogResult | |
180. |
Both COM and distributed COM(DCOM) technology has been replaced by the .NET framework, although you still have access to COM through what VB.NET calls …………… |
A. | COM technlogy |
B. | COM framework |
C. | COM interoperability |
D. | COM distribution |
Answer» D. COM distribution | |
181. |
Which of the following Collection class of VB.NET represents a last-in, first out collection of object? |
A. | ArrayList |
B. | Hashtable |
C. | SortedList |
D. | Stack |
Answer» E. | |
182. |
The window in which the individual documents are displayed is called ____________window. |
A. | Main |
B. | Child |
C. | Parent |
D. | Root |
Answer» C. Parent | |
183. |
Every optional argument in the procedure definition must specify a _________ value which must be a constant expression. |
A. | integer |
B. | constant |
C. | default |
D. | character |
Answer» D. character | |
184. |
A …………… is a reference type that represents a strongly typed function pointer. |
A. | Enumeration |
B. | Interface |
C. | Delegate |
D. | Structure |
Answer» D. Structure | |
185. |
The ……………… variable are accessible from within the program that contains their declaration, as well as anywhere else in the same assembly. |
A. | Protected |
B. | Friend |
C. | Protected Friend |
D. | Private |
Answer» C. Protected Friend | |
186. |
__________ cannot be declared in a form or class module. |
A. | Static constants |
B. | Private constants |
C. | Public constants |
D. | None of these |
Answer» D. None of these | |
187. |
………………. are based on XML schema, so they can be strongly typed. |
A. | DAO |
B. | RDO |
C. | ADO |
D. | ADO.NET |
Answer» E. | |
188. |
__________ do not return a value. |
A. | Sub procedure |
B. | Function procedure |
C. | Property procedures |
D. | All of these |
Answer» B. Function procedure | |
189. |
The code in an application can be broken into logical components by _______ process. |
A. | modular |
B. | procedural |
C. | partitioning |
D. | None of the above |
Answer» D. None of the above | |
190. |
In the new sub procedure of windows forms, the code calls a procedure named ………………., which adds and arranges the controls in the form. |
A. | InitializeComponent |
B. | AddComponet |
C. | NewComponet |
D. | SubComponent |
Answer» B. AddComponet | |
191. |
The …………… property in array class of vb .net, returns an integer indicating the number of dimensions of the array. |
A. | sort |
B. | reverse |
C. | rank |
D. | index of |
Answer» D. index of | |
192. |
TextBox controls also can be used to accept password if the …………….. property is used to mask characters. |
A. | PasswordChar |
B. | PasswordCharacter |
C. | MaskChar |
D. | PasswordControl |
Answer» B. PasswordCharacter | |
193. |
Which is not a feature of a GUI that makes learning a program easy for users? |
A. | Detailed key strokes and commands |
B. | WYSIWYG formatting |
C. | Dialog boxes |
D. | Online help |
Answer» B. WYSIWYG formatting | |
194. |
Which are the standard prefixes for the text box and label controls respectively? |
A. | txb and lbl |
B. | txb and lab |
C. | tex and lbl |
D. | tex and lab |
Answer» B. txb and lab | |
195. |
An object is composed of: |
A. | properties |
B. | events |
C. | methods |
D. | All of the above |
Answer» E. | |
196. |
Which task is accomplished in the Code editor? |
A. | Adding forms to the project |
B. | Adding controls to the form |
C. | Adding controls to the title |
D. | Adding event procedures to the form |
Answer» E. | |
197. |
Which is not true about forms and controls in Visual Basic? |
A. | They are pre-built. |
B. | They are graphical objects. |
C. | Buttons can be created with the drag and drop method. |
D. | New versions of the classes must be created with each project. |
Answer» E. | |
198. |
Which is an example of Visual Basic Objects? |
A. | ASP.NET |
B. | ADO.NET |
C. | Control objects |
D. | All of the above |
Answer» E. | |
199. |
Which statement about objects is true? |
A. | One class is used to create one object. |
B. | One class can create many objects. |
C. | One object is used to create one class. |
D. | One object can create many classes. |
Answer» C. One object is used to create one class. | |
200. |
The .Net class library: |
A. | uses namespaces to manage all of the classes. |
B. | contains over 25,000 classes. |
C. | both (a) and (b) |
D. | has the System.Form namespace for classes used in Windows-based application. |
Answer» D. has the System.Form namespace for classes used in Windows-based application. | |