wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

revision

Total questions: 112

Worksheet time: 59mins

Name
Class
Date
1.

Which html tag defines a numbered list

(a)  

2.

html tag to add a picture

(a)  

3.

html tag allows the division of a page into separate areas, each of which may be referred to

uniquely by name, and styled differently using CSS.

(a)  

4.

CSS can be Embedded, inline and (a)  

5.

is this CSS

a)

inline

b)

internal

c)

external

6.

is this CSS

a)

inline

b)

internal

c)

external

7.

will the background colour on the section of the webpage with #page style applied to it be predominantly

a)

red

b)

green

c)

blue

8.

why does the first identifier not start with #

(a)  

9.

why does the first identifier not start with #

(a)  

10.

this is an example of a CSS (a)  

11.

how many times has that class been applied to this page?

(a)  

12.

what's the name of the external css file here?

(a)  

13.

when classes are referred to, include the .

a)

true

b)

false

14.

What will be the output?

name = "Dave"

print (name)

a)

Dave

b)

name

c)

"Dave"

d)

(name)

15.

What is a input?

a)

To plug in something

b)

A function that allows us to ask the user to enter some data

c)

Data displayed on a screen

d)

A routine

16.

A variable must have been assigned (given) a value before that value is referenced (used).

a)

True

b)

False

17.

The correct way to convert user input is:

a)

birth_year = number(input())

b)

birth_year = int(input())

c)

birth_year = (input(int))

d)

birth_year = int(input)

18.

To display the following on screen Hello World! the following command should be used:

a)

print(Hello World!)

b)

print("Hello World" + !)

c)

print("Hello World!")

d)

print"(Hello World!)"

19.

You assign a value to a variable with which symbol

a)

@

b)

==

c)

=

d)

*

20.

The code you use to receive and input from the keyboard

a)

enter()

b)

add()

c)

receive()

d)

input()

21.

Program statements are executed in sequence, one after the other...

a)

True

b)

False

22.

if you receive a NameError when you run your program it means....

a)

A variable has been assigned before it has been referred to

b)

An incorrect name has been chosen

c)

A variable has been referred to before it has been assigned

d)

A language key word has been used

23.

If the coding steps are in the incorrect order, the computer can still execute the program.

a)

True

b)

False

24.

What is the word (command) used to display output within Python?

a)

print

b)

input

c)

output

d)

display

25.

What is a variable?

a)

A box(memory location) where you store values

b)

A box(memory location) where you store multiple values

c)

Data type

d)

A static memory value

26.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
27.

Returns the remainder from division.

a)

DIV

b)

MOD

28.

A data type consisting of numbers with decimals.

a)

integer

b)

float / real

c)

string

d)

boolean

29.

A data type consisting of whole numbers.

a)

integer

b)

float / real

c)

string

d)

boolean

30.

A data type consisting of a single character.

a)

integer

b)

character

c)

string

d)

boolean

31.
Which python operator means 'less than or equal to'?
a)
>
b)
<
c)
>=
d)
<=
32.
What is another word for 'iteration'?
a)
Selection
b)
Variable Assignment
c)
Repetition
d)
Sequencing
33.
How many times will this loop run?
a)
10
b)
9
c)
4
d)
5
34.
I want to allow the program to repeatedly ask the user to enter their guess if it does not equal the answer...Which option do I use?
a)
while guess == answer:
    guess=input()
b)
while answer != guess:
guess=input()
c)
while answer =! guess:
guess=input()
d)
while guess != answer:
guess=input()
35.
I want to allow the program to repeatedly ask the user to enter their guess if it does not equal the answer...Which option do I use?
a)
while guess == answer:
    guess=input()
b)
while answer != guess:
guess=input()
c)
while answer =! guess:
guess=input()
d)
while guess != answer:
guess=input()
36.

Which word completes this sentence: "Iteration makes code more ___________"

a)

Complex

b)

Efficient

c)

Simple

d)

Straightforward

37.

A FOR loop is....

a)

A COUNT controlled loop

b)

A CONDITION controlled loop

38.

A WHILE loop is....

a)

A COUNT controlled loop

b)

A CONDITION controlled loop

39.

What will the output be for the code shown here?

a)

3,2,1,0

b)

0,1,2,3

c)

3,2,1

d)

1,2,3

40.

What would the output be for the code shown here?

a)

0,1,2,3,4,5,6,7,8,9

b)

1,2,3,4,5,6,7,8,9,10

c)

0,2,4,6,8,10

d)

0,2,4,6,8

41.

