Itec81 Quiz 2 Answer
Itec81 Quiz 2 Answer
QUIZ No. 2 (PRELIM) A) To store code C) To run the application's backend processes
SET A B) To serve as a container for visual elements D) To compile the source code
19. What is the role of the Visual Studio IDE?
Multiple Choice: A) To run applications C) To design hardware components
1. What does VB.NET stand for? B) To provide tools for building applications D) To manage databases
A) Visual Basic Network Enabled Technologies C) Visual Basic Next Evolutionary Technology 20. In event-driven programming, what triggers the flow of the program?
B) Visual Basic New Enhanced Tools D) Visual Basic Network Evolutionary Techniques A) Predefined commands C) System updates
2. Which version of Visual Basic is VB.NET a successor to? B) User actions or other triggers D) Scheduled tasks
A) Visual Basic 5.0 B) Visual Basic 6.0 C) Visual Basic 7.0 D) Visual Basic 8.0 21. What is an event handler in VB.NET?
3. Which programming paradigm does VB.NET support? A) A visual element in the interface C) A type of variable
A) Procedural Programming C) Functional Programming B) A procedure that responds to an event D) A control property
B) Object-Oriented ProgrammingD) Logic Programming 22. Which of the following control provides a customizable grid for displaying tabular data?
4. What is the entry point of a VB.NET application? A) Button B) TextBox C) GridView D) MenuStrip
A) Sub Main B) Function Main C) Main Method D) Main Procedure 23. What is a method in Visual Basic?
5. What is the purpose of the .NET Common Language Runtime (CLR)? A) A property of a control C) An event that occurs in the program
A) To provide a graphical user interface for VB.NET B) An action or function that an object can perform D) A visual component of the UI
B) To compile VB.NET code into machine language 24. Which control would you use to display a list of items for user selection?
C) To manage the execution of .NET applications and perform garbage collection A) Button B) CheckBox C) ListBox D) Label
D) To handle database connectivity in VB.NET 25. In Visual Basic, which of the following control naming conventions is correct for a TextBox?
6. Which feature of VB.NET helps in rapid application development? A) lblName B) btnSubmit C) txtUsername D) picLogo
A) Drag-and-Drop functionality C) Manual Code Writing 26. What does the DateTimePicker control allow users to select?
B) Multithreading D) Direct Hardware Interaction A) A file from the system C) A color scheme
7. Which component of the .NET Framework defines rules for language interoperability? B) A date and optionally a time D) A new window
A) Common Type System (CTS) C) Just-In Time Compiler (JIT) 27. What is the purpose of setting properties at design time in VB.NET?
B) Common Language Specification (CLS) D) Framework Class Library (FCL) A) To define the behavior of the application during runtime
8. In VB.NET, what is used to handle runtime errors? B) To adjust the visual appearance and initial settings of controls
A) Try, Catch, Finally B) If, Else, End C) Do, Loop, Exit D) For, Next, Continue C) To write code for event handlers
9. Which keyword is used to declare a variable in VB.NET? D) To manage application performance
A) Declare B) Define C) Dim D) Var
10. What is the primary disadvantage of using VB.NET? True/False:
A) Ease of use C) Limited cross-platform support T 28. VB.NET fully supports object-oriented programming principles like inheritance and polymorphism.
B) Integration with .NET Framework D) Strong IDE support F 29. VB.NET is a low-level programming language.
11. Which namespace is commonly used in VB.NET? T 30. The .NET Framework includes the Common Language Runtime (CLR) and the Framework Class Library (FCL).
A) System.IO B) System.Data C) System D) Microsoft F 31. VB.NET can only be used for Windows applications and not for web or mobile applications.
12. How are identifiers named in VB.NET? F 32. Identifiers in VB.NET can start with a digit but not with a letter or underscore.
A) They must start with a digit C) They must be in uppercase T 33. Automatic garbage collection in VB.NET helps manage memory efficiently.
B) They must start with a letter or underscore D) They can be any length but must end with a number T 34. In VB.NET, a 'Sub' procedure does not return a value.
13. What type of error occurs when a program compiles and runs but produces incorrect results? T 35. The Just-In Time Compiler (JIT) translates Intermediate Language (IL) into processor-specific machine language.
A) Syntax Error B) Runtime Error C) Logical Error D) Compilation Error F 36. VB.NET applications are limited to running only on Windows operating systems.
14. Which tool is commonly used for VB.NET development? F 37. VB.NET uses keywords as identifiers in programming.
A) Eclipse B) IntelliJ IDEA C) Visual Studio D) NetBeans F 38. Visual Basic .NET is used primarily for creating mobile applications.
15. Which of the following is a feature of VB.NET? T 39. A window in a GUI environment can include text fields, buttons, and images.
A) Manual memory management C) Limited error detection T 40. Event-driven programming relies on user actions to determine the flow of the program.
B) Structured exception handling D) No support for GUI design T 41. Event handlers are also known as event procedures in Visual Basic.
16. What does the Visual Basic .NET (VB.NET) programming language primarily create? F 42. In Visual Basic, methods define the properties of an object.
A) Web applications C) Mobile apps F 43. Properties of a control can only be set at design time and not at runtime.
B) Desktop (Windows) and web applications D) Console applications F 44. A Label control allows users to input and edit text.
17. What does a graphical user interface (GUI) use to interact with the user? F 45. The CheckBox control allows users to select one option from a list of mutually exclusive options.
A) Text commands C) Voice commands
B) Graphical elements like buttons and menus D) Command-line inputs
ITEC81 – Event Driven Programming 18. In VB.NET, what is used to handle runtime errors?
QUIZ No. 2 (PRELIM) A) Try, Catch, Finally B) If, Else, End C) Do, Loop, Exit D) For, Next, Continue
SET B 19. What does a graphical user interface (GUI) use to interact with the user?
A) Text commands C) Voice commands
Multiple Choice: B) Graphical elements like buttons and menus D) Command-line inputs
1. Which version of Visual Basic is VB.NET a successor to? 20. Which component of the .NET Framework defines rules for language interoperability?
A) Visual Basic 5.0 B) Visual Basic 6.0 C) Visual Basic 7.0 D) Visual Basic 8.0 A) Common Type System (CTS) C) Just-In Time Compiler (JIT)
2. What is the role of the Visual Studio IDE? B) Common Language Specification (CLS) D) Framework Class Library (FCL)
A) To run applications C) To design hardware components 21. What is the purpose of setting properties at design time in VB.NET?
B) To provide tools for building applications D) To manage databases A) To define the behavior of the application during runtime
3. What is the entry point of a VB.NET application? B) To adjust the visual appearance and initial settings of controls
A) Sub Main B) Function Main C) Main Method D) Main Procedure C) To write code for event handlers
4. Which of the following control provides a customizable grid for displaying tabular data? D) To manage application performance
A) Button B) TextBox C) GridView D) MenuStrip 22. What does VB.NET stand for?
5. What is an event handler in VB.NET? A) Visual Basic Network Enabled Technologies C) Visual Basic Next Evolutionary Technology
A) A visual element in the interface C) A type of variable B) Visual Basic New Enhanced Tools D) Visual Basic Network Evolutionary Techniques
B) A procedure that responds to an event D) A control property 23. Which feature of VB.NET helps in rapid application development?
6. What is the purpose of the .NET Common Language Runtime (CLR)? A) Drag-and-Drop functionality C) Manual Code Writing
A) To provide a graphical user interface for VB.NET B) Multithreading D) Direct Hardware Interaction
B) To compile VB.NET code into machine language 24. What type of error occurs when a program compiles and runs but produces incorrect results?
C) To manage the execution of .NET applications and perform garbage collection A) Syntax Error B) Runtime Error C) Logical Error D) Compilation Error
D) To handle database connectivity in VB.NET 25. What is the primary purpose of the .NET Common Language Runtime (CLR)?
7. What is the primary disadvantage of using VB.NET? A) To provide a graphical user interface for VB.NET
A) Ease of use C) Limited cross-platform support B) To compile VB.NET code into machine language
B) Integration with .NET Framework D) Strong IDE support C) To manage the execution of .NET applications and perform garbage collection
8. How are identifiers named in VB.NET? D) To handle database connectivity in VB.NET
A) They must start with a digit C) They must be in uppercase 26. Which namespace is commonly used in VB.NET?
B) They must start with a letter or underscore D) They can be any length but must end with a number A) System.IO B) System.Data C) System D) Microsoft
9. Which keyword is used to declare a variable in VB.NET? 27. In Visual Basic, which of the following control naming conventions is correct for a TextBox?
A) Declare B) Define C) Dim D) Var A) lblName B) btnSubmit C) txtUsername D) picLogo
10. What does the DateTimePicker control allow users to select?
A) A file from the system B) A date and optionally a time C) A color scheme D) A new window True/False:
11. In Visual Basic, what is the purpose of a window? 28. VB.NET fully supports object-oriented programming principles like inheritance and polymorphism.
A) To store code C) To run the application's backend processes 29. The .NET Framework includes the Common Language Runtime (CLR) and the Framework Class Library (FCL).
B) To serve as a container for visual elements D) To compile the source code 30. Automatic garbage collection in VB.NET helps manage memory efficiently.
12. Which control would you use to display a list of items for user selection? 31. In VB.NET, a 'Sub' procedure does not return a value.
A) Button B) CheckBox C) ListBox D) Label 32. The Just-In Time Compiler (JIT) translates Intermediate Language (IL) into processor-specific machine language.
13. Which tool is commonly used for VB.NET development? 33. Event-driven programming relies on user actions to determine the flow of the program.
A) Eclipse B) IntelliJ IDEA C) Visual Studio D) NetBeans 34. Event handlers are also known as event procedures in Visual Basic.
14. What is a method in Visual Basic? 35. VB.NET is a low-level programming language.
A) A property of a control C) An event that occurs in the program 36. VB.NET can only be used for Windows applications and not for web or mobile applications.
B) An action or function that an object can perform D) A visual component of the UI 37. Identifiers in VB.NET can start with a digit but not with a letter or underscore.
15. In event-driven programming, what triggers the flow of the program? 38. VB.NET applications are limited to running only on Windows operating systems.
A) Predefined commands C) System updates 39. VB.NET uses keywords as identifiers in programming.
B) User actions or other triggers D) Scheduled tasks 40. Visual Basic .NET is used primarily for creating mobile applications.
16. What does Visual Basic .NET (VB.NET) programming language primarily create? 41. A window in a GUI environment can include text fields, buttons, and images.
A) Web applications C) Mobile apps 42. In Visual Basic, methods define the properties of an object.
B) Desktop (Windows) and web applications D) Console applications 43. Properties of a control can only be set at design time and not at runtime.
17. Which of the following is a feature of VB.NET? 44. A Label control allows users to input and edit text.
A) Manual memory management C) Limited error detection 45. The CheckBox control allows users to select one option from a list of mutually exclusive options.
B) Structured exception handling D) No support for GUI design
KEY TO CORRECTION SET A – PRELIM QUIZ NO. 2 KEY TO CORRECTION SET B – PRELIM QUIZ NO. 2