wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

J277 Paper 2 Computational Thinking, Programming and Algorithms

Total questions: 90

Worksheet time: 54mins

Name
Class
Date
1.

What is an Algorithm?

a)

A set of instructions.

b)

A Diagram.

c)

A list of things to do.

2.

What does the process of Abstraction do?

a)

Remove information.

b)

Ignore unimportant details.

c)

Highlight important information.

d)

Ignore unimportant details and highlight important ones.

3.

Decomposition is the process in which you?

a)

Break a large task down into smaller sections.

b)

Solve easy parts of a problem.

c)

Look for patterns in the problem.

d)

Ignore unimportant details and highlight important ones.

4.

Which of the following are Searching Algorithms?

a)

Binary and Linear

b)

Merge and Bubble

c)

Linear and Insertion

d)

Insertion and Merge

5.

Which of these are Sorting Algorithms?

a)

Bubble, Linear and Insertion

b)

Bubble, Insertion and Merge

c)

Binary, Insertion and Merge

d)

Binary, Linear and Merge

6.

Which of these are advantages of a Binary search algorithm?

a)

It is more suitable for large lists.

b)

It is more efficient as its takes less average steps.

c)

Suitable for small lists.

d)

Works on un-ordered lists.

7.

Which of these are advantages of a Linear searching algorithm?

a)

It is more suitable for large lists.

b)

It is more efficient as its takes less average steps.

c)

Suitable for small lists.

d)

Works on un-ordered lists.

8.

Which of these are advantages of Insertion sorting algorithms?

a)

Is very efficient on small lists.

b)

Can work on live data.

c)

Works very efficiently on large lists.

d)

Uses large amounts of memory.

9.

Which of these are characteristics of a Merge sort?

a)

Is very efficient on small lists.

b)

Can work on live data.

c)

Works very efficiently on large lists.

d)

Uses large amounts of memory.

10.

Which of the images is Pseudocode?

a)

A

b)

B

11.

Which of the images is Flowchart?

a)

A

b)

B

12.

What is input sanitation?

a)

Checking if an input is correct or not.

b)

Making sure that an input is the correct data type.

c)

Removing unwanted characters from an input.

d)

Checking whether inputs meet certain criteria.

13.

What is input validation?

a)

Checking if an input is correct or not.

b)

Making sure that an input is the correct data type.

c)

Removing unwanted characters from an input.

d)

Checking whether inputs meet certain criteria.

14.

Which of the following explain contingencies in programming?

a)

It is another word for error handling.

b)

Limiting user errors though anticipation and error capture.

c)

A second program if the first breaks.

d)

Alternate menus if the first is not working.

15.

Which of the following make code more maintainable?

a)

Comments, Sensible variable names and Indentation

b)

User interfaces, Sensible variable names and Indentation

c)

Comments, Sensible variable names and Multiple languages

d)

Comments, User interfaces and Indentation

16.

Which of the following explains Iterative testing?

a)

This type of testing happens throughout development.

b)

This type of testing is conducted when development is over.

17.

Which of the following explains Final testing?

a)

This type of testing happens throughout development.

b)

This type of testing is conducted when development is over.

18.

Which of the following describes a Logic Error?

a)

Where the code can be run but does something unexpected.

b)

The code cannot be understood due to an error.

c)

Where you use a variable that you have not declared.

d)

Where you try to use data that is the incorrect type.

19.

Which of the following describes a Syntax Error?

a)

Where the code can be run but does something unexpected.

b)

The code cannot be understood due to an error.

c)

Where you use a variable that you have not declared.

d)

Where you try to use data that is the incorrect type.

20.

Which of the following describes a Name Error?

a)

Where the code can be run but does something unexpected.

b)

The code cannot be understood due to an error.

c)

Where you use a variable that you have not declared.

d)

Where you try to use data that is the incorrect type.

21.

Which of the following describes a Type Error?

a)

Where the code can be run but does something unexpected.

b)

The code cannot be understood due to an error.

c)

Where you use a variable that you have not declared.

d)

Where you try to use data that is the incorrect type.

22.

Which Logic Gate does this truth table belong too?

a)

NOT

b)

AND

c)

OR

23.

Which Logic Gate does this truth table belong too?

a)

NOT

b)

AND

c)

OR

24.

Which Logic Gate does this truth table belong too?

a)

NOT

b)

AND

c)

OR

25.

What does the DIV function do?

a)

Returns the whole number only from a division.

b)

Returns the remainder only from a division.

26.

What does the MOD function do?

a)

Returns the whole number only from a division.

b)

Returns the remainder only from a division.

27.

What is Exponentiation?

