Q1
Q1 What is VB.NET primarily used for?
To manage databases
To automate web development
To build Windows-based applications using the .NET framework
To design network architectures
Q2
Q2 Which company developed VB.NET?
Apple
Microsoft
IBM
Q3
Q3 Which framework does VB.NET use?
Spring Framework
Django Framework
.NET Framework
Flask Framework
Q4
Q4 VB.NET is an example of which type of programming language?
Procedural
Object-oriented
Functional
Assembly
Q5
Q5 Which of the following best describes VB.NET?
A standalone development tool
An extension of Visual Basic with .NET integration
A web browser
An operating system
Q6
Q6 What type of applications can you build using VB.NET?
Windows Forms, Web Applications, and Console Applications
Machine Learning Models
Operating Systems
Networking Protocols
Q7
Q7 What is the file extension for a VB.NET source file?
.vb
.net
.vbn
.cs
Q8
Q8 Which of the following is the correct syntax for printing 'Hello, World!' in VB.NET?
print('Hello, World!')
Console.WriteLine('Hello, World!')
echo 'Hello, World!'
System.out.println('Hello, World!')
Q9
Q9 A VB.NET program throws a syntax error. What is the most likely cause?
Misspelled keyword
Uninitialized variable
Unreachable code
Division by zero
Q10
Q10 What is the primary purpose of the VB.NET IDE?
Debugging applications
Managing databases
Developing and maintaining VB.NET applications
Designing network protocols
Q11
Q11 What is the default IDE for VB.NET development?
NetBeans
Visual Studio
Eclipse
IntelliJ IDEA
Q12
Q12 What does the Solution Explorer in Visual Studio display?
Errors in code
Project structure and files
Installed plugins
Application runtime logs
Q13
Q13 What is the function of the Toolbox in Visual Studio?
Compile code
Provide debugging tools
Offer reusable controls and components
View error logs
Q14
Q14 What is the primary role of the Common Language Runtime (CLR) in VB.NET?
To manage runtime exceptions
To compile VB.NET code into native code
To handle syntax errors
To design UI elements
Q15
Q15 Which feature of VB.NET architecture enables code to run on multiple platforms?
Just-In-Time (JIT) Compilation
Common Intermediate Language (CIL)
Garbage Collection
Assemblies
Q16
Q16 What is the role of assemblies in VB.NET?
They store data about system architecture
They are compiled units of .NET code
They provide database schemas
They are runtime exceptions
Q17
Q17 What is the correct code to add a reference to a library in VB.NET?
Import LibraryName
#include "LibraryName"
using LibraryName
Add-Library "LibraryName"
Q18
Q18 While debugging a VB.NET program, how can you set a breakpoint in Visual Studio?
Double-click in the Output Window
Right-click in the Solution Explorer
Click in the margin next to the line of code
Type 'breakpoint' in the code
Q19
Q19 Which Visual Studio window allows you to monitor variable values during debugging?
Error List
Call Stack
Immediate Window
Watch Window
Q20
Q20 What is the keyword used to declare a variable in VB.NET?
Dim
Declare
Var
Let
Q21
Q21 What is the default value of an uninitialized integer variable in VB.NET?
0
1
Null
Undefined
Q22
Q22 Which keyword is used to define a constant in VB.NET?
Const
Static
Readonly
Final
Q23
Q23 What data type is used to store true/false values in VB.NET?
Boolean
Integer
String
Char
Q24
Q24 What is the difference between "Dim" and "Static" in VB.NET?
Dim variables retain values across calls
Static variables retain values across calls
Both retain values across calls
Neither retain values across calls
Q25
Q25 What is the significance of Option Explicit in VB.NET?
Allows variable declarations
Enforces variable type declaration
Prevents runtime errors
Improves performance
Q26
Q26 Which of the following is a valid way to declare and initialize a variable in VB.NET?
Dim x As Integer = 10
int x = 10
Dim x : x = 10
Dim x : x <- 10
Q27
Q27 What is the output of the following code?
Dim x As String = "5" + "5" Console.WriteLine(x)
55
10
Error
Undefined
Q28
Q28 What is the error when you try to use a variable before declaring it in VB.NET with Option Explicit On?
Syntax Error
Runtime Error
Logical Error
No Error
Q29
Q29 A variable in VB.NET has an incorrect data type assigned at runtime. What type of error is this?
Compile-time error
Runtime error
Syntax error
Logical error
Q30
Q30 When debugging, how can you identify the data type of a variable in Visual Studio?
Use the Debug console
Check the Properties window
Hover over the variable
All of the above