wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

2.3 and 2.5 End of topic assessment prep

Total questions: 80

Worksheet time: 43mins

Name
Class
Date
1.

A programmer uses comments in their code to ...

a)

Explain the purpose of their code

b)

Make it look pretty

c)

Make the program run quicker

d)

Stop the program from getting bugs

2.

A programmer can use comments to visually divide up sections of the code.

a)

TRUE

b)

FALSE

3.

A programmer can use extra whitespace to help ...

a)

Make the code more readable

b)

Make the code less readable

c)

Make the code run quicker

d)

Make the code have fewer bugs

4.

Indentation is used to make the code difficult to read

a)

TRUE

b)

FALSE

5.

Indentation is mainly used ...

a)

In IF statements / Loops / Procedures

b)

In print statements

c)

In a input statement

d)

In a comment only

6.

A programmer is deciding what to name a variable that stores someones full name. Which is the most suitable variable name to use

a)

x = input ( "Enter full name" )

b)

jeff = input ( "Enter full name" )

c)

full_name = input ( "Enter full name" )

d)

full name = input ( "Enter full name" )

7.

A programmer is deciding what to name a list that stores players names. Which is the most suitable list name to use

a)

z = [ " Stewie " , " Peter " , " Meg " ]

b)

a_list = [ " Stewie " , " Peter " , " Meg " ]

c)

a_list_of_names_from_a_tv_program = [ " Stewie " , " Peter " , " Meg " ]

d)

names = [ " Stewie " , " Peter " , " Meg " ]

8.

Procedures are used to ...

a)

reduce duplicated code and make the code more structured

b)

prevent bugs

c)

make the program run slower

d)

allows the program to perform more complicated functions

9.

Code that is well maintained with comments / indentations / procedures and extra whitespace means that the program is more ...

a)

Robust

b)

Complicated

c)

Quicker

10.

Tidying an input before the program processes it, is known as ...

a)

Input Sanitisation

b)

Input Validation

11.

An example of Input Sanitisation is ...

a)

Removing any whitespace after some inputted data

b)

Performing a length check

c)

Correcting the spelling of any input

d)

Performing a data type check

12.

An example of Input Sanitisation is ...

a)

Changing all of the inputted data to UPPER CASE or lower case

b)

Performing a length check

c)

Correcting the spelling of any input

d)

Performing a data type check

13.

name = input ( " Enter your name " )

name = name.lower( )


The above code will change the data in the variable to ...

a)

Upper case

b)

Lower case

14.

Checking that the data meets the specific rules before the program processes it, is known as ...

a)

Input Sanitisation

b)

Input Validation

15.

What validation check is being described?


The input is within the correct range

a)

TYPE CHECK

b)

RANGE CHECK

c)

PRESENCE CHECK

d)

LENGTH CHECK

16.

What validation check is being described?


The input is entered with some data

a)

TYPE CHECK

b)

RANGE CHECK

c)

PRESENCE CHECK

d)

LENGTH CHECK

17.

What validation check is being described?


The input has the correct number of characters entered

a)

TYPE CHECK

b)

RANGE CHECK

c)

PRESENCE CHECK

d)

LENGTH CHECK

18.

What validation check is being described?


The input is of the correct data type

a)

TYPE CHECK

b)

RANGE CHECK

c)

PRESENCE CHECK

d)

FORMAT CHECK

19.

What type of validation check is likely to be used with the following error message?


"You must enter a number between 1 and 10"

a)

RANGE CHECK

b)

PRESENCE CHECK

c)

FORMAT CHECK

d)

LENGTH CHECK

20.

What type of validation check is likely to be used with the following error message?


"You must enter a password that has more than 8 characters"

a)

RANGE CHECK

b)

PRESENCE CHECK

c)

FORMAT CHECK

d)

LENGTH CHECK

21.

What type of validation check is likely to be used with the following error message?


"You must enter a name"

a)

RANGE CHECK

b)

PRESENCE CHECK

c)

FORMAT CHECK

d)

LENGTH CHECK

22.

What type of validation check is likely to be used with the following error message?


"You cannot use any numbers"

a)

DATA TYPE CHECK

b)

PRESENCE CHECK

c)

FORMAT CHECK

d)

LENGTH CHECK

23.