a)

Returns the whole number only from a division.

b)

Returns the remainder only from a division.

c)

Using a Power of.

28.

What does IDE stand for?

a)

Integrated Development Environment

b)

Intelligent Developing Environment

c)

Integrated Developing Environment

d)

Intelligent Development Environment

29.

Which of the following are IDE assistive technologies?

a)

Error Highlighting, Auto-Documentation, Run-Time Environment

b)

Error Highlighting, Code Editor, Run-Time Environment

c)

Error Fixing, Auto-Documentation, Run-Time Environment

d)

Error Highlighting, Auto-Documentation, coloured text

30.

What is the order of languages, from least to easiest to understand by a human?

a)

Machine code, Assembly code, High Level code

b)

Assembly code, Machine code, High Level code

c)

Assembly code, High Level code, Machine code

d)

High Level code, Machine code, Assembly code

31.

How can the following Logic Gate be expressed?

a)

NOT(A) OR (B AND C)

b)

NOT(A) AND (B OR C)

c)

(A) OR (B AND C)

d)

(A) AND (B OR C)

32.

How can the following Logic Gate be expressed?

a)

NOT((A AND B) OR NOT(C))

b)

NOT((A OR B) AND NOT(C))

c)

(A AND B) OR NOT(C)

d)

(A OR B) AND NOT(C)

33.

How can this Logic Gate be expressed?

a)

NOT(A AND B) AND (NOT(NOT(C)))

b)

NOT(A AND B) AND C

c)

NOT(A OR B) OR (NOT(C))

d)

NOT(A OR B) OR (NOT(NOT(C)))

34.

Which of the following describes a Record?

a)

A row of data that is all about a specific person or object.

b)

A column of data that is about a specific subject.

35.

Which of the following describes a Field?

a)

A row of data that is all about a specific person or object.

b)

A column of data that is about a specific subject.

36.

Which symbols are wild cards in SQL?

a)

*

b)

%

c)

&

d)

^

37.

Which of the following is the order of commands in SQL?

a)

SELECT, FROM, GROUP BY, WHERE

b)

SELECT, FROM, WHERE, GROUP BY

c)

FROM, SELECT, WHERE, GROUP BY

d)

FROM, SELECT, GROUP BY, WHERE

38.

Which of the following SQL Statements would select the data of customers with the surname 'Griffin'?

a)

SELECT * FROM Customers WHERE LastName = 'G%'

b)

FROM Customers SELECT * WHERE LastName = 'G%'

c)

SELECT * FROM Customers WHERE LastName = 'Griffin'

d)

FROM Customers SELECT * WHERE LastName = 'Griffin'

39.

What programming construct is used in this image?

a)

Selection

b)

Iteration

c)

Sequencing

40.

Identify which of the following is not one of the three main programming constructs?

a)

Sequencing

b)

Selection

c)

Iteration

d)

Sub Routines

41.

What programming construct is used in this image?

a)

Selection

b)

Iteration

c)

Sequencing

42.

What error is in the following code?

a)

Logic Error

b)

Syntax Error

c)

Type Error

d)

Indentation Error

43.

What programming construct is used in this image?

a)

Selection

b)

Iteration

c)

Sequencing

44.

What error is in the following code?

a)

Logic Error

b)

Type Error

c)

Syntax Error

d)

Indentation Error

45.

What error is in the following code?

a)

Logic Error

b)

Type Error

c)

Syntax Error

d)

Indentation Error

46.

What error is in the following code?

a)

Logic Error

b)

Type Error

c)

Syntax Error

d)

Indentation Error

47.

What error is in the following code?

a)

Logic Error

b)

Type Error

c)

Syntax Error

d)

Indentation Error

48.

What error is in the following code?

a)

Logic Error

b)

Type Error

c)

Syntax Error

d)

Indentation Error

49.

What error is in the following code?

a)

Logic Error

b)

Type Error

c)

Syntax Error

d)

Indentation Error

50.

What error is in the following code?

a)

Logic Error

b)

Type Error

c)

Syntax Error

d)

Indentation Error

51.

Which of the following best describes 'Algorithmic Thinking'?

a)

Identifying patterns in data to help see trends.

b)

Creating a Step by step solution to a problem.

c)

Breaking down large tasks into smaller ones.

d)

Focusing on key data and ignoring non relevant data.

52.

Which of the following best describes 'Pattern Recognition'?

a)

Identifying patterns in data to help see trends.

b)

Creating a Step by step solution to a problem.

c)

Breaking down large tasks into smaller ones.

d)

Focusing on key data and ignoring non relevant data.

53.