Anil is writing a "rock, scissors, paper" program. He wants the game to repeat until the user doesn't want to play anymore. What loop should he use?

a)

a FOR loop

b)

a WHILE loop

42.

Clara is writing a program that will print out the first ten numbers of a times table (chosen by the user). Should she use....

a)

a FOR loop

b)

a WHILE loop

43.

Tara has written a "Hide and Seek Simulator" - what will happen when she runs it?

a)

It will print "1,2,3,4,5,6,7,8,9,10 Coming ready or not!"

b)

The program will not run

c)

It will print "1,2,3,4,5,6,7,8,9,11 Coming ready or not!"

d)

It will print ("10 Coming ready or not!")

44.

Karnaugh Maps are used to represent and (a)   Boolean expressions

45.

When ordering binary numbers for a Karnaugh Map, which of the following is the correct sequence?​

a)

00, 01, 11, 10

b)

00, 11, 10, 01​

c)

11, 10, 01, 00

d)

00, 01, 10, 11

46.

Write out the Boolean expression for this Karnaugh Map

a)

A^¬B

b)

A^B

c)

¬A^¬B

d)

¬A^B

47.

Simplification of the Boolean expression for a logic circuit would result in a circuit that contains: 

a)

Fewer gates but more connections

b)

Fewer gates and connections

c)

Fewer gates only

d)

Fewer connections only

48.

Write out the Boolean expression for this Karnaugh Map

a)

¬A^¬B

b)

A^¬B

c)

¬A^B

d)

A^B

49.

Select all correct methods of representing a digital logic circuit

4 correct answers

a)

Truth Table

b)

Circuit Diagram

c)

Karnaugh Map

d)

Boolean Notation

e)

Mealy Machine

50.

When creating Karnaugh Maps, you break up the expression at the (a)  

51.

Select all correct rules when creating/drawing Karnaugh Maps

4 correct answers

a)

Place the variables across the top and left of the map

b)

The order of the variables does not matter

c)

Add the possible states for each variable

d)

Add 1s to match the logic of each expression

e)

You must add 0s to match the 1s

52.

Select all correct rules when using Karnaugh Maps to simplify expressions

4 correct answers

a)

Draw square or rectangular boxes around the 1s in the map

b)

Ensure boxes are only for 2n 1s

c)

Keep variables where the variable changes and discard where the variable remains the same

d)

If the consistent variable is a 0 - keep the NOT of that variable

e)

Keep variables where the variable remains the same and discard where the variable changes

53.

¬A and ̅A are both ways of representing (a)   logic

54.

V and + are both ways of representing (a)   logic

55.

^ and . are both ways of representing (a)   logic

56.

The exam will only accept expressions written in one specific notation

a)

True

b)

False

57.

Identify the correct expression for this Karnaugh Map

a)

A v ¬B

b)

A ^ ¬B

c)

A ^ B

d)

A v B

58.

Select the simplest expression for this Karnaugh Map

a)

B ^ ¬ D v A ^ ¬ B

b)

A v B ^ ¬ D

59.

Select the correct element of your expression for the column below:


C 0 0 0 0

a)

C

b)

¬ C

60.

The maximum number of variables you will likely be asked to simplify an expression for in your exam is (a)  

61.

Identify the correct expression for this Karnaugh Map

a)

A ^ ¬ B v C ^ D

b)

A ^ B v C ^ ¬ D

62.

Identify the correct simplified expression using this Karnaugh Map

a)

¬A^B v A^C

b)

A v ¬B^C

63.

Identify the correct simplified expression using this Karnaugh Map

a)

B v A^¬C

b)

A V ¬B^¬C

64.
What logic gate is this?
a)
AND
b)
OR 
c)
NOT
d)
TO
65.
What logic gate is this?
a)
AND 
b)
OR 
c)
NOT 
d)
THE
66.
What logic gate is this?
a)
AND 
b)
OR 
c)
NOT 
d)
THE
67.
What logic gate is this?
a)
OR
b)
NOT
c)
AND 
d)
THE
68.
What gate is this truth table for?
a)
AND
b)
OR
c)
NOT
d)
THE 
69.
What gate is this table for?
a)
AND
b)
OR
c)
NOT
d)
NOR
70.
What gate is this table for?
a)
AND
b)
XOR
c)
OR 
d)
NOT
71.

Which word best completes this sentence?


A combination of logic gates is known as a logic _______.

a)

circuit

b)

program

c)

array

d)

truth table

72.
A NOT gate has......
a)
Two inputs and one input
b)
One input and one output
c)
One input and two outputs
d)
Two inputs and two outputs
73.
what is a output
a)
0
b)
1
74.

