wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

quiz1B1

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

where is this symbol used in a Flowchart?

a)

In the beginning

b)

At the end

c)

Both in the beginning and end

2.

Identify the symbol used in flowchart______

a)

Decision box

b)

Comparison box

c)

Both

3.

This symbol can be used for writing______

INPUT A,B

a)

Correct

b)

Incorrect

c)

May be correct

4.

Click to enlargen the image. What decision will John make if it is 7:15 am?

a)

Take the subway

b)

Take the bus

c)

Walk

d)

Check the time

5.

What is important to remember when designing an algorithm?

a)

whether to use a flowchart or pseudocode

b)

the instructions are in the correct order

c)

that it must be easy to read

6.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
7.
Data type that can only be true or false
a)
int
b)
string
c)
bool
d)
float
8.

What is the output of the following code: print 10//3

a)

3.5

b)

3

c)

1

d)

Error

9.
What will the output be from the following code?
print("Hello" + str(2) + "world!")
a)
Hello world! Hello world!
b)
Hello2world!
c)
Hello Hello world! world!
d)
SyntaxError
10.

What gets printed?

a)

cost

b)

0

c)

0+5.25

d)

5.25

11.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
12.

What does print("hello) display?

a)

hello

b)

gives you an error

c)

"hello"

d)

"hello

13.

statement in python to find xy

a)

x*y

b)

x^y

c)

x**y

d)

x//y

14.

Which is NOT a data type in Python?

a)

integer

b)

boolean

c)

anchor

d)

float

15.

What is the name of the variable in this program?

a)

print

b)

colour

c)

input

d)

" "

16.

What are TWO ways I can add 100 to the variable "score"?

a)

score += 100

b)

score = score + 100

c)

score + 100

d)

score = 100

17.

What is the result of the following condition if:

A = 30

B = 21

C = 71

(A > B and A > C) or B < C

a)

True

b)

False

18.

What is an algorithm?

a)

A set of steps for performing a task, like a recipe.

b)

To add something to the end; for example, adding letters onto the end of a string or adding elements to the end of a list or array.

c)

A value passed to a function.

d)

A rhythm designed for people named "Al."

19.

age = '5'


In the code above, age is a

a)

string

b)

integer

c)

floating point

20.

What are variables in Python?

a)

Magical spells

b)

Special codes

c)

Containers for storing information

d)

Hidden messages