Visual Basics Test
Draft saved
* Indicates required question
Email *
[email protected]
Enter your full matric number *
P/ND/22/3410052
Which of the following methods is used
to read input from the console in
VB.NET?
Console.ReadLine()
Console.WriteInput()
Console.ReadInput()
Console.Readme()
Clear selection
Which data type is used to store whole
numbers in VB.NET?
Single
Double
Integer
String
Clear selection
What is the keyword used to start a
conditional statement in VB.NET?
Loop
If
When
While
Clear selection
What is the result of the following code
snippet in VB.NET?
```
Dim x As Integer = 5
If x > 3 Then
Console.WriteLine("x is greater than
3")
End If
x is greater than 3
x is 5
Nothing will be printed
Error
Clear selection
Which of the following is a reference
data type in VB.NET?
Int
String
Boolean
Double
Clear selection
. Which data type is used to store text in
VB.NET?
text
Charisma
String
Minor
Clear selection
In VB.NET, which method is used to
display output to the console without a
new line?
Console.WriteLine()
Console.Writeme()
Console.Print()
Console.Display()
Clear selection
What is the correct syntax for declaring
a variable in VB.NET?
Dim myVar As Integer
int myVar = 5
Integer myVar = 5
var myVar = 5
Clear selection
Which keyword is used to declare a
variable in VB.NET?
Var
Int
Dim
Let
Clear selection
What is the scope of a variable declared
inside a procedure in VB.NET?
Global
Local
Public
Private
Clear selection
Submit Clear form
Never submit passwords through Google Forms.
This form was created inside of Yaba College of
Technology. Report Abuse
Forms