61. Which is not a common control event?
- a) Click.
- b) SingleClick.
- c) DoubleClick.
- d) MouseMove.
Answer: B - There is no standard "SingleClick" event; it's simply called "Click" in most GUI frameworks.
62. The Tick event is found only in which object?
- a) Form
- b) Button
- c) TextBox
- d) Timer
Answer: D - The Tick event is specific to Timer controls, firing at regular intervals according to the timer's settings.
63. Which of the following function prototypes is perfectly acceptable?
- a) int Function(int Tmp = Show());
- b) float Function(int Tmp = Show(int, float));
- c) Both A and B.
- d) float = Show(int, float) Function(Tmp);
Answer: A - Only option A shows valid C++ default parameter syntax with a function call as default value.
64. The Boolean data type:
- a) is unsigned.
- b) has two states.
- c) is displayed by the program as yes or no.
- d) Both a and b.
Answer: D - Boolean data types are unsigned (only positive) and have exactly two states: true/false.
65. 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: D - Events can originate from user actions, system processes, or programmatically generated triggers.
66. The Activated event is found only in which object?
- a) Form
- b) Button
- c) TextBox
- d) Label
Answer: A - The Activated event specifically occurs when a form becomes the active window in the application.
67. Which is a valid statement for declaring a variable?
- a) Const Form As Integer.
- b) Const myForm As Integer.
- c) Dim Form As Integer.
- d) Dim myForm As Integer.
Answer: D - "Dim myForm As Integer" uses proper VB.NET syntax with Dim keyword and valid variable naming.
68. Type casting in VB.Net is implemented by means of _______ statement.
- a) Type()
- b) TypeDef()
- c) Btype()
- d) Ctype()
Answer: D - CType() is the standard VB.NET function for explicit type conversion and casting operations.
69. Which is not an integer data type?
- a) Single
- b) Byte
- c) Short
- d) Integer
Answer: A - Single is a floating-point data type, not an integer type like Byte, Short, or Integer.
70. The ______ method converts an OLE automation date value to a DateTime Instance.
- a) Today
- b) TimeOfDay
- c) Now
- d) FromOADate
Answer: D - FromOADate() is the specific .NET method for converting OLE Automation dates to DateTime objects.
71. The _____ model does not offer a model for source code reuse.
- a) COM+
- b) DCOM
- c) COM
- d) .Net
Answer: C - Classic COM focuses on binary component reuse, not source code reuse like .NET assemblies.
72. Which of the following Loop structure does not supported by VB.Net?
- a) Do ....... Loop
- b) For ......... Next
- c) Do ........ While
- d) For Each ........ While
Answer: C - VB.NET doesn't support "Do...While" as a single statement; it uses "Do While...Loop" instead.
73. What does IDE stand for_______?
- a) Integrated Development Environment.
- b) Integrated Design Environment.
- c) Interior Development Environment.
- d) Interior Design Environment.
Answer: A - IDE stands for Integrated Development Environment, software suites for programming like Visual Studio.
74. Which is a numeric data type?
- a) Floating point
- b) Integer
- c) Boolean
- d) Both a and b.
Answer: D - Both floating-point and integer types are numeric; Boolean is a logical data type.
75. How will you release the memory acquired by an array variable in VBScript?
- a) Using Join function.
- b) Using Filter function.
- c) Using IsArray function.
- d) Using Erase Function.
Answer: D - The Erase statement clears all elements of an array and releases the memory in VBScript.
76. Which is the correct order of precedence of Arithmetic operators?
- a) +/*-
- b) */+-
- c) +-*/
- d) +*-/
Answer: B - Multiplication and division (* /) have higher precedence than addition and subtraction (+ -).
77. Is VBScript case sensitive?
- a) TRUE
- b) FALSE
- c) Private
- d) All of the above.
Answer: B - VBScript is case-insensitive, treating variable names like "MyVar" and "myvar" as identical.
78. The .Net class library:________
- a) Contains over 25,000 classes.
- b) Uses namespaces to manage all of the classes.
- c) Uses namespaces to manage all of the classes.
- d) Both a and b.
Answer: D - The .NET Framework Class Library contains thousands of classes organized using namespaces.
79. The name of a constant:________
- a) Must both begin with a letter and be all upper case.
- b) Does not have to begin with a letter but must be all upper case.
- c) Must begin with a letter but can be upper or lower case.
- d) Does not have to begin with a letter and be either upper or lower case.
Answer: D - Constant names in most languages have flexible naming rules, though conventions vary.
80. The ___________ method converts an OLE automation date value to a DateTime Instance.
- a) Today
- b) TimeOfDay
- c) Now
- d) FromOADate
Answer: D - FromOADate() converts OLE Automation dates (Excel-compatible) to .NET DateTime objects.