wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

3prep Second Term_Questions Chapter1

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

One of the advantages of VB.NET is dealing with different types of data.

a)

True

b)

False

2.

All the data entered into the VB.NET program language are stored temporarily in the computer memory.

a)

True

b)

False

3.

All types of data saved in the memory occupy the same storage space.

a)

True

b)

False

4.

The value of the student’s total grades is classified within the  integer data types.

a)

True

b)

False

5.

The value of the student's name is classified in the Miscellaneous data types.

a)

True

b)

False

6.

The value of the student gender "male" or "female" is classified within the Miscellaneous data types "Boolean".

a)

True

b)

False

7.

Image of a student can be classified within the character data types.

a)

True

b)

False

8.

The value of the employee's salary can be classified within non-integer numeric data types.

a)

True

b)

False

9.

The term variables in vb.net means stores in the computer memory, which has type and name.

a)

True

b)

False

10.

Declaring a variable in VB.NET means determining its name and data type.                                                 

a)

True

b)

False

11.

Declaring a variable in VB.NET means determining its name and data type.                                                 

a)

True

b)

False

12.

The following statement "Dim F_name As String" is to declare the name of a variable "String" and type "F_name".                                                    

a)

True

b)

False

13.

The following data element "Dim F_name As String" is to declare the name of a variable "F_name" and type "String".                                               

a)

True

b)

False

14.

The declaration statement for the variables is determined by the name, type and fixed value.                                     

a)

True

b)

False

15.

"55City" variable name is a considered a wrong variable name because it begins with a number.                                

a)

True

b)

False

16.

"Dim" is used to declare variables.                             

a)

True

b)

False

17.

“Const" is used to declare constants                            

a)

True

b)

False

18.

Constants in VB.NET language are stores of a computer memory which have the name and the value that does not change during the running of the program.                    

a)

True

b)

False

19.

The error in the result of any equation is a Logical Error.               

a)

True

b)

False

20.

Error that appears while you run or execute a VB.NET program is called Syntax Error.                                                             

a)

True

b)

False

21.

Error that appears during the execution of VB.NET program is Run time Error.                                                   

a)

True

b)

False

22.

The final value of the variable X after the execution the following equation "X = 3 + 2 * 4" is (11).                                       

a)

True

b)

False

23.

The final value of the variable X after execution the following equation "X = 3 + 2 * 4" is (20).                                    

a)

True

b)

False

24.

The value of prices of desktop tools can be classified as……….. data.

a)

non- integer

b)

integer

c)

miscellaneous

25.

The value of the names of the subjects can be classified as ……… data.

a)

String

b)

integer

c)

miscellaneous

26.

The type of data element temporarily stored in the computer memory defines:

a)

Name and storage space

b)

storage space and the extent of its value

c)

Storage space and a storage value

27.

The right syntax to declare Salary variable is …………

a)

Dim Salary As Integer

b)

Dim Salary As Decimal

c)

Dim Salary As Byte

28.

The right syntax to declare the city variable is ………

a)

Dim City As Byte

b)

Dim City As String

c)

Dim City As Decimal

29.

The right syntax to declare the variable name F_Name is ……….

a)

Dim F_Name As Integer

b)

Dim F_Name As Decimal

c)

Dim F_Name As String

30.

The right syntax to declare the variable Gender is ………

a)

Dim Gender As Integer

b)

Dim Gender As Boolean

c)

Dim Gender As Decimal

31.

The error that appears after running a program VB.NET language is called …….

a)

Runtime Error

b)

logical Error

c)

Syntax Error

32.

The error that appears while writing a code in a VB.NET language called……..

a)

Runtime Error

b)

logical Error

c)

Syntax Error

33.

The error in the output result in language VB.NET code is called……….

a)

Runtime Error

b)

logical Error

c)

Syntax Error

34.

The final output of the variable Y for the equation "Y = 16 - 12/4 + 2" is …..

a)

3

b)

11

c)

15

35.

The correct statement to declare a non-integer variable named Y is ...............

a)

Y As Decimal

b)

Dim Y As Decimal

c)

Dim Y = Decimal

36.

Choose the correct name of the variable "name of the student":

a)

Name**

b)

st  name

c)

st_name

37.

Choose the correct name of the variable "address of the employee":

a)

5Cairo

b)

(Address)

c)

E_Address

38.

On declaration of a mathematical constant π , we use the code ………

a)

Dim Pi As Single = 3.14

b)

Dim Pi As Single

c)

Const Pi As Single = 3.14

39.

On the declaration of constant gravity acceleration, we use the code..................

a)

Dim g As Single

b)

Dim g As Single = 9.81

c)

Const g As Single = 9.81

40.

The declaration of variable number of family members C_Family with initial value of 2 is:

a)

Dim C_Family As Single = 2

b)

Const C_Family As Integer = 2

c)

Dim C_Family As Integer = 2