wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Name

Total questions: 147

Worksheet time: 2hrs 38mins

Name
Class
Date
1.

Select the correct declaration of variables when finding the highest value in a list of values

a)

Highest ← 0

b)

Highest ← 100

c)

Highest ← [9]

d)

Highest ← Lowest

2.

Which of these is are selection statements?

a)

CASE...OF...OTHERWISE...ENDCASE

b)

IF...THEN...ELSE...ENDIF

c)

IF...THEN...ELSE...IF...THEN...ENDIF...ENDIF

d)

FOR....TO...NEXT

3.

Which lines are the errors located on?

a)

Line 4, 5, 8

b)

Line 1, 3, 4,

c)

Line 4, 5, 7

d)

Line 4, 5, 8 and a missing input

4.

Describe with an example the purpose of the validation check?

4 lines
5.

Correct the error on line 6

(a)  

6.

Describe with an example the purpose of the verification check?

4 lines
7.

A value that cannot change whilst the program is running

a)

Array

b)

Variable

c)

Constant

d)

Table

8.

Correct the error on line 2

a)

Counter = 0

b)

Counter = Num

c)

Counter = Total

d)

Counter = 100

9.

Which lines are the errors located on?

a)

Line 2, 7, 3

b)

Line 2, 6, 7,

c)

Line 8, 3, 7

d)

Line 2, 6, 7, 8

10.

A value that can change whilst the program is running

a)

Array

b)

Variable

c)

Constant

d)

Table

11.

Select the correct declaration of variables when finding the lowest value in a list of values

a)

lowest ← 0

b)

lowest ← 100

c)

lowest ← [9]

d)

lowest ← Highest

12.

A series of element of the same data type is

a)

Array

b)

Variable

c)

Constant

d)

Table

13.

In Cambridge IGCSE 0478 Computer Science Standards,

Pseudocode is presented in a monospaced (fixed-width) font and will be consistent throughout.

a)

True

b)

False

14.

In Cambridge IGCSE 0478 Computer Science Standards,

Pseudocode is presented in a multi-spaced (flexi-width) font and will be consistent throughout.

a)

True

b)

False

15.

In Cambridge IGCSE 0478 Computer Science Standards,

Generally, Pseudocodes are indented by four (4) spaces.

a)

True

b)

False

16.

In Cambridge IGCSE 0478 Computer Science Standards,

Generally, Pseudocodes are indented by four (4) spaces. But THEN & ELSE clause in an IF statement is indented by two (2) spaces.

a)

True

b)

False

17.

In Cambridge IGCSE 0478 Computer Science Standards,

Generally, Pseudocodes are indented by four (4) spaces. But THEN & ELSE clause in an IF statement is indented by three (3) spaces.

a)

True

b)

False

18.

In Cambridge IGCSE 0478 Computer Science Standards,

KEYWORDS can be lower or upper case.

a)

True

b)

False

19.

In Cambridge IGCSE 0478 Computer Science Standards,

KEYWORDS are in upper case.

a)

True

b)

False

20.

In Cambridge IGCSE 0478 Computer Science Standards,

Identifiers are in mixed case. (upper case or lower case)

a)

True

b)

False

21.

In Cambridge IGCSE 0478 Computer Science Standards,

Angled brackets < > are used to enclose meta-variables that can be substituted by other symbols.

a)

True

b)

False

22.

In Cambridge IGCSE 0478 Computer Science Standards,

Line numbers are used for each line of statement. However, when a statement runs over one line of text, the continuation lines are not numbered.

a)

True

b)

False

23.

In Cambridge IGCSE 0478 Computer Science Standards,

Line numbers are used for each line of statement including when it runs over one line of text.

a)

True

b)

False

24.

In Cambridge IGCSE 0478 Computer Science Standards,

Putting a comment on a Pseudocode section to clarify is encouraged.

a)

True

b)

False

25.

In Cambridge IGCSE 0478 Computer Science Standards,

The symbol for comment in Pseudocode is...

a)

</ comment />

b)

// comment

c)

< comment >

d)

// comment //

26.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for whole number

a)

INTEGER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

REAL

27.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for a sequence of zero or more characters.

a)

INTEGER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

REAL

28.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for numbers capable of containing fractional part.

a)

INTEGER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

REAL

29.

In Cambridge IGCSE 0478 Computer Science Standards,

is the atomic datatype keyword for TRUE OR FALSE logical values.

a)

LOGIC

b)

BOOLEAN

c)

GATES

d)

CHAR

e)

REAL

30.

In Cambridge IGCSE 0478 Computer Science Standards,

it is the atomic datatype keyword for a single character

a)

CHARACTER

b)

BOOLEAN

c)

STRING

d)

CHAR

e)

ALPHABET

31.

In Cambridge IGCSE 0478 Computer Science Standards,

it is a good practice to use identifier names that describe the variable, procedure, or function they refer to.

a)

TRUE

b)

FALSE

32.

In Cambridge IGCSE 0478 Computer Science Standards,

when writing Identifiers should be considered as mixed case throughout.

a)

TRUE

b)

FALSE

33.

In Cambridge IGCSE 0478 Computer Science Standards,

when writing Identifiers, it should be considered as case - sensitive.

a)

TRUE

b)

FALSE

34.

In Cambridge IGCSE 0478 Computer Science Standards,

assignments should be made in the following format:

<identifier> --> <value>

a)

TRUE

b)

FALSE

35.

In Cambridge IGCSE 0478 Computer Science Standards,

assignments should be made in the following format:

<identifier> <-- <value>

a)

TRUE

b)

FALSE

36.

In Cambridge IGCSE 0478 Computer Science Standards,

Arrays in main pseudocode statements, only one index value is used for each dimension in the square brackets. e.g. StudentNames[1] <-- "Ali"

a)

TRUE

b)

FALSE

37.

In Cambridge IGCSE 0478 Computer Science Standards,

Arrays in main pseudocode statements, only multiple index value can be used for each dimension in the square brackets. e.g. StudentNames[1] <-- "Ali", "George", "Rebecca"

a)

TRUE

b)

FALSE

38.

In Cambridge IGCSE 0478 Computer Science Standards,

Arrays in main pseudocode statements, can be used in assignment statements (provided they have the same size and data type).

a)

TRUE

b)

FALSE

39.

In Cambridge IGCSE 0478 Computer Science Standards,

A statement should NOT, however, refer to a group of array elements individually.

StudentNames [ 1 TO 30] <-- " "

a)

TRUE

b)

FALSE

40.

In Cambridge IGCSE 0478 Computer Science Standards,

A statement CAN refer to a group of array elements individually.

StudentNames [ 1 TO 30] <-- " "

a)

TRUE

b)

FALSE

41.

In Cambridge IGCSE 0478 Computer Science Standards,

multiple values are allowed for INPUT and OUTPUT statements

a)

TRUE

b)

FALSE

42.

In Cambridge IGCSE 0478 Computer Science Standards,

The identifier of a COUNT controlled (FOR) loop must be a variable of data type INTEGER.

a)

TRUE

b)

FALSE

43.
James asks - how many marks are in paper 2
a)
100
b)
50
c)
75
d)
25
e)
My Brain hurts
44.
andrew asks - how many retakes of the test do you get.
a)
none
b)
1
c)
3
d)
unlimited
e)
My Brain hurts
45.
Walker asks - can you use a calculator in your exam
a)
Yes
b)
No
c)
I dont know
d)
sure
e)
My Brain hurts
46.
James asks - How much time do you have in paper 2
a)
60 mins
b)
90 mins
c)
105 mins
d)
120 mins
e)
My Brain hurts
47.
lola asks - what percentage is theory worth in your final grade
a)
0.6
b)
0.2
c)
0.7
d)
0.5
e)
My Brain hurts
48.
nathaniel asks - what is the two duration of the exams added then dived 2
a)
105
b)
70
c)
100
d)
110
e)
My Brain hurts
49.
Luke asks - What is paper 1 about?
a)
theory
b)
problem solving and programming
c)
problem solving and programming pre release material
d)
advanced theory
e)
My Brain hurts
50.
Will asks - how many topics are there in the computer science course?
a)
9
b)
11
c)
8
d)
6
e)
My Brain hurts
51.
Johanncito asks - What is the best teaching resource for Computer Science?
a)
The Syllabus
b)
Mr. H's help
c)
A Learner Guide
d)
A Discussion Forum
e)
My Brain hurts
52.
Shayla asks - <br />What is the weighting in IGCSE For AO2
a)
20
b)
25
c)
40
d)
45
e)
My Brain hurts
53.
Oliver asks - how many marks is problem solving worth
a)
25
b)
60
c)
50
d)
40
e)
My Brain hurts
54.
Matthew asks - How much does the Cambridge Assessment make???
a)
50 000 a year
b)
Your school pays them
c)
Its a non profit organization
d)
100 000
e)
My Brain hurts
55.
Charlie asks - What piece of code ends the run
a)
Stop()
b)
stop(1)
c)
exit()
d)
Exit()
e)
My Brain hurts
56.
Charlie asks - What is the python logo?
a)
Two yellow snakes
b)
Two blue snakes
c)
A blue Snake above a yellow snake
d)
A yellow snake above a blue snake
e)
My Brain hurts
57.

How many late homework's should Mr H allow before he offers you the help you need in an after school Detention?

a)

2

b)

3

c)

4

d)

5

e)

It does not matter as I will never hand in any late work!

58.
What is an Algorithm?
a)
A set of instructions in order
b)
A task for the computer
59.
What is an Algorithm?
a)
A set of instructions in order
b)
A task for the computer
60.
What is the purpose of a flowchart?
a)
To plan the program before it is made
b)
Because it is easier
61.
Why do we use flowcharts?
a)
To represent algorithms in an easy way
b)
To use different maths shapes
62.
What does this symbol represent?
a)
Start
b)
Sub
c)
Decision
d)
Process
63.
What is this symbol used for in a flowchart?
a)
A decision/question
b)
A task to carry out
64.
What symbol do flowcharts begin with?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
65.
What is the name of this symbol in a flowchart?
a)
Input
b)
Output
c)
Decision/Question
d)
Process
66.
What does this shape represent?
a)
Input/Output
b)
Decision
c)
Process
d)
Start/Stop
67.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond
68.
What is the purpose of an arrow in a flowchart?
a)
Shows the relationships between shapes/ the flow of information
b)
They look nice when we use them
c)
We don't use arrows
d)
Shows the way the arrow is directed
69.
Can this shape be used for both Start and Stop?
a)
Yes
b)
No
70.

What symbol is this?

a)

Set Ans = calculation

b)

rectangle

c)

Processing

d)

calculation

71.

What symbol is this?

a)

Read DataItem

b)

rectangle

c)

slanted box

d)

Input

e)

parallelogram

72.

What shape is this?

a)

Read DataItem

b)

rectangle

c)

slanted box

d)

Input

e)

parallelogram

73.

What symbol is this?

a)

Question?

b)

Decision

c)

diamond

d)

YES

e)

NO

74.

What shape is this?

a)

Question?

b)

Decision

c)

diamond

d)

YES

e)

NO

75.

What symbol is this?

a)

arrow

b)

downward arrow

c)

down

d)

direction

76.

What shape is this?

a)

arrow

b)

downward arrow

c)

down

d)

direction

77.

Java, Python, PHP, and C++ are examples of

a)

low level languages

b)

Graphic arts languages

c)

medium level languages

d)

high level languages

78.

What is the purpose of a flowchart?

a)
To create a graphical user interface
b)
To analyze data and generate reports
c)
The purpose of a flowchart is to visually represent a process or algorithm.
d)
To write and execute computer programs
79.

Which shape in a flowchart represents a process or action?

a)
rectangle
b)
hexagon
c)
triangle
d)
circle
80.

What does the diamond shape represent in a flowchart?

a)
Start point
b)
End point
c)
Decision point or conditional statement
d)
Looping statement
81.

Which symbol is used to represent the start and end of a flowchart?

a)
Triangle
b)
Square
c)
Rectangle
d)
Oval
82.

What does the oval shape represent in a flowchart?

a)
Input or output
b)
Decision point
c)
Start or end of a process
d)
Loop or repetition
83.

In a flowchart, which symbol is used for input and output operations?

a)
rectangle
b)
circle
c)
triangle
d)
parallelogram
84.

What does a flowchart use to represent a conditional statement or decision point?

a)
diamond shape
b)
triangle shape
c)
square shape
d)
circle shape
85.

Which direction do arrows in a flowchart usually indicate?

a)
The direction of the flow or the sequence of steps.
b)
The starting point of the flowchart.
c)
The direction of the flow or the sequence of steps.
d)
The ending point of the flowchart.
86.

In a flowchart, which symbol is used for a process that requires a decision?

a)
Diamond
b)
Triangle
c)
Circle
d)
Square
87.

What does the parallelogram shape represent in a flowchart?

a)
start or end
b)
input or output
c)
process or operation
d)
decision or condition
88.

Which shape is used to indicate a predefined process in a flowchart?

a)
hexagon
b)
rectangle
c)
circle
d)
triangle
89.

What does it mean when a flowchart path splits into two or more paths?

a)
An error in the flowchart.
b)
Different starting points for the flowchart.
c)
Multiple possible outcomes or options
d)
A loop in the flowchart.
90.

What does the curved arrow represent in a flowchart?

a)
Start of the flowchart
b)
Decision point
c)
End of the flowchart
d)
Flow or direction of the process or data
91.

Which shape is used to indicate the flow of information to and from a database in a flowchart?

a)
Rectangle with rounded corners
b)
Triangle
c)
Circle
d)
Hexagon
92.

In a flowchart, what does the process symbol with double lines indicate?

a)
decision point
b)
subroutine or sub-process
c)
input or output
d)
start or end point
93.

Which shape is used to represent a document or report in a flowchart?

a)
circle
b)
triangle
c)
hexagon
d)
rectangle
94.

What does the connector symbol represent in a flowchart?

a)
Flow of control
b)
Data input
c)
Data output
d)
Decision point
95.

What does a loop symbol in a flowchart indicate?

a)
Repetitive sequence of instructions
b)
Conditional statement
c)
Decision point
d)
Input/output operation
96.

Which shape is used to represent a storage or data repository in a flowchart?

a)
hexagon
b)
rectangle
c)
triangle
d)
circle
97.

What is the purpose of using connectors in a flowchart?

a)
To add unnecessary complexity to the flowchart
b)
To confuse the reader
c)
To make the flowchart look more visually appealing
d)
To show the flow or sequence of steps in a process.
98.
What is the purpose of a flowchart?
a)
To plan the program before it is made
b)
Because it is easier
99.
Why do we use flowcharts?
a)
To represent algorithms in an easy way
b)
To use different maths shapes
100.
What does this symbol represent?
a)
Start
b)
Sub
c)
Decision
d)
Process
101.
What does this shape represent?
a)
Input/Output
b)
Decision
c)
Process
d)
Start/Stop
102.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond
103.
Can this shape be used for both Start and Stop?
a)
Yes
b)
No
104.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
105.
What is the Output if the temperature is:
19
a)
Below Freezing
b)
Above Freezing
106.

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)

107.
What is an algorithm?
a)
A problem
b)
A solution to a problem
c)
The steps that are taken to solve a problem
d)
The words to enter when typing
108.
What is this symbol used for in a flowchart?
a)
A decision/question
b)
A task to carry out
109.

How many arrows come out of the end symbol in the flowchart?

a)

0

b)

1

c)

2

d)

3

110.

How many arrows come out of the start symbol in the flowchart?

a)

0

b)

1

c)

2

d)

3

111.
What is the purpose of an arrow in a flowchart?
a)
Shows the relationships between shapes/ the flow of information
b)
They look nice when we use them
c)
We don't use arrows
d)
Shows the way the arrow is directed
112.
Which symbol shoes input?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
113.
Which symbol shoes output?
a)
oval
b)
parallelogram
c)
rectangle
d)
diamond
114.

This flowchart is made to...

a)

Calculate the area and perimeter of a square

b)

Output figures of different sizes

c)

Calculate the area and perimeter of a circle

d)

Find out how long it takes to get to the moon

115.

In this flowchart, r ...

a)

is the radius of a circle

b)

stands for random number

c)

represents a running total

d)

is a miscellaneous variable

116.

In this flowchart the diamond shape helps with...

a)

Deciding whether the student should pass or fail

b)

Adding up the student's marks

c)

Making sure the student gets good marks

d)

Checking the student's general behaviour

117.

This flowchart is made to ...

a)

Check whether a number is odd or even

b)

Decide if we like a number or not

c)

Calculate the remainder of a number + 2

d)

Help people with Maths

118.

What is a record?

a)

A set of numbers grouped in an array

b)

A collection of arrays in a group

c)

A data structure that groups together related items

d)

A program designed to create an array

119.

What is meant by 'declaring' an array?

a)

Create an array in a program, specifying its name and size

b)

creating a program, specifying its size

c)

create a program, specifying its name

d)

create an array to assign to a Selection process

120.
Which value does the command 'list[3]' find?
a)
The fourth value of 'List'
b)
The third value of 'List'
c)
The second value of 'List'
d)
The fifth value of 'List'
121.

scores = [5,7,0,10,8,3,7,3]


Which value will be found using the following statement:


print(scores[2])

a)

5

b)

7

c)

0

d)

10

122.

Which iteration method is commonly used with arrays?

a)

ELSE

b)

WHILE

c)

IF

d)

FOR

123.

What is the name given to a number that corresponds to the location of an item of data in an array?

a)

Initial

b)

Primary

c)

Index

d)

Identifier

124.

Arrays have a fixed number of items.


True or False

a)

True

b)

False

125.

Arrays can have different data types?


True or False?

a)

True

b)

False

126.

Which type of array is the following example?


score = [5,7,0,10,8,3,7,3]

a)

1D

b)

2D

c)

3D

d)

4D

127.

How may index numbers are used in accessing a 2D array?

a)

1

b)

2

c)

3

d)

4

128.

Python has true 2-dimensional arrays?


True or False?

a)

True

b)

False

129.

What is the name given to an abstract representation of how data is stored in a 2D array?

a)

Record

b)

File

c)

Field

d)

Table

130.

Which of these is a list?

a)

fruit = "apples", "oranges", "bananas"

b)

fruit = ["apples", "oranges", "bananas"]

c)

fruit = {"apples", "oranges", "bananas"}

d)

fruit = ("apples", "oranges", "bananas")

131.

What is the position of the name 'Paula' in the following list:

names = ["Paul","Pranav","Paula","Prea"]

a)

0

b)

1

c)

2

d)

3

132.

In the following list, which item has the index number 3?

["John", "Harry", "Jesse", "John", "Jairus", "Hamza"]

a)

"Jairus"

b)

"Harry"

c)

"Jesse"

d)

"John"

133.

What type of structure is this in Python?


shopping=[["tomato","rice","cheese","milk"],["soap","masks","detergent"]]

a)

1D array

b)

List

c)

List of Lists

d)

Tuple

134.

What is a nested loop?

a)

one loop that sits within another loop

b)

one loop that has stalled and is not working

c)

one loop replaced by another loop

d)

one loop that has become selection

135.

A record allows multiple data items to be stored using ________ ________ to identify each item of data

a)

record entries

b)

table references

c)

array lists

d)

field names

136.

Records would typically be seen in use with which type of software?

a)

image editor

b)

browser

c)

database

d)

defragmenter

137.

Which would be correct pseudo-code for creating a 1D array?

a)

students : ['Imogen','Tia',Muhammad']

b)

students ← ['Imogen','Tia',Muhammad']

c)

students → ('Imogen','Tia',Muhammad')

d)

students → ['Imogen','Tia',Muhammad']

138.
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[2]);
a)
Number: 2
b)
Number: 7
c)
Number: 4
d)
Number: 12
139.
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[0]);
a)
Number: 2
b)
Number: 7
c)
Number: 4
d)
Number: 12
140.
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[numArray.length - 1]);
a)
Number: 2
b)
Number: 0
c)
Number: 12
d)
Number: 6
141.
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println(numArray.length);
a)
4
b)
5
c)
6
d)
7
142.
What is the correct way to initialize an array with 10 positions?
a)
int numbers = new int[10];
b)
int[] numbers = new int[];
c)
int[10] numbers = new int[10];
d)
int[] numbers = new int[10];
143.
What value is stored in each of the 5 positions in this array? (What is the default value provided by Java).
int[] numbers = new int[5];
a)
null
b)
1
c)
0
d)
nothing
144.
What value is at index 1 in this array?  String[] names = {"Mack", "Dennis", "Dee", "Charlie"};
a)
Mack
b)
Dennis
c)
Dee
d)
Charlie
145.
What value is at index 3 in this array?  String[] names = {"Mack", "Dennis", "Dee", "Charlie"};
a)
Mack
b)
Dennis
c)
Dee
d)
Charlie
146.
What is the correct way to create an array with these three numbers: 12  8  15
a)
int[] = {12, 8, 15};
b)
int[] nums = {12  8  15};
c)
int[] nums = {12, 8, 15}
d)
int[] nums = {12, 8, 15};
147.
True or False:  An array can be store different types of data (like store both doubles and ints).
a)
True
b)
False