wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 9 EOT 2 Assessment

Total questions: 50

Worksheet time: 26mins

Name
Class
Date
1.

What is the following python code doing?

num1 = input("Enter a number")

num2 = input("Enter a number")

total = num1 + num2

print("The total is ", total)

a)

Adding two numbers selected by the user and printing the answer

b)

Calculating the difference between two numbers

c)

Comparing two numbers and printing the larger one

d)

Subtracting one number from the other and printing the result

2.

What is meant by IDLE?

a)

IDLE is an Integrated Development Environment

b)

IDLE is a type of computer virus.

c)

IDLE is a type of programming language.

d)

IDLE is a type of operating system.

3.

What best describes a python variable?

a)

It is a memory location used to store a data value.

b)

It is a string of information included in the code

c)

It is the same as an object

d)

It is used to store numbers

4.

Which of the following statements is correct?

a)

PI = 3.14 is a variable that cannot change during program execution

b)

PI = 3.14 is a variable that returns a different value each time it is called.

c)

PI = 3.14 is a variable that changes depending on the input of the user.

5.

The order of code does not matter?

a)

FALSE

b)

TRUE

6.

Which one of the following is correct way of declaring and initializing a variable, x with the value 5?

a)

int x

x=5

b)

int x=5

c)

x=5

d)

declare x=5

7.

Which of the operator means less than equal to ?

a)

>

b)

<

c)

>=

d)

<=

8.

else: is used

a)

to give an extra condition

b)

to provide an output when the other conditions are false

c)

because it is required

d)

if we do not use it, it gives error

9.

What symbol do you use to make or add a comment in Python?

a)

@

b)

¬

c)

;

d)

#

10.

Hugo has written this program in Python. One of the lines contains at least one error. Which line is it?

a)

print(“Hello world!”)

b)

name=input(‘please enter your name’)

c)

print(happy to meet you)

d)

print(‘you have great name’)

11.

What is the output of the program

a)

4

b)

2

c)

5

d)

0

12.

Which lines are having an error in the shown code

a)

Line 1 and 2

b)

Line 2 and 3

c)

Line 3 and 4

d)

line 5 and 6

13.

write the output of the program

a)

Thinley is in class 9A

b)

Thinley is in 9A

c)

Thinleyisin9A

d)

error

14.
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
15.
A step-by-step process, or a defined list of steps required to accomplish a goal
a)
algorithm
b)
variable
c)
string
d)
module
16.
Makes it easy to repeat steps over and over
a)
for loops
b)
variables
c)
strings
d)
modules
17.
Look at this code, what shape will it make?
a)
Square
b)
Triangle
c)
Rectangle
d)
Hexagon 
18.
What is wrong with this code?
a)
Missing Brackets
b)
Missing Comma
c)
Missing Colon
d)
Incorrect spelling 
19.
What does this code do?
a)
Draws a red rectangle
b)
Draws a red triangle
c)
Draws a red square
d)
Draws a black square
20.

Which of the following is NOT a data type in python?

a)

Char

b)

String

c)

Modulus

d)

Boolean

21.

The process of changing a data type of a given variable into another data type is known as?

Example: age=int(input("How old are you?"))

a)

Cast or Casting

b)

Conversion

c)

Transformation

d)

Modification

22.

If you are drawing in python what is the first line of code you need to use?

a)

import turtle

b)

import random

c)

import tortoise

d)

turtle.draw()

23.

What function would you use if you were making a dice throwing program?

a)

import random

b)

import turtle

c)

import math

d)

import integer

24.

Which of the following are python programming constructs?

a)

Iteration

b)

Selection

c)

decomposition

d)

Sequence

25.

Which of the following are correct python data types

a)

p

b)

True

c)

4.7

d)

9

e)

¨Hello World¨

26.
A kilobyte is usually rounded to 1000 bytes. But actually it is _____ bytes:
a)
1024
b)
512
c)
1048
d)
9600
27.

Which is the smallest form of data?

a)

Bit

b)

Byte

c)

Nibble

d)

8 Binary Digits

28.

What does WAN stand for?

a)

Whole Area Network

b)

Wide Area Network

c)

World Area Network

d)

Wides Area Network

29.

What topology is this?

a)

Star

b)

Mesh

c)

Bus

d)

Ring

30.

What type of signal is used by Fiber optic cable?

a)

Electrical

b)

Light

c)

Radio Wave

31.

Define what is meant by computational thinking

a)

Looking for similarities

b)

Breaking a problem into smaller sub problems

c)

Removing unnecessary detail

d)

Using a computer to solve problems

32.

Define what is meant by abstraction

a)

Looking for similarities

b)

Breaking a problem into smaller sub problems

c)

Removing unnecessary detail

d)

Using a computer to solve problems

33.

Identify the type of algorithm shown in the image

a)

Pseudocode

b)

Flow Chart

34.
What does the following flowchart symbol represent?
a)
A process
b)
Input / Output
c)
Start / End
d)
A sub-process
35.
Which of the following is an example of thinking computationally?
a)
Planning out your route when going to meet a friend
b)
When going to meet a friend, wandering around until you find them
c)
When going to meet a friend, asking a parent to plan your route for you
36.

Convert the hex number into binary:

6f

a)

0110 0010

b)

1010 0101

c)

0110 1111

d)

0011 1010

37.

What is the purpose of a Firewall?

a)

To stop children getting onto gaming sites

b)

To stop would be hackers and malware

c)

To stop incoming email

d)

To start the operating system

38.

You receive the following email from Twitter, what could you do?

a)

Do not click on the link as you do not normally receive Twitter notification emails.

b)

Cick on the link straight away

c)

Check your Twitter first, to see if you have any notifications

d)

Do not click on the link and block the sender

39.

What base system is hexadecimal?

a)

16

b)

2

c)

10

d)

8

40.

What is the term for a message that has been encoded using a cipher?

a)

Encryption

b)

Decryption

c)

Key

d)

I don't know

41.

The Caesar Cipher is known as what type of cipher?

a)

Substitution

b)

Shift

c)

I don't know

42.

What type of Encryption is this?

a)

Caeserpen

b)

Crosspen

c)

Pigpen

d)

Dogpen

43.
Which type of sort algorithm is this?
a)
Bubble
b)
Merge
c)
Insertion
44.
A linear search is to be performed on the list:
12   6   8  1  3
How many comparisons would it take to find number 1?
a)
1
b)
2
c)
3
d)
4
45.

In a flowchart an input or output instruction is represented by:

a)

A rectangle

b)

A rhombus

c)

A parallelogram

d)

A circle

46.

When expressing an algorithm in pseudocode, which parts should be capitalised?

a)

Keywords

b)

All of it

c)

Output

d)

Input

47.

What will the circuit's output be?

a)

1

b)

0

48.

Which of the following are examples of Input Deices?

a)

Barcode Scanner

b)

Monitor

c)

Joystick

d)

Speaker

e)

Microphone

49.

What would the program output with the following inputs?

Payrate - 12

Hours Worked - 10

a)

12

b)

Final pay

c)

OUTPUT

d)

120

50.

Fill in the blank

a)

OUTPUT

b)

ENDIF

c)

THEN

d)

INPUT