Font size
WorksheetsYear 9 EOT 2 Assessment
Total questions: 50
Worksheet time: 26mins
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)
Adding two numbers selected by the user and printing the answer
Calculating the difference between two numbers
Comparing two numbers and printing the larger one
Subtracting one number from the other and printing the result
What is meant by IDLE?
IDLE is an Integrated Development Environment
IDLE is a type of computer virus.
IDLE is a type of programming language.
IDLE is a type of operating system.
What best describes a python variable?
It is a memory location used to store a data value.
It is a string of information included in the code
It is the same as an object
It is used to store numbers
Which of the following statements is correct?
PI = 3.14 is a variable that cannot change during program execution
PI = 3.14 is a variable that returns a different value each time it is called.
PI = 3.14 is a variable that changes depending on the input of the user.
The order of code does not matter?
FALSE
TRUE
Which one of the following is correct way of declaring and initializing a variable, x with the value 5?
int x
x=5
int x=5
x=5
declare x=5
Which of the operator means less than equal to ?
>
<
>=
<=
else: is used
to give an extra condition
to provide an output when the other conditions are false
because it is required
if we do not use it, it gives error
What symbol do you use to make or add a comment in Python?
@
¬
;
#
Hugo has written this program in Python. One of the lines contains at least one error. Which line is it?
print(“Hello world!”)
name=input(‘please enter your name’)
print(happy to meet you)
print(‘you have great name’)
What is the output of the program
4
2
5
0
Which lines are having an error in the shown code
Line 1 and 2
Line 2 and 3
Line 3 and 4
line 5 and 6
write the output of the program
Thinley is in class 9A
Thinley is in 9A
Thinleyisin9A
error
Which of the following is NOT a data type in python?
Char
String
Modulus
Boolean
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?"))
Cast or Casting
Conversion
Transformation
Modification
If you are drawing in python what is the first line of code you need to use?
import turtle
import random
import tortoise
turtle.draw()
What function would you use if you were making a dice throwing program?
import random
import turtle
import math
import integer
Which of the following are python programming constructs?
Iteration
Selection
decomposition
Sequence
Which of the following are correct python data types
p
True
4.7
9
¨Hello World¨
Which is the smallest form of data?
Bit
Byte
Nibble
8 Binary Digits
What does WAN stand for?
Whole Area Network
Wide Area Network
World Area Network
Wides Area Network
What topology is this?
Star
Mesh
Bus
Ring
What type of signal is used by Fiber optic cable?
Electrical
Light
Radio Wave
Define what is meant by computational thinking
Looking for similarities
Breaking a problem into smaller sub problems
Removing unnecessary detail
Using a computer to solve problems
Define what is meant by abstraction
Looking for similarities
Breaking a problem into smaller sub problems
Removing unnecessary detail
Using a computer to solve problems
Identify the type of algorithm shown in the image
Pseudocode
Flow Chart
Convert the hex number into binary:
6f
0110 0010
1010 0101
0110 1111
0011 1010
What is the purpose of a Firewall?
To stop children getting onto gaming sites
To stop would be hackers and malware
To stop incoming email
To start the operating system
You receive the following email from Twitter, what could you do?
Do not click on the link as you do not normally receive Twitter notification emails.
Cick on the link straight away
Check your Twitter first, to see if you have any notifications
Do not click on the link and block the sender
What base system is hexadecimal?
16
2
10
8
What is the term for a message that has been encoded using a cipher?
Encryption
Decryption
Key
I don't know
The Caesar Cipher is known as what type of cipher?
Substitution
Shift
I don't know
What type of Encryption is this?
Caeserpen
Crosspen
Pigpen
Dogpen
12 6 8 1 3
How many comparisons would it take to find number 1?
In a flowchart an input or output instruction is represented by:
A rectangle
A rhombus
A parallelogram
A circle
When expressing an algorithm in pseudocode, which parts should be capitalised?
Keywords
All of it
Output
Input
What will the circuit's output be?
1
0
Which of the following are examples of Input Deices?
Barcode Scanner
Monitor
Joystick
Speaker
Microphone
What would the program output with the following inputs?
Payrate - 12
Hours Worked - 10
12
Final pay
OUTPUT
120
Fill in the blank
OUTPUT
ENDIF
THEN
INPUT