Identify which searching algorithm is used in this example?

a)

Linear Search

b)

Binary Search

54.

Identify which searching algorithm is used in this example?

a)

Linear Search

b)

Binary Search

55.

Identify which sorting algorithm is used in the example?

a)

Bubble

b)

Insertion

c)

Merge

56.

Identify which sorting algorithm is used in the example?

a)

Bubble

b)

Insertion

c)

Merge

57.

Identify which sorting algorithm is used in the example?

a)

Bubble

b)

Insertion

c)

Merge

58.

Which of the following describes a Trace Table?

a)

Outlines the main functionality of a program. Made to help with planning a program by decomposing it.

b)

Allows developers to be aware of the value of different variables throughout a program as it is run.

59.

Which of the following describes a Structure Diagram?

a)

Outlines the main functionality of a program. Made to help with planning a program by decomposing it.

b)

Allows developers to be aware of the value of different variables throughout a program as it is run.

60.

The image shows

a)

A Structure Diagram

b)

A Trace Table

61.

The image shows

a)

A Structure Diagram

b)

A Trace Table

62.

Which of the following best describes 'Machine Code'?

a)

1's and 0's used to give commands. Very difficult for humans to read and write.

b)

Uses a combination of letters and numbers to give commands. Not easy to for humans ready and write.

c)

Made using mainly English words. Easy for humans to read and write.

63.

Which of the following best describes 'Assembly Code'?

a)

1's and 0's used to give commands. Very difficult for humans to read and write.

b)

Uses a combination of letters and numbers to give commands. Not easy to for humans ready and write.

c)

Made using mainly English words. Easy for humans to read and write.

64.

Which of the following best describes 'High Level Code'?

a)

1's and 0's used to give commands. Very difficult for humans to read and write.

b)

Uses a combination of letters and numbers to give commands. Not easy to for humans ready and write.

c)

Made using mainly English words. Easy for humans to read and write.

65.

Which of the following best describes a 'Compiler'?

a)

Used to convert high level code to machine code. All the source code is converted at once and is not needed once translated.

b)

Used to convert high level code to machine code. Source code is converted one line at a time and is needed once translated to run the program again.

c)

Used to convert assembly code to machine code. This is unique to each CPU.

66.

Which of the following best describes a 'Interpreter'?

a)

Used to convert high level code to machine code. All the source code is converted at once and is not needed once translated.

b)

Used to convert high level code to machine code. Source code is converted one line at a time and is needed once translated to run the program again.

c)

Used to convert assembly code to machine code. This is unique to each CPU.

67.

Which of the following best describes a 'Assembler'?

a)

Used to convert high level code to machine code. All the source code is converted at once and is not needed once translated.

b)

Used to convert high level code to machine code. Source code is converted one line at a time and is needed once translated to run the program again.

c)

Used to convert assembly code to machine code. This is unique to each CPU.

68.

Which programming construct is shown in the image?

a)

Sequencing

b)

Selection

c)

Iteration

69.

Which programming construct is shown in the image?

a)

Sequencing

b)

Selection

c)

Iteration

70.

Which programming construct is shown in the image?

a)

Sequencing

b)

Selection

c)

Iteration

71.

The programming skill that is used to store data under a defined name, this value can change in a program?

(a)  

72.

The programming skill that is used to store data under a defined name, this value cannot change in a program?

(a)  

73.

The programming skill used get data into a program?

(a)  

74.

The programming skill used get data out of a program?

(a)  

75.

The image shows two different types of?

(a)  

76.

The image shows a conditional statement known as a _____ ____ Statement.

(a)  

77.

The image shows a conditional statement known as a __ ____ ____ Statement.

(a)  

78.

A WHILE statement in python is what type of iteration; (a)   iteration?

79.

A FOR statement in python is what type of iteration; _____ ___________ iteration?

(a)  

80.

The programming skill used to change data types is known as; (a)  

81.

Which type of Sub-Routine allows data to be returned to the program.

a)

Procedure

b)

Function

82.

The name of the data passed into a Sub-Routine; (a)  

83.

The name of the programming data store that stores multiple pieces of data under on name; (a)  

84.

The name given to the different skills used to edit and change data of the type String; ______ ____________

(a)  

85.

Which data type is the default for inputs in Python?

a)

Integer

b)

Float

c)

String

d)

Boolean

86.

String, Integer, Boolean, Float are all ____ _____?

(a)  

87.

The image shows which skill for external files?

a)

Reading

b)

Writing

88.

The image shows which skill for external files?

a)

Reading

b)

Writing

89.

The image shows all the different (a)   operators?

90.

The image shows all the different (a)   operators?