wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Introduction to programming

Total questions: 17

Worksheet time: 5mins

Name
Class
Date
1.

What is a programming language?

a)

Written English

b)

An artificial language used to program a computer

c)

A language used in pseudocode

d)

Written in Russian

2.

What is machine code?

a)

The serial number of a computer

b)

A programming language that a computer understands

c)

The make and model of a computer

d)

Something about the riot of washing machines

3.

What is a program?

a)

A series of step-by-step instructions that tell a computer how to solve a task

b)

A video that is watched on a computer

c)

A flowchart written on a computer

d)

A school schedule

4.

What is a statement?

a)

A box in a flowchart

b)

A keyword in a programming language

c)


A calculation performed in a programming language

d)

Something political

5.

What is an instruction?

a)

A box in a flowchart

b)

A calculation performed in a programming language

c)

One or more statements grouped together to instruct the computer to perform a task

d)

Output a message on the screen

6.

What does the statement 'while' do?

a)

Tell the computer to wait for a while before continuing with the program

b)

Implement selection

c)

Implement a loop

d)

Output a hard copy of a program to a printer

7.

What does the statement 'print' do?

a)

Output a message on the screen

b)

Output a hard copy of a program to a printer

c)

Print a hard copy of a flowchart to a printer

d)

Scans a document

8.

What does the statement 'def' do?

a)

Creates a function or a procedure

b)


Implement a loop

c)

Implement selection

d)


Tell the computer to wait for a while before continuing with the program

9.

What do the statements 'if' and 'else' do?

a)

Implement a loop

b)

Output a message on the screen

c)


Implement selection

d)

Tell the computer to wait for a while before continuing with the program

10.

How many statements are there in this line of code: print("If I am 17, I can drive a car")

a)

There is one statement - 'print'

b)

There are two statements - 'print' and 'if'

c)

There are no statements

d)
4 statements
11.

What does the term "variable" mean in programming?

a)

A fixed value that cannot be changed

b)

A container for storing data that can be modified

c)

A type of loop structure

d)

A method for printing output

12.

Which of the following is NOT a common data type in most programming languages?

a)

Integer

b)

Boolean

c)

Pictorial

d)

String

13.

What does the acronym "IDE" stand for in programming?
a. Integrated Development Environment
b. Internal Data Exchange
c. Interactive Design Element
d. Indexed Database Engine

a)

Integrated Development Environment

b)

Internal Data Exchange

c)

Interactive Design Element

d)

Indexed Database Engine

14.

In programming, what is a "function"?

a)

A mathematical equation

b)

A type of variable

c)

A reusable block of code that performs a specific task

d)

A way to format text output

15.

Which of the following is an example of a Boolean value?

a)

"Hello, World!"

b)

3.14

c)

True

d)

[1, 2, 3]

16.

What does the term "syntax" refer to in programming?

a)

The meaning of a program

b)

The set of rules that define how a program is written

c)

The speed at which a program runs

d)

The way a program interacts with hardware

17.

What is a "comment" in programming used for?

a)

To execute code

b)

To declare variables

c)

To explain code and add notes for humans

d)

To connect to a database