Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Intro to coding

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

What is a statement?

a)

A single line of code that performs an action

b)

a full program

c)

multiple lines of code that perform a complicated action

d)

commentary about a code that does not perform an action

2.

What is Output?

a)

information a program gives to the user, such as text, graphics, or sound

b)

information entered into the computer to complete an action

c)

a series of instructions the computer follows

d)

the name of a program

3.

Which line of code uses the correct syntax to output "hello world"?

a)

print("hello world")

b)

output("hello world")

c)

print("HELLO WORLD")

d)

print(hello world)

4.

What is "input"?

a)

information a program receives from a user

b)

the information displayed by the program

c)

a single line of code

d)

an entire program

5.

What is the purpose of a prompt?

a)

it tells the user what to input

b)

prompt is purely for output

c)

its a place to get dressed up and dance

d)

a series of instructions for the computer to follow

6.

What is a "String"?

a)

a series of letters, numbers, and symbols surrounded by double quotation marks

b)

any set of characters with any punctuation

c)

the thing that keeps your shoes tied

d)

the lead singer from "the Police"

7.

What is a "comment"?

a)

code line ignored by the computer used as notes for the programmer

b)

a picture or sound output

c)

a series of instructions the computer follows

d)

cosmic snowballs of frozen gases, rock, and dust that orbit the Sun

8.

What is an "error"?

a)

when the computer encounters something unexpected in your code

b)

flawless victory

c)

comments to help understand your code

d)

the purpose of the program