Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Variables and Operators

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

These type of operators are found within equations to perform different types of calculations.

a)

Logic Operators

b)

Arithmetic Operators

c)

Comparison Operators

d)

Boolean Operators

2.

This data type consist of a string of characters the create words, phases, sentences, etc.

a)

String

b)

int

c)

char

d)

float

3.

This programming concept allows programmers to create storage for data?

a)

Control Strucutures

b)

Variables

c)

Selection Structures

d)

Logic Operators

4.

This operator assigns values. It also looks like an equal sign.

a)

The boolean operator

b)

The selection structure

c)

The assignment operator

d)

The logic operator

5.

If I were found guilty of creating variables and giving them names, what would I be guilty of?

a)

Being crazy

b)

Initializing variables

c)

Declaring variables

d)

Hacking the system

6.

This operator compares values, and will only return true if the two values are equal to each other.

a)

&& (and)

b)

|| (or)

c)

!= (not equal)

d)

= = (equal to)

7.

What is this operator: " %"?

a)
Concatenation
b)
Remainder or mod
c)
Division - only the whole number
d)
Escape character
8.

Using the Boolean Operator "||" (OR) in a search will broaden your results and produce more hits.

a)

True

b)

False

9.

Using the Boolean Operator "&&" (AND) will broaden your results and produce more hits.

a)

True

b)

False

10.

The values of variables cannot be changed.

a)
False
b)
True