0% found this document useful (0 votes)
34 views1 page

VB.NET Quiz for Students

The document is a Visual Basics test form that includes questions related to VB.NET programming concepts such as input methods, data types, conditional statements, and variable declaration. It contains multiple-choice questions requiring the user to select the correct answers. The form is associated with a specific email and matric number for identification purposes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

VB.NET Quiz for Students

The document is a Visual Basics test form that includes questions related to VB.NET programming concepts such as input methods, data types, conditional statements, and variable declaration. It contains multiple-choice questions requiring the user to select the correct answers. The form is associated with a specific email and matric number for identification purposes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Visual Basics Test

[email protected] Switch account

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

You might also like