wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PAPASA BA?!

Total questions: 25

Worksheet time: 14mins

Name
Class
Date
1.

Which of the following is a keyword?

a)

but

b)

else

c)

new

d)

loop

e)

else

2.

What are the three main programming structures?

a)

Sequence, selection, iteration

b)

Structured, object-oriented, procedural

c)

Java, Python, Visual Basic

d)

Machine, assembly, high-level

3.
Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?
a)
Selection
b)
Loop
c)
Functional
d)
Sequence
4.
Which type of programming structure requires each instruction to be performed in order, with no possibility of skipping an action or branching off to another action?
a)
Loop
b)
Sequence
c)
Selection
d)
Iteration
5.
Jackson has written a section of code in his program that instructs a character to move forward unless it encounters an obstacle, such as a rock. If the character encounters an obstacle, then it should change direction before moving forward again. If it does not encounter an obstacle, it should continue moving forward. Which type of control structure has Jackson written?
a)
Selection
b)
Loop
c)
Functional
d)
Sequence
6.
1  Input a number
2  Check to see if the number ends in 0, 2, 4, 6 or 8?
 2a  If yes, write "The number is even."
 2b  If no, write "The number is odd."
  This is an example of which type of control structure?
a)
Selection
b)
Iteration
c)
Loop
d)
Sequence
7.
Which control structure indicates the do/while statement?
a)
Selective
b)
Loop
c)
Object
d)
Sequence
8.
A fixed loop will repeat code a specific number of times: true or false?
a)
True
b)
False
9.
A conditional loop is a loop which will repeat code until a condition is met: true or false?
a)
True
b)
False
10.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
11.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
12.

What will be the output?

name = "Dave"

print (name)

a)

Dave

b)

'Dave'

c)

name

d)

(name)

13.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
14.
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
a)
True
b)
False
15.
What Python command lets the user enter an answer to a question?
a)
answer()
b)
open()
c)
print()
d)
input()
16.
Which statement correctly assigns the string "Tanner" to the variable name?
a)
name  = print( "Tanner")
b)
input("Tanner")
c)
name = "Tanner"
d)
name = input("Tanner")
17.

Python language was developed in what year?

a)

1985

b)

2001

c)

1991

d)

1820

18.

Is python an interpreter or compiler programming language?

a)

Compiler

b)

Interpreter

19.

What result will display in the shell if 15 and 20 is entered by the user?

a)

"num1 + num2"

b)

1520

c)

35

20.

Which one will display when this code is run?

a)
b)
c)
d)
21.

What kind of programming language is Python?

a)

High Level & Object Orientated

b)

Low Level & Object Orientated

c)

Low Level & Procedural

d)

All of the above

22.

Python can be used for developing

a)

compilers

b)

device drivers

c)

Application Programs

d)

None of the above

23.

Which of the following is not feature of Python

a)

Supports GUI Programming

b)

Integrates with other programming languages

c)

Difficult to learn

d)

Rich with Standard libraries

24.

Python is Easy to learn because

a)

Simple Structure

b)

Few Keywords

c)

clearly defined syntax

d)

All of the above

25.

Python program can interact with

a)

relational databases

b)

non relational databases

c)

commercial databases

d)

All of the above