Using Input Sanitisation and Input Validation makes the program more ...

a)

Robust

b)

Safe

c)

Easier

d)

Quicker

24.

What will happen if a program attempts to divide a number by zero?

a)

Crash

b)

Nothing

c)

Display the correct answer

25.

If an online streaming program (e.g. Netflix) lost its connection with the online server, should the program ...

a)

Crash

b)

Let the user know that the connection has been lost, then refresh the connection

c)

Let the user know that the connection has been lost, then do nothing

26.

A receipt printer has a paper jam at a supermarket till. Should the software allow the user to reprint the receipt after it has been fixed?

a)

Yes

b)

No

27.

A program has been created that uses an external text file. What errors should the programmer be aware of that could crash the program?

a)

The text file could be corrupt or missing

b)

The text file could have more than 1 thousand lines of data

c)

The text file could be empty

d)

The text file could have the wrong type of data

28.

A program that asks the user to enter their username and password is known as ...

a)

Validation

b)

Sanitisation

c)

Authentication

29.

Why do we use eCaptcha techniques when creating new online accounts

a)

To input the data quicker

b)

To stop online bots creating accounts automatically

c)

To stop people entering data with spelling mistakes

30.

eCaptcha is used to verify that the user is ...

a)

A human

b)

An online bot

31.
When is terminal testing carried out?
a)
Before you start
b)
At the end
c)
During the project
d)
After the design section
32.

Which line contains a syntax error?

a)

print("Hello")

b)

sprint("Hello")

c)

print("hello")

d)

print("HELLO")

33.
When a program runs it asks the user to enter their first name. Which is an example of Valid data?
a)
Mr Jones
b)
Sarah
c)
Sarah Jones
d)
Mrs Jones
34.
What is iterative testing?
a)
Testing completed after an error is found
b)
Random tests on a computer program
c)
Test completed as the program is being coded
d)
Test which are planned
35.
 When a program runs it asks the user to enter their age. Which data would be most suitable to test for an incorrect piece of data being entered? 
a)
44
b)
1
c)
97
d)
Forty five
36.

Look at the program below and classify the error


print (“Hello”)name = input (“What is your name?”)

a)

Logic error

b)

Data error

c)

Text error

d)

Syntax error

37.
Consider a test plan, what comes after the Expected Result ?
a)
The result of the test
b)
The data that is to be entered
c)
The type of data type
d)
An exampoe of the data used
38.

What problems can occur when coding a program?

a)

Bugs in code

b)

Wrong user name / password details

c)

Poorly designed GUI

d)

Changes in program syntax

39.
Testing while coding a program is called?
a)
Development Testing
b)
Coder Testing
c)
Terminal Testing
d)
Iterative Testing
40.
What is a breakpoint?
a)
The point at which a program breaks
b)
A feature which a coder user to stop a program at a certain line
c)
The point in a program where an error is found
d)
The point at which the coder is frustrated with the program
41.
Which of these is appropriate data for a range test for a youth club?
a)
10 – 20 years
b)
16 – 19 years
c)
13 – 19 years
d)
13 – 23 years
42.

What is a null value test on data entry?

a)

Data that does not have a value such as a name or phone number

b)

Data that is not entered in order to test how the program responds

c)

Data that has a value of zero

d)

Data that is incorrect

43.

Which data below is a valid test for an age field?

a)

18.6

b)

99

c)

Twenty-five

d)

17 years 5 months

44.
What is the purpose of testing?
a)
To identify errors
b)
To identify issues that may occur when a customer uses the program
c)
To test the security of the program
d)
All of the above
45.
Translates source code into machine code one line at a time.
a)
Compiler
b)
Interpreter
c)
Editor
d)
Assembler
46.
Translates the entire source code into machine code.
a)
Compiler
b)
Interpreter
c)
IDE
d)
Operand
47.
Allows the end user to enter the program code.
a)
Machine Code
b)
Mnemonics
c)
Editor
d)
Debugger
48.
Auto-completes code as you type.
a)
Compiler
b)
Editor
c)
Assembler
d)
Colour Coding Keywords
49.
This is binary code which is designed to be understood by computer systems. A low level programming language.
a)
Debugger
b)
Operand
c)
Opcode
d)
Machine Code
50.
A low level programming language which uses a small instruction set. These instructions are translated into machine code.
a)
Translator
b)
Assembler
c)
Interpreter
d)
Editor
51.
Shortened command words which are used in assembly language. For example, “Little Man Computer” used mnemonics such as “LDA”, “DAT”, “ADD” and “OUT”.
a)
Operand
b)
Editor
c)
Mnemonics
d)
Debuugger
52.
The instruction that the computer (CPU) needs to carry out.
a)
Debugger
b)
Machine Code
c)
Opcode
d)
Operand
53.
The data or register needed for the instruction.
a)
Operand
b)
Opcode
c)
Assembler
d)
Interpreter
54.
Highlights errors in the code, Suggests possible solutions.
a)
Debugger
b)
Colour coding keywords
c)
Editor
d)
Interpreter
55.

Translates low level assembly language mnemonic into machine code

a)

Assembler

b)

Compiler

c)

Interpreter

56.

Translates source code from high level languages into object code and then into machine code

a)

Assembler

b)

Compiler

c)

Interpreter

57.

Translates source code from high level languages into machine code

a)

Assembler

b)

Compiler

c)

Interpreter

58.

Program is translated line by line as the program is running

a)

Assembler

b)

Compiler

c)

Interpreter

59.

The whole program is translated into machine code before it is run

a)

Assembler

b)

Compiler

c)

Interpreter

60.

This is an example of ...

a)

Machine Code

b)

Low level programming language

c)

High level programming language

61.

This is an example of ...

a)

Machine Code

b)

Low level programming language

c)

High level programming language

62.

This is an example of ...

a)

Machine Code

b)

Low level programming language

c)

High level programming language

63.

Low level programming languages are easy to learn

a)

TRUE

b)

FALSE

64.

High level programming languages have been designed to make it easier to create programs

a)

TRUE

b)

FALSE

65.

The CPU can process a high level language directly

a)

TRUE

b)

FALSE

66.

Programs must be translated to machine code in order for the CPU to process it

a)

TRUE

b)

FALSE

67.

What is the only thing that computers understand?

a)

Machine Code

b)

Low Level Languages

c)

High Level Languages

d)

Algorithms

68.
Before a computer can understand a program it must be...
a)
Translated into its machine code.
b)
Translated into a high level language.
c)
Translated into a low level language.
d)
Converted into binary.
69.
A list of instructions that enable a computer to perform a specific task is a...
a)
Computer Program
b)
Algorithm
c)
Machine Code
d)
Binary Code
70.
A language that requires no knowledge of the hardware or the instruction set of the computer is called...
a)
A High Level Language
b)
A Low Level Language
c)
Machine Code
d)
An Algorithm
71.
A language that is close to human language and which is easy to write, debug and maintain is known as...
a)
A High Level Language
b)
A Low Level Language
c)
An Algorithm
d)
Machine Code
72.
Resolving errors in a program is known as...
a)
Debugging
b)
Refixing
c)
Error Checking
d)
Problem Solving
73.
Which of the following is not a high level programming language?
a)
Assembly
b)
C++
c)
Java
d)
Python
74.
Languages that relate to the architecture and hardware of a specific computer are known as...
a)
High Level Languages
b)
Low Level Languages
c)
Simplex Languages
d)
Complex Languages
75.
The two categories of low level language are...
a)
Machine Code & Assembly
b)
Machine Code & Algorithms 
c)
Assembly & Algorithms
d)
Algorithms & Binary
76.
What is the name for the software used to convert an assembly language program into machine code?
a)
Assembler
b)
Interpreter
c)
Compiler
d)
Translator
78.
Software that translates and executes a high level language program one line at a time is known as a?
a)
Compiler
b)
Interpreter
c)
Assembler
d)
Executor
78.
Software that translates and executes a high level language program one line at a time is known as a?
a)
Compiler
b)
Interpreter
c)
Assembler
d)
Executor
79.

What does IDE stand for?

a)

Intelligent Development Environment

b)

Integrated Design Environment

c)

Intelligent Development Environment

d)

Integrated Development Environment

80.

Here are two lines from an assembly language program. What is the correct term to describe the contents of the area with the red border?

a)

Operands

b)

Mnemonics

c)

Memory locations

d)

Machine Code