Visual basic + Arrays

Visual basic + Arrays

Assessment

Quiz

Computers

12th Grade - University

Medium

Created by

C Payne

Used 20+ times

FREE Resource

Student preview

quiz-placeholder

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type would you use for a whole number? 
String
Integer
Decimal
Boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type would you use to return a value of true or false?
String
Integer
Real
Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you declare a variable for someone's age?
Dim age as string
Dim Number as decimal
Dim Number as integer
Dim Age as integer

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable's value can change throughout the program:
True
False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an IF statement also known as?
Options
Selection
Declaring
Choosing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This symbol (<)  means more than?
True
False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is wrong with this statement: 
Dim age as integer
If Age = 2 then 
messagebox.show ("You are 2 years old")
If age = 3 then 
messagebox.show ("You are 3 years old")
If age > 3 then 
messagebox.show ("You are older than 3")
End if
Need to have 2 more 'End If' statements at the end
Should be '<' symbol not '>' symbol
Should use ElseIF instead of lots of If statements
Data type is wrong

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?