wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Assessment 3

Total questions: 75

Worksheet time: 46mins

Name
Class
Date
1.

What are syntax errors? choose two

a)

When the program doesn't do what you want

b)

When programs do not meet the rules or grammar of the language

c)

When you make a spelling mistake

d)

Errors preventing the code running

2.

Iterative testing is.....

a)

Testing code which iterated through input

b)

Testing is input

c)

Testing parts of the code during programming

d)

Testing when the program is complete

3.

What are logic errors?

a)

An error that does not stop the code from executing

b)

When the logic gates are incorrectly connected

c)

An error where the logic doesn't make sense

d)

Code that does not give the desired output

4.

Syntax error, logic error or is this code OK?

a)

Syntax error

b)

Logic error

c)

It is great programming, well done Mr Taylor

5.

Syntax error, Logic error or this code is perfect?

a)

Another great program, it is all ok

b)

Syntax error

c)

Logic error

6.

Iterative testing is.....

a)

Testing code which iterated through input

b)

Testing is input

c)

Testing parts of the code during programming

d)

Testing when the program is complete

7.

Terminal testing is.....

a)

when you test code from a networked terminal

b)

when a terminal error causes the code to crash

c)

when to carry out final testing when the code is complete

d)

when you code is so bad to need to delete it and start again

8.

It is important to test code with a range of data. Which of the following is a recognised type of test data? choose four

a)

Valid

b)

Extreme/boundary

c)

Null/non-existent

d)

Critical

e)

Invalid

9.
A list contains the names:
George, Jane, Miranda, Ahmed, Sophie, Bernie, Keith.
They are sorted using Insertion sort. What is the first name to be moved?
a)
George
b)
Jane
c)
Ahmed
d)
Sophoe
10.

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

11.

Indentation is used to make the code difficult to read

a)

TRUE

b)

FALSE

12.

Indentation is mainly used ...

a)

In IF statements / Loops / Procedures

b)

In print statements

c)

In a input statement

d)

In a comment only

13.

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" )

14.

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

a)

Robust

b)

Complicated

c)

Quicker

15.

What can we use when coding to improve its maintainability (easier to read and understand)?

a)

Comments

b)

Blocks of code

c)

Indentation

d)

Clear and understanding variable names

e)

ALL of the options

16.

What does 'maintainability' mean in the context of coding? (2 answers)

a)

Ensuring it is clear and understanding so that it can be re-used

b)

A type of software testing where individual units/ components of a software are tested

c)

is the practice of anticipating every possible way that an end-user could misuse a system or device

d)

Ensuring it is clear and understanding so that errors in the code can be identified quickly

17.
What symbol do flowcharts begin with?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
18.
What symbol do flowcharts end with?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
19.
What symbol shows a decision?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
20.
What symbol shoes something you need to do?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
21.
Which symbol shoes input?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
22.
If I want to use a loop to make sure I check my math answers exactly three times, which loop would I use?
a)
for
b)
while
23.
Which loop can you use for an exact number of times?
a)
for
b)
while
24.
Which loop can you use to keep checking a program until finally works?
a)
for
b)
while
25.
Which loop can you use to keep checking if something is true? You don't know how many times you'll need it to loop?
a)
for
b)
while
26.
Which symbol show sequence, direction of flow, or the order in which a chart is read?
a)
diamond
b)
parallelogram
c)
retangle
d)
arrow
27.
What would be the output of this flowchart if the student scored 89?
a)
Fail
b)
Pass
c)
Merit
d)
Distinction
28.
Identify a variable within this flowchart.
a)
INPUT
b)
Start
c)
12
d)
RESULT
29.

Why do computers use algorithms?

a)

To give computers precise steps to solve a problem.

b)

Because they are easy to use

c)

It is the language that computers understand

d)

To help them predict the future

30.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
31.
What is the Output if the temperature is:
19
a)
Below Freezing
b)
Above Freezing
32.
What is this symbol used for in a flowchart?
a)
A decision/question
b)
A task to carry out
33.
What is this symbol used for in a flowchart?
a)
A decision/question
b)
A task to carry out
34.
What does this symbol represent?
a)
Decision
b)
Input/Output
c)
Start
d)
Process
35.
What does this symbol represent?
a)
Start
b)
Sub
c)
Decision
d)
Process
36.

A diagram that represents a set of instructions is called:

a)

Flow Chart

b)

Pseudocode

c)

Shapes

37.
What does this symbol mean?
>
a)
Greater Than
b)
Less Than
38.
What does this symbol mean?
<
a)
Greater Than
b)
Less Than
39.

What will happen if the user's book return is late?

a)

Sends them an SMS (text)

b)

Does not send them an SMS (text)

40.

A variable is a named value that can be changed in the program.

a)

False

b)

True

41.

What is a String?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

42.

Which value is a String?

a)

64

b)

"cat"

c)

True

d)

0.5

43.

What is an Integer?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

44.

Which value is an Integer?

a)

64

b)

"cat"

c)

True

d)

0.5

45.

What is a Float?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

46.

Which value is a Float?

a)

64

b)

"cat"

c)

True

d)

0.5

47.

What is a Boolean?

a)

A data type that contains whole numbers. eg: 3, 45, 124

b)

Numbers with decimal point. eg: 0.5, 2.45, 56.04

c)

Group of characters between quotation marks. eg: "dog"

d)

Data type that can only be True or False.

48.

Which value is a Boolean?

a)

64

b)

"cat"

c)

True

d)

0.5

49.

_____ data type contain integer values with no decimal such as 1, 200, 999 etc.

a)

int

b)

float

c)

char

d)

String

50.

_____ data type contain integer values with decimal such as 10.1, 5555.0, 33.33 etc.

a)

int

b)

float

c)

char

d)

String

51.

_____ data type contain a character (text) such as A, a, Z, z etc.

a)

int

b)

float

c)

char

d)

String

52.

_____ data type contain a set of characters (text) or word such as Hello, Ali, Car Type etc.

a)

int

b)

float

c)

char

d)

String

53.

_____ data type represent one of two values either True or False such as 1, 0, 2 > 1, 3 < 2.

a)

int

b)

float

c)

char

d)

Boolean

54.

Which if the values below is a float data type?

a)

2

b)

2.11

c)

2/4

d)

"2.11"

55.

Which if the values below is an integer data type?

a)

1

b)

1.0

c)

1/2

d)

"1"

56.

Which if the values below is a char data type?

a)

firstValue

b)

F

c)

1.0

d)

10 > 3

57.

Which if the values below is a string data type?

a)

firstValue

b)

F

c)

1.0

d)

10 > 3

58.

A variable is a named value that can be changed in the program.

a)

False

b)

True

59.
Where can Linear Search be performed?
a)
On letters
b)
On numbers
c)
Both
d)
None of these
60.
How many linear searches will it take to find the value 7 in the list [1,4,8,7,10,28]?
a)
2
b)
3
c)
4
d)
5
61.
Linear Search is faster than Binary search
a)
TRUE
b)
FALSE
c)
It depends on the scenario
62.
A Linear search algorithm requires data to be ordered.
a)
True
b)
False
63.
What is an advantage of the Linear search algorithm?
a)
Performs well with small sized data sets
b)
Can be used on data sets with more than a million elements
c)
Is complicated to code
64.
What is a disadvantage of the Linear search algorithm?
a)
It will only work on a sorted data set
b)
May be too slow to process large data sets
65.
What will happen in a Linear search algorithm if no match is found?
a)
It continues to search in a never ending loop.
b)
"Item not found" is returned
66.
Which of these is a type of searching algorithm?
a)
Linear search
b)
Word search
c)
Search engine
67.
What are the three key parts of computational thinking?
a)
Programming, flowcharts and pseudo code
b)
Abstraction, decomposition and algorithm
c)
Input, processing and output
d)
Patterns, shapes and numbers
68.
What is abstraction?
a)
A painting
b)
A programming language
c)
This means focusing on the important details and ignoring the irrelevant information
d)
Abstraction is the breaking down of a big problem into smaller parts.
69.
What does decomposition mean?
a)
focuses on the important information only, ignoring irrelevant detail
b)
Step by step instructions on solving a problem.
c)
Thinking like a computer
d)
This is the breaking down of a complex problem into smaller parts
70.
What is an algorithm?
a)
A sequence of instructions on how to solve a problem.
b)
The breaking down of a problem into smaller parts.
c)
Focusing on important parts and ignoring the irrelevant details
d)
The recipe for a cake
71.
What are the two main ways that we represent an algorithm?
a)
By drawing pictures 
b)
Using flowcharts and pseudo code
c)
Using python and small basic
d)
Using Scratch and python
72.
What is a flowchart?
a)
A visual representation of an algorithm using symbols
b)
Using 'fake code' to plan an algorithm
c)
Using a programming language to show an algorithm
d)
Uisng different types of charts to show an algorithm
73.
What does the following flowchart symbol represent?
a)
A process
b)
Input / Output
c)
Start / End
d)
A sub-process
74.
Which type of sort algorithm is this?
a)
Insertion
b)
Merge
c)
Bubble
75.
Takes each item in turn and puts it in the right place using the first item in the list as a starting point.
a)
Bubble sort
b)
Insertion sort