What is this diagram called?

a)

Truth Table

b)

Gate Table

c)

Output Table

d)

Input Table

75.

What is the output Y of this logic cricuit if A = 1, B = 1, and C = 1

a)

0

b)

1

76.

Which logic gate matches this truth table?

a)
b)
c)
77.

Which logic gate is this?

a)

AND

b)

OR

c)

NOT

78.

What is the output of an OR gate if its inputs are 0 and 0?

a)

1

b)

0

79.

This is the truth table for which logic gate?

a)

AND

b)

OR

c)

NOT

80.

The AND and OR gate both take two inputs, while the NOT gate takes just one. True or False?

a)

True

b)

False

81.

Which is the truth table for the AND gate?

a)
b)
c)
82.

What is described as a table that shows the output of a logic gate for all possible combinations of input?

a)

Truth table

b)

Trace table

c)

Boolean table

d)

Logic table

83.

Which of these are boolean operators, implemented in the computer as logic gates?

Check all that apply

a)

NOT

b)

MOD

c)

OR

d)

AND

e)

DIV

84.

In this logic circuit, what is Q if the inputs are: A=0, B=1, C=0?

a)

0

b)

We can't say

c)

1

85.

This is the truth table for which logic gate?

a)
b)
c)
86.

A=1, B=0, C=0

What is Q?

a)

0

b)

1

87.

A=0, B=1, C=1

What is Q?

a)

0

b)

1

88.

A=0, B=1, C=1

What is Q?

a)

0

b)

1

89.

A=1, B=1, C=1

What is Q?

a)

0

b)

1

90.

A=0, B=1, C=0

What is Q?

a)

0

b)

1

91.

A=1, B=1, C=0

What is Q?

a)

0

b)

1

92.

A=1, B=1

What is Q?

a)

0

b)

1

93.

A=1, B=1, C=0, D=0

What is Q?

a)

0

b)

1

94.

Which logic gate circuit matches the Boolean Expression?

a)
b)
c)
d)
95.

A=1, B=1, C=0, D=1

What is Q?

a)

0

b)

1

96.

Write a Boolean Expression that represents this Logic Gate Circuit.

[ Notation guide:

AND = &

OR = |

NOT = -

XOR = ^

No spaces

Parenthesis () when necessary ]

(a)  

97.

Write a Boolean Expression that represents this Logic Gate Circuit.

[ Notation guide:

AND = &

OR = |

NOT = -

XOR = ^

No spaces

Parenthesis () when necessary ]

(a)  

98.

Which form of abstraction involves grouping together similarities within a problem to identify what kind of problem it is?

a)

Abstraction by generalisation

b)

Abstraction by value

c)

Abstraction by size

d)

Abstraction by date

99.

What is meant by data abstraction?

a)

A form of abstraction in which details about how data is being stored are hidden.

b)

A form of abstraction in which details about how data is being stored are shown.

c)

A form of abstraction in which details about how information is being stored are hidden.

d)

A form of abstraction in which details about how information is being stored are hidden.

100.
What is representational abstraction?
a)
A technique in which excessive details are removed to arrive at a representation of a problem that consists of only the key features.
b)
A technique in which random details are removed to arrive at a representation of a problem that consists of only the key features.
c)
A technique in which excessive details are removed to arrive at a representation of a problem that consists of no key features.
d)
A technique in which random details are removed to arrive at a representation of a problem that consists of no key features.
101.

What kind of problems make use of multiple levels of abstraction?

a)

Large, complex problems

b)

Small, complex problems

c)

Large, simple problems

d)

Small, simple problems

102.

What is the difference between abstraction and reality?

a)

Abstraction is a simplified representation of reality

b)

Attributes are an abstraction for the characteristics of an object.

c)

Methods are an abstraction for the actions a real-world object is able to perform.

d)

Easier to remember syntax in high-level languages as it is closer to natural language

103.

Thinking in a sequence is...

a)

Thinking Abstractly

b)

Thinking Logically

c)

Thinking Procedurally

d)

Thinking Concurrently

104.

Which of these is classed as a sub routine?

a)

Function

b)

Abstraction

c)

Model

d)

Precondition

105.

Abstraction is...

a)

The removal of unnecessary data

b)

Adding data to a problem

c)

The removal of important data

d)

I don't know

106.

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

107.

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

108.

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

109.

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

110.

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

a)

True

b)

False

111.

You could use abstraction to replace specific objects with simple shapes

a)

True

b)

False

112.

Decomposition allows each task to become _______

a)

More manageable

b)

Easier

c)

Quicker