Visual basic + Arrays

Visual basic + Arrays

Assessment

Quiz

Computers

12th Grade - University

Practice Problem

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?