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.
| 1. |
Which of the following is/are the values of TextAlign property that takes from content Alignment enumeration.BottomCenter ii) MiddleTop iii) TopLeft iv) MiddleLeft |
| A. | i, ii and iii only |
| B. | i, iii and iv only |
| C. | i, ii and iv only |
| D. | All i, ii, iii and iv |
| Answer» C. i, ii and iv only | |
| 2. |
Smart Phone applications and other such devices can be written using: |
| A. | .NET Compact Framework |
| B. | .NET Small Framework |
| C. | .NET Smartclient Framwork |
| D. | None of the above |
| Answer» B. .NET Small Framework | |
| 3. |
Which of the following is a basic data type in VB.NET? |
| A. | Boolean |
| B. | Byte |
| C. | Char |
| D. | All of the above |
| Answer» E. | |
| 4. |
………………… is the ability to create procedures that can operate on objects of different types. |
| A. | Abstraction |
| B. | Encapsulation |
| C. | Polymorphism |
| D. | Inheritance |
| Answer» D. Inheritance | |
| 5. |
Which of the following statement declares a user-defined event? |
| A. | Event |
| B. | Delegate |
| C. | Operator |
| D. | Property |
| Answer» B. Delegate | |
| 6. |
Most of the functionally of the text box control is simply inherited from the …………….. class, which is also the a base class for the rich text box control. |
| A. | TextBoxControl |
| B. | RichTextBox |
| C. | TextBoxBase |
| D. | TextBox |
| Answer» D. TextBox | |
| 7. |
Which of the following accesss modifier specifies that an attribute at the beginning of a source file applies to the current assembly module? |
| A. | Key |
| B. | Module |
| C. | Iterator |
| D. | In |
| Answer» C. Iterator | |
| 8. |
Which of the following directive defines conditional compiler constants? |
| A. | #Const |
| B. | #ExternalSource |
| C. | #If...Then...#Else |
| D. | #Region |
| Answer» B. #ExternalSource | |
| 9. |
The ______________ method converts the value of this instance to a double representing the OLE automation date. |
| A. | Now |
| B. | Today |
| C. | TO OA Date |
| D. | From OA Date |
| Answer» D. From OA Date | |
| 10. |
………………… datatype in .Net FCL corresponds integer data type in vb.net. |
| A. | System.Int32 |
| B. | System.Int64 |
| C. | System.Int16 |
| D. | System.Number |
| Answer» B. System.Int64 | |
| 11. |
………………… property on windows forms, gets or sets the size and location of the form on the windows desktop. |
| A. | Clientsize |
| B. | Size |
| C. | DesktopBounds |
| D. | Bounds |
| Answer» D. Bounds | |
| 12. |
………….. class is built into the .Net Framework to display messages and accept input from the user. |
| A. | Msgbox |
| B. | MessageBox |
| C. | InputBox |
| D. | DisplayBox |
| Answer» C. InputBox | |
| 13. |
…………………… is the process by which you can derive new classes from other classes. |
| A. | Abstraction |
| B. | Encapsulation |
| C. | Polymorphism |
| D. | Inheritance |
| Answer» E. | |
| 14. |
………… function in vb.net converts character to character code. |
| A. | Chr |
| B. | Val |
| C. | Asc |
| D. | Str |
| Answer» D. Str | |
| 15. |
In Vb.net, data is handled through ………………… which facilitates development of web applications. |
| A. | DAO |
| B. | RDO |
| C. | ADO |
| D. | ADO.NET |
| Answer» E. | |
| 16. |
The variables in ………………. access means they are accessible only from within their declaration context, including any nested procedures. |
| A. | Protected |
| B. | Friend |
| C. | Protected Friend |
| D. | Private |
| Answer» E. | |
| 17. |
………………… is built on a disconnected data model that uses snapshots of data that are isolated from the data source. |
| A. | DAO |
| B. | RDO |
| C. | ADO |
| D. | ADO.NET |
| Answer» E. | |
| 18. |
Which of the following block of VB.NET identifies a block of code for which particular exceptions will be activated? |
| A. | Try |
| B. | Catch |
| C. | Finally |
| D. | Throw |
| Answer» B. Catch | |
| 19. |
Which of the following accesss modifier specifies that a procedure argument can be omitted when the procedure is called? |
| A. | NotOverridable |
| B. | Optional |
| C. | Out |
| D. | Overloads |
| Answer» C. Out | |
| 20. |
Which of the following accesss modifier specifies that a property or procedure redeclares one or more existing properties or procedures with the same name? |
| A. | NotOverridable |
| B. | Optional |
| C. | Out |
| D. | Overloads |
| Answer» E. | |
| 21. |
The string handling function, “Mid” in visual basic .net is used to ……………..i) get a substring ii) insert a substring iii) remove text iv) format string |
| A. | i and ii |
| B. | ii and iii |
| C. | iii and iv |
| D. | i and iii |
| Answer» E. | |
| 22. |
Which of the following is the correct way of assigning value “centerscreen” for form’s startposition property. |
| A. | StartPosition.Form1=FormStartPosition.CenterScreen |
| B. | Form1.StartPosition=CenterScreen.FormStartPosition |
| C. | Form1.StartPosition=FormStartPosition.CenterScreen |
| D. | Form1.StartPosition=FormStartPosition.Location.CenterScreen |
| Answer» D. Form1.StartPosition=FormStartPosition.Location.CenterScreen | |
| 23. |
The file extension ……………… in vb.net represents a web form. |
| A. | .asp |
| B. | .asmx |
| C. | .aspx |
| D. | .asax |
| Answer» D. .asax | |
| 24. |
Whenever an application is created, a ______ is added. |
| A. | Class |
| B. | Object |
| C. | Form |
| D. | Property |
| Answer» D. Property | |
| 25. |
Which of the following is/are the ways of add scroll bars to a text box using scroll bars property.i) None ii) Horizontal iii) Vertical iv) Both |
| 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» E. | |
| 26. |
Which of the following accesss modifier specifies that a property or procedure cannot be overridden in a derived class? |
| A. | NotOverridable |
| B. | Optional |
| C. | Out |
| D. | Overloads |
| Answer» B. Optional | |
| 27. |
Which of the following is/are the public methods of RichTextBox objects.i) CanDelete ii) Find iii) LoadFile iv) SelectAll |
| 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» C. i, ii and iv only | |
| 28. |
Which of the following is/are the MessageBoxIcon enumeration values.i) Astrisk ii) Error iii) Hand iv) Ok |
| 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» E. | |
| 29. |
………………. method on windows forms public object methods, gets the child control that is located at the specified co-ordinates. |
| A. | GetChildAtPoint |
| B. | GetNextControl |
| C. | GetChildControl |
| D. | GetChildPoint |
| Answer» B. GetNextControl | |
| 30. |
In mouse cursor option ………………. is a cursor for mouse wheel operations when the mouse is moving and the window is scrolling horizontally and vertically downward to the left. |
| A. | PanSE |
| B. | PanSW |
| C. | PanSouth |
| D. | PanNW |
| Answer» C. PanSouth | |
| 31. |
………………… are symbols used to perform operations; like +, which performs addition operations, -, which performs subtraction operations and so on. |
| A. | Keywords |
| B. | Operators |
| C. | Variables |
| D. | Expressions |
| Answer» C. Variables | |
| 32. |
The file extension …………….. in vb.net represents a global application class, used to handle global application class, used to handle global ASP.NET application level events. |
| A. | .asp |
| B. | .asmx |
| C. | .aspx |
| D. | .asax |
| Answer» E. | |
| 33. |
………….. function in vb.net is used to convert character code to character. |
| A. | Char |
| B. | Format |
| C. | Convert |
| D. | Chr |
| Answer» E. | |
| 34. |
Which of the following accesss modifier indicates that a conversion operator (CType) converts a class or structure to a type that can hold all possible values of the original class or structure? |
| A. | Widening |
| B. | WithEvents |
| C. | WriteOnly |
| D. | ReadOnly |
| Answer» B. WithEvents | |
| 35. |
The SaveFile method is used to save the text in a rich text box to disk, and the ……………. method to read it back. |
| A. | LoadFile |
| B. | ReadFile |
| C. | ReadIt |
| D. | ReadBack |
| Answer» B. ReadFile | |
| 36. |
………………. namespace in vb.net includes classes and interfaces that return information about types, methods and fields and also have the ability to dynamically create and invoke types. |
| A. | System |
| B. | System.collections |
| C. | System.NET |
| D. | System.Reflection |
| Answer» E. | |
| 37. |
The Get and Set methods in the …………….. property to get and set the text in the text box. |
| A. | Getdata |
| B. | Textdata |
| C. | Textproperty |
| D. | GetSet |
| Answer» C. Textproperty | |
| 38. |
Hyperlinks can be created using the …………………………………. method in LinkClicked event handler. |
| A. | System.Diagnostics.Process.Start |
| B. | System.Diagnostics.Hyperlinks.Start |
| C. | System.Diagnostics.Link.Start |
| D. | System.Diagnostics.Link.Event |
| Answer» B. System.Diagnostics.Hyperlinks.Start | |
| 39. |
Which of the following is NOT the public properties of TextBox objects. |
| A. | AutoSize |
| B. | BackColor |
| C. | BulletIndent |
| D. | MaxLength |
| Answer» D. MaxLength | |
| 40. |
How to dereference an object in VB.NET? |
| A. | By setting the object to Null |
| B. | By setting the object to Nothing |
| C. | With Close keyword |
| D. | None of the above |
| Answer» C. With Close keyword | |
| 41. |
In mouse cursor option …………….. is a cursor for mouse wheel operations when the mouse is moving and the window is scrolling vertically in an upward direction. |
| A. | PanSE |
| B. | PanSW |
| C. | PanSouth |
| D. | PanNorth |
| Answer» E. | |
| 42. |
Which of the following converts the expression to SByte data type in VB.NET? |
| A. | CObj(expression) |
| B. | CSByte(expression) |
| C. | CShort(expression) |
| D. | CSng(expression) |
| Answer» C. CShort(expression) | |
| 43. |
Which of the following operator declares the parameters and code that define a function lambda expression? |
| A. | AddressOf |
| B. | Await |
| C. | GetType |
| D. | Function Expression |
| Answer» E. | |
| 44. |
Which of the following converts the expression to Long data type in VB.NET? |
| A. | CDbl(expression) |
| B. | CDec(expression) |
| C. | CInt(expression) |
| D. | CLng(expression) |
| Answer» E. | |
| 45. |
In order to get the text associated with the link, ………………… method can be used. |
| A. | e.Data.Link.ToString |
| B. | e.Link.LinkData.ToString |
| C. | e.LinkData.Link.ToString |
| D. | e.Link.Data.ToString |
| Answer» C. e.LinkData.Link.ToString | |
| 46. |
In Int32structure ……………….. function converts the string representation of a number of its Int32 equivalent. |
| A. | parse |
| B. | reverse |
| C. | rank |
| D. | index of |
| Answer» B. reverse | |
| 47. |
Which of the following is/are the possible values of MsgBoxResult returned from MsgBox function.i) Ok ii) Cancel iiii) Abort iv) Retry v) Ignore |
| A. | i, ii, iii and v only |
| B. | i, ii, iii and iv only |
| C. | ii, iii, iv and v only |
| D. | All i, ii, iii, iv and v |
| Answer» E. | |
| 48. |
Which of the following converts the expression to Boolean data type in VB.NET? |
| A. | CBool(expression) |
| B. | CByte(expression) |
| C. | CChar(expression) |
| D. | CDate(expression) |
| Answer» B. CByte(expression) | |
| 49. |
Which of the following accesss modifier specifies that the type is covariant? |
| A. | NotOverridable |
| B. | Optional |
| C. | Out |
| D. | Overloads |
| Answer» D. Overloads | |
| 50. |
Which of the following is NOT the public property of RichTextBox Objects. |
| A. | DetectURLs |
| B. | DetectText |
| C. | BulletIndent |
| D. | RightMargin |
| Answer» C. BulletIndent | |