Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y9 DEC 23 MMD

Total questions: 114

Worksheet time: 1hrs 4mins

Name
Class
Date
1.

Which of the following is not done by abstraction?

a)

Identifies essential details

b)

Disregards non-essential information

c)

Breaks the problem down into smaller tasks

2.

Which of the following is not done by decomposition?

a)

Allows multiple people to work on the problem together

b)

Disregards non-essential information

c)

Breaks the problem down into smaller tasks

3.

When drawing a dog, which of the following characteristics is non-essential?

a)

Dogs have 4 paws

b)

Dogs have fur

c)

Dogs have brown fur

4.

When designing a building that must be accessible for wheelchairs, which of the following characteristics is non-essential?

a)

Number of doors

b)

Number of walls

c)

Number of wall paintings

5.

One advantage of abstraction is that it means no mistakes can be made

a)

True

b)

False

6.

You could use abstraction to replace specific objects with simple shapes

a)

True

b)

False

7.

This is a good example of decomposition

Sit down

Do homework

a)

True

b)

False

8.

Decomposition allows each task to become _______

a)

More manageable

b)

Easier

c)

Quicker

9.

Decomposition allows the entire task to be completed as _____

a)

A Team

b)

A Whole

c)

Quickly as possible

10.

Abstraction and Decomposition are separate concepts, you would usually choose to do either one or the other

a)

True

b)

False

11.

It is always necessary to decompose a task

a)

True

b)

False

12.

Abstraction and Decomposition are examples of...

a)

Computational Thinking

b)

Algorithmic Thinking

c)

Computer Science

d)

Logical Reasoning

13.

What is pattern recognition?

a)

Breaking down a complex problem into smaller problems

b)

Looking for similarities among and within problems

c)

Building models from patterns

14.

Why do we need to look for patterns in problems?

a)

Patterns make it easier for us to solve complex problems

b)

We don't need to look for patterns

c)

Patterns make it more difficult complex problems

15.

If you don't look for patterns in a problem, your solution might be _____

a)

Wrong

b)

Inefficient

c)

Too slow

16.

Identifying the steps involved in solving a problem

a)

Abstraction

b)

Decomposition

c)

Pattern Recognition

d)

Algorithmic Thinking

17.
Which of the following is an example of thinking computationally?
a)
Planning out your route when going to meet a friend
b)
When going to meet a friend, wandering around until you find them
c)
When going to meet a friend, asking a parent to plan your route for you
18.

Looking for similarities and trends within a problem

a)

Abstraction

b)

Decomposition

c)

Pattern recognition

d)

Algorithmic Thinking

19.

What is a flowchart?

a)

A visual representation of an algorithm.

b)

A diagram that shows abstraction.

c)

A series of shapes.

20.

A school database has lots of information on students, the data manager needs to use abstraction. What data should she leave out?

a)

Age

b)

Guardian's phone numbers

c)

Classes

d)

Eye colour

21.

Convert the following 4 digit binary number to denary:

0 1 0 0

a)

1

b)

2

c)

4

d)

3

e)

8

22.

Convert the following 4 digit binary number into denary:

0 0 1 1

a)

1

b)

2

c)

3

d)

4

e)

8

23.

Machine code (1s and 0s) is also known as

(a)  

24.

Convert the following 4 digit binary number into denary:

0 1 1 1

a)

6

b)

8

c)

7

d)

5

e)

9

25.

Convert the following 4 digit binary number into denary:

0 1 0 1

a)

5

b)

4

c)

3

d)

1

e)

7

26.

Humans normally use what system?

a)

Binary

b)

Octal

c)

Denary

d)

Hexadecimal

e)

Base 2

27.

Convert the following 4 digit binary number into denary:

1 0 1 1

a)

17

b)

9

c)

10

d)

11

e)

13

28.

Convert the following 4 digit binary number into denary:

1 0 0 1

a)

5

b)

7

c)

9

d)

11

e)

12

29.

Convert the following 4 digit binary number into denary:

1 1 1 0

a)

17

b)

19

c)

14

d)

16

e)

18

30.

Convert the following 4 digit binary number into denary:

1 1 1 1

a)

15

b)

16

c)

17

d)

19

e)

0

31.

What BASE is binary? (Enter a number only)

(a)  

32.

Convert the following 4 digit binary number into denary:

0 0 0 0

a)

10000

b)

0

c)

Invalid

d)

16

e)

9999+1

33.

What BASE does the human numbering system (Denary) use?

(Enter a number only)

(a)  

34.

Convert the following 4 digit binary number into denary:

1 0 1 0

a)

10

b)

Error

c)

11

d)

12

e)

14

35.

Which of the following is the ODD number?

a)

1110

b)

1000

c)

1010

d)

1101

e)

0010

36.

The CPU is the (a)   of the computer.

37.

Inside the CPU, you will find:

a)

ALU, CU, registers, cache memory

b)

ADU, PC, storage, RAM memory

c)

ARM, PC, controller, cache memory

d)

APM, CU, time signal, RAM memory

38.

The ALU....

a)

does any maths or logic problems for the CPU

b)

stores data inside the CPU

c)

sends out control signals for the CPU

d)

holds specific data for the fetch-decode-execute cycle

39.

The CU...

a)

does any maths or logic problems for the CPU

b)

stores data inside the CPU

c)

sends out control signals for the CPU

d)

holds specific data for the fetch-decode-execute cycle

40.

The cache memory...

a)

does any maths or logic problems for the CPU

b)

stores frequently used instructions close to the CPU

c)

sends out control signals for the CPU

d)

holds specific data for the fetch-decode-execute cycle

41.

The registers...

a)

do any maths or logic problems for the CPU

b)

store data inside the CPU

c)

send out control signals for the CPU

d)

hold specific data for the fetch-decode-execute cycle

42.

The MAR stores the (a)   of data which is either being sent to or fetched from the RAM.

43.

The MDR holds the (a)   which is being sent to/fetched from the address in the MAR.

44.

The PC holds the address of the next (a)   which will be fetched.

45.

The PC is (a)   by 1 at the end of each fetch-decode-execute cycle.

46.

The ACC holds the result of any processing by the (a)   .

47.

The main purpose of the CPU is to run the _____-______-_______ cycle.


Please include the hyphens in your answer

(a)  

48.

The first stage of the Fetch-Decode-Execute cycle is:

a)

The next instruction is fetched from the RAM

b)

The instruction is decoded so that it can be done

c)

Any processing is done using the ALU

d)

The PC is incremented

49.

The second stage of the Fetch-Decode-Execute cycle is:

a)

The next instruction is fetched from the RAM

b)

The instruction is decoded so that it can be done

c)

Any processing is done using the ALU

d)

The PC is incremented

50.

The third stage of the Fetch-Decode-Execute cycle is:

a)

The next instruction is fetched from the RAM

b)

The instruction is decoded so that it can be done

c)

Any processing is done using the ALU

d)

The PC is incremented

51.

The final stage of the Fetch-Decode-Execute cycle is:

a)

The next instruction is fetched from the RAM

b)

The instruction is decoded so that it can be done

c)

Any processing is done using the ALU

d)

The PC is incremented

52.

Select the registers which hold memory addresses. [2]

a)

RAM

b)

MDR

c)

ACC

d)

PC

e)

MAR

53.

Select the registers. [3]

a)

ALU

b)

MDR

c)

ACC

d)

PC

e)

CU

54.

To get data from RAM, memory addresses are sent from the CPU down the...

a)

bus.

b)

registers.

c)

ROM.

d)

cache.

55.

Select the components of the CPU. [2]

a)

CU

b)

ALU

c)

ACC

d)

ROM

e)

PC

56.

Which of these describes maintainability?

a)

Making the program easier to use for the user

b)

Making the code easier to read for the user

c)

Making the code easier to read for the programmer

d)

Making the program easier to use for the programmer

57.

In order to explain what you mean to another programmer in words in the code you use...

a)

Sub-Programs

b)

Whitespace

c)

Indentation

d)

Comments

58.

What word describes: giving variables names that reflect what their purpose is?

(a)  

59.

Which of these would you NOT use to add whitespace

a)

spaces

b)

indentation

c)

extra variable names

d)

empty lines

60.

What maintainability term describes splitting code up into methods that perform some of the work?

(a)  

61.

Why is code indented?

a)

To group together a function

b)

The code does not use a { syntax and indentation is used instead

c)

To make the code easier to read

d)

All of the above

62.

Which of these is not a method for authenticating a user?

a)

Password

b)

Password and Username

c)

Finger print scanner

d)

Encryption

63.

When should comments be used within a program?

a)

To help describe what code and structures are expected to do

b)

To remind the developer if when lunch is

c)

To include what tests must be carried out on the code

d)

Every line, so that you know exactly what is happening

64.

Which of the following are maintainability considerations - tick all that apply

a)

authentication

b)

comments

c)

naming conventions

d)

anticipating misuse

e)

use of subprograms

65.

Why do we want code to be maintainable?

a)

To make code easy to edit by other programmers

b)

To lessen the chance of mistakes when programming

c)

To make it easier to make corrections to your own code

d)

All of the above

66.

The following is not true about variable names

a)

They must be descriptive

b)

They must be in capital letters

c)

They can’t start with numbers or contain spaces

d)

They point to memory locations

67.

In an assignment operation, this appears on the right hand side

a)

Label for a variable that is destination of data

b)

Multiple variables that are destinations for data

c)

Source variables or operations

d)

The assignment operator

68.

The following is not a valid constant

a)

SPACE

b)

PI

c)

UserName

d)

WORDLIMIT

69.

Which of the following is a valid keyword for output?

a)

PRINT

b)

SHOW

c)

DISPLAY

d)

INPUT

70.

Consider the following expression: a:=b. This means

a)

a will always be equal to b

b)

b is being renamed into a

c)

The value of memory location a gets copied into memory location b

d)

The value of memory location b gets copied into memory location a

71.

Which of the following is not a valid data type?

a)

Real

b)

String

c)

Character

d)

Fraction

72.

Quotation marks around a variable’s identifier imply

a)

It is an integer

b)

It is a string

c)

It is a Boolean

d)

It is a real

73.

The multiplication table is best displayed using this data type

a)

Boolean

b)

Character

c)

Integer

d)

Real

74.

This variable type can only have True or False values

a)

Boolean

b)

Character

c)

Integer

d)

Real

75.

Casting refers to:

a)

Boolean algebra

b)

Rounding of reals

c)

Converting between variable data types

d)

Printing out of the program’s results

76.

The operator used to find if a number is divisible by another number:

a)

Integer division

b)

MOD

c)

Division

d)

Subtraction

77.

The statement A OR B implies A and B are

a)

Integers

b)

Strings

c)

Booleans

d)

Characters

78.

This function calculates the length of a string

a)

UBOUND

b)

INDEX

c)

LEN

d)

COUNT

79.

The following is a correct way to use the MID function

a)

A:=MID(“Flower”,”wer”)

b)

A:=MID(4,“Flower”)

c)

A:=MID(“Flower”,4)

d)

A:=MID(“Flower”,4,2)

80.

The following data types are used in selection conditions and while loops

a)

Character

b)

Boolean

c)

Integer

d)

String

81.

The following is true about Top-down approach

a)

The Main procedure is defined first, with other subs to follow

b)

The detailed list of all operations is drawn up first, before planning

c)

Start from top of program, complete the algorithm by getting to the bottom

d)

Functions can’t be included as they can’t be directly called by procedures.

82.

Structured code has the following benefit

a)

Reduces the number of lines of code

b)

Improves efficiency

c)

Makes code easier to read and debug

d)

All of these options are true

83.

Variable scope refers to

a)

Variable data type

b)

Variable identifier

c)

Logic errors associated with a variable

d)

Different use of global and local variables

84.

The advantages of parameter passing don’t include this

a)

The same subprogram can be reused in more cases

b)

Parameter passing makes it easier to use global variables

c)

More flexible coding

d)

Can cut down on the use of wasteful global variables

85.

The main difference between procedures and functions is

a)

Procedures are usually longer and have more instructions

b)

Functions use parameter passing, while procedures don’t

c)

Functions are more difficult to debug

d)

Functions return values, while procedures don’t

86.

When a variable first appears outside any subprograms

a)

It is a global variable

b)

It is a local variable

c)

It is a parameter variable

d)

It is not a valid variable

87.

Converting procedures to functions usually causes these effects

a)

Shorter code

b)

Slows the program down

c)

Reduction of the number of global variables, more parameter passing

d)

Makes it more difficult to use selection

88.

From this statement: a:=getChoice() we can see that

a)

getChoice() is a function

b)

getChoice() is a global variable

c)

a is an array

d)

getChoice() is a procedure

89.

Trying to use a local variable from outside its scope will cause

a)

A global variable to be overwritten by it

b)

A wrong procedure to run

c)

A crash with a report “Unknown variable”

d)

A logical error

90.

Identify a correct statement:

a)

Global variables waste memory

b)

showResults(choice,cutoff) is a function

c)

An array index is its length

d)

Nested iteration structures can share the same counter variable

91.

ELSE IF keyword is used when

a)

Our selection needs to work with more than three choices

b)

Our selection needs to work with more than two choices

c)

SELECT CASE/SWITCH statement is not available

d)

Using conditional loops

92.

Identify a correct statement:

a)

SELECT CASE is more popular then IF/ELSE IF/ELSE

b)

We can’t have more than 5 levels of nested IF/ELSE IF/ELSE

c)

SELECT CASE is the same concept as SWITCH

d)

FOR loops are known as condition-controlled iteration

93.

In the nested selection statements

a)

The inside selection structure gets executed first

b)

The outside selection structure gets executed first

c)

AND and OR are to be avoided

d)

Integers must be used instead of Booleans

94.

The flowchart shape for selection/decision is

a)

Parallelogram

b)

Square

c)

Diamond

d)

Rounded rectangle

95.

Identify an invalid expression

a)

ELSE x=45 THEN

b)

IF x>9 and x<100 THEN

c)

Any FOR loop can be rewritten as a WHILE loop

d)

PROCEDURE Test(a AS INTEGER)

96.

When a FOR loop increments a counter by a number other than one, this is called

a)

Increment

b)

Decrement

c)

Stepping

d)

Condition

97.

For exiting FOR loops early we use

a)

Nested iteration

b)

BREAK clause

c)

HALT clause

d)

Conditional loops

98.

The following is not true about arrays

a)

All array elements have the same data type

b)

Arrays have fixed size that can’t be easily changed during a program run

c)

Names[LEN(Names)] is the last element of the array Names

d)

The use of iteration makes arrays less relevant

99.

The following is not a correct statement involving arrays

a)

ARRAY Test[40]

b)

ARRAY Test[56,34,89,8]

c)

ARRAY:= Test[40]

d)

NewArray:=SPLIT(MID(“War and Peace”,2,5),”,”)

100.

The following is not a correct statement involving arrays

a)

J:=Pupils[5,8]

b)

Nums[i,j]:=Nums[i-1,j]

c)

Nums[i,j]:=Nums[i-1]

d)

B:=getChoices(45)

101.

In Record structures, VARCHAR keyword means

a)

A field is an integer

b)

The name of the field is about to be changed

c)

A field can be up to a certain number of characters or bytes in length

d)

A field can be any number of characters or bytes in length

102.

The following is true about Records

a)

They must have an index

b)

Fields are made up of records

c)

Records can combine multiple data types in their fields

d)

Record arrays are 2D arrays

103.

SQL is used to work with files in this format

a)

Plain text

b)

Proprietary binary

c)

CSV

d)

Spreadsheets

104.

The following is true about SQL

a)

It has loops just like any other language

b)

SQL is case sensitive

c)

SQL is hard to read due to a lot of abbreviated keywords

d)

SQL usually runs on top of another language

105.

The purpose of SELECT * FROM Pupils WHERE Result>90 is

a)

Retrieve collection of records of Pupils but only whose result is over 90

b)

To retrieve a collection of records of Pupils but only whose result is 90

c)

To set every Pupil’s result to 90

d)

Retrieve a collection of records of Pupils but only whose name is over 90

106.

Nested SELECT queries are used

a)

When Boolean operators get too complex

b)

When retrieving data from multiple tables

c)

When using partial matching

d)

For validation and quality control

107.

When we read or write text files, we are working with this data type

a)

Integers

b)

Booleans

c)

Reals

d)

Strings

108.

EOF is used in

a)

To indicate the end of a line with a formatting delimiter

b)

Conditional loops when writing to a file

c)

Conditional loops when reading from a file

d)

Destructive overwriting of the file’s data

109.

The following is not a valid file open mode

a)

Insert

b)

Append

c)

Read

d)

Write

110.

The following is not a reason to close files

a)

The program will not run otherwise

b)

Files kept open after we stopped needing them is wasted memory

c)

If we don’t close a file, our program will keep on changing the data inside

d)

A proper EOF will not be written

111.

The following is true about working with text files

a)

The file has to exist before we can write to it

b)

The changes are saved when we write to it, not when we close the file

c)

We use counter-controlled loops to read them

d)

We read and write them one line at a time

112.

The following is a right way to write to a file

a)

myFile.READLINE(variable)

b)

myFile.WRITELINE(variable)

c)

myFile.APPENDLINE(variable)

d)

myFile.INSERTLINE(variable)

113.

The most appropriate file mode for creating a logbook

a)

Read

b)

Write

c)

Append

d)

Close

114.

The following is a valid way to write a 2D array to a text file

a)

Concatenate each row to a string with "," then, all rows with New Line char

b)

Split the text file into an array, copy all elements to this array

c)

Use SQL to convert 2D array to records first

d)

All of these options are valid