wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

JH U1/L3 Kira- Variables and User Input Lesson

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is Data? 2) A ________________ is a type of data used to represent text, or words, in a computer.

a)

string

b)

integer

c)

float

d)

boolean

2.

What is Data? 3) An ________________ is a numeric type of data in computers. Examples are 0, 5, 88, -6, and -15.

a)

integer

b)

string

c)

boolean

d)

character

3.

If you think of a variable as a box, then the label on the box is the ______________ of the variable. What is inside the box is called the ________________ of the variable.

a)

name, value

b)

value, name

c)

type, label

d)

label, type

4.

When you use a print statement, you want the computer to ____________________ something.

a)

output

b)

hide

c)

input

d)

ignore

5.

The name of a variable can’t start with a ___________________.

a)

number

b)

letter

c)

underscore

d)

special character

6.

A common practice with naming variables to make them easily readable is to use an ________________________ between two words.

a)

underscore

b)

hyphen

c)

colon

d)

period

7.

Creating Interactive Programs with Numbers 1) Using the function `int` will convert a string to an ________________.

a)

integer

b)

float

c)

string

d)

boolean

8.

When we use the symbol “*” we want to ____________________ two numbers together.

a)

multiply

b)

divide

c)

subtract

d)

add

9.

When you ask the user to input data, the computer will always interpret the input data as a _________________.

a)

string

b)

integer

c)

boolean

d)

character

10.

What is data? Data are values representing ________ that can be used and edited in a computer program.

a)

information

b)

colors

c)

sounds

d)

numbers only