Font size
Worksheetsrevision
Total questions: 112
Worksheet time: 59mins
Which html tag defines a numbered list
(a)
html tag to add a picture
(a)
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)
CSS can be Embedded, inline and (a)
is this CSS
inline
internal
external
is this CSS
inline
internal
external
will the background colour on the section of the webpage with #page style applied to it be predominantly
red
green
blue
why does the first identifier not start with #
(a)
why does the first identifier not start with #
(a)
this is an example of a CSS (a)
how many times has that class been applied to this page?
(a)
what's the name of the external css file here?
(a)
when classes are referred to, include the .
true
false
What will be the output?
name = "Dave"
print (name)
Dave
name
"Dave"
(name)
What is a input?
To plug in something
A function that allows us to ask the user to enter some data
Data displayed on a screen
A routine
A variable must have been assigned (given) a value before that value is referenced (used).
True
False
The correct way to convert user input is:
birth_year = number(input())
birth_year = int(input())
birth_year = (input(int))
birth_year = int(input)
To display the following on screen Hello World! the following command should be used:
print(Hello World!)
print("Hello World" + !)
print("Hello World!")
print"(Hello World!)"
You assign a value to a variable with which symbol
@
==
=
*
The code you use to receive and input from the keyboard
enter()
add()
receive()
input()
Program statements are executed in sequence, one after the other...
True
False
if you receive a NameError when you run your program it means....
A variable has been assigned before it has been referred to
An incorrect name has been chosen
A variable has been referred to before it has been assigned
A language key word has been used
If the coding steps are in the incorrect order, the computer can still execute the program.
True
False
What is the word (command) used to display output within Python?
input
output
display
What is a variable?
A box(memory location) where you store values
A box(memory location) where you store multiple values
Data type
A static memory value
Returns the remainder from division.
DIV
MOD
A data type consisting of numbers with decimals.
integer
float / real
string
boolean
A data type consisting of whole numbers.
integer
float / real
string
boolean
A data type consisting of a single character.
integer
character
string
boolean
guess=input()
guess=input()
guess=input()
guess=input()
guess=input()
guess=input()
guess=input()
guess=input()
Which word completes this sentence: "Iteration makes code more ___________"
Complex
Efficient
Simple
Straightforward
A FOR loop is....
A COUNT controlled loop
A CONDITION controlled loop
A WHILE loop is....
A COUNT controlled loop
A CONDITION controlled loop
What will the output be for the code shown here?
3,2,1,0
0,1,2,3
3,2,1
1,2,3
What would the output be for the code shown here?
0,1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9,10
0,2,4,6,8,10
0,2,4,6,8
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 FOR loop
a WHILE loop
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 FOR loop
a WHILE loop
Tara has written a "Hide and Seek Simulator" - what will happen when she runs it?
It will print "1,2,3,4,5,6,7,8,9,10 Coming ready or not!"
The program will not run
It will print "1,2,3,4,5,6,7,8,9,11 Coming ready or not!"
It will print ("10 Coming ready or not!")
Karnaugh Maps are used to represent and (a) Boolean expressions
When ordering binary numbers for a Karnaugh Map, which of the following is the correct sequence?
00, 01, 11, 10
00, 11, 10, 01
11, 10, 01, 00
00, 01, 10, 11
Write out the Boolean expression for this Karnaugh Map
A^¬B
A^B
¬A^¬B
¬A^B
Simplification of the Boolean expression for a logic circuit would result in a circuit that contains:
Fewer gates but more connections
Fewer gates and connections
Fewer gates only
Fewer connections only
Write out the Boolean expression for this Karnaugh Map
¬A^¬B
A^¬B
¬A^B
A^B
Select all correct methods of representing a digital logic circuit
4 correct answers
Truth Table
Circuit Diagram
Karnaugh Map
Boolean Notation
Mealy Machine
When creating Karnaugh Maps, you break up the expression at the (a)
Select all correct rules when creating/drawing Karnaugh Maps
4 correct answers
Place the variables across the top and left of the map
The order of the variables does not matter
Add the possible states for each variable
Add 1s to match the logic of each expression
You must add 0s to match the 1s
Select all correct rules when using Karnaugh Maps to simplify expressions
4 correct answers
Draw square or rectangular boxes around the 1s in the map
Ensure boxes are only for 2n 1s
Keep variables where the variable changes and discard where the variable remains the same
If the consistent variable is a 0 - keep the NOT of that variable
Keep variables where the variable remains the same and discard where the variable changes
¬A and ̅A are both ways of representing (a) logic
V and + are both ways of representing (a) logic
^ and . are both ways of representing (a) logic
The exam will only accept expressions written in one specific notation
True
False
Identify the correct expression for this Karnaugh Map
A v ¬B
A ^ ¬B
A ^ B
A v B
Select the simplest expression for this Karnaugh Map
B ^ ¬ D v A ^ ¬ B
A v B ^ ¬ D
Select the correct element of your expression for the column below:
C 0 0 0 0
C
¬ C
The maximum number of variables you will likely be asked to simplify an expression for in your exam is (a)
Identify the correct expression for this Karnaugh Map
A ^ ¬ B v C ^ D
A ^ B v C ^ ¬ D
Identify the correct simplified expression using this Karnaugh Map
¬A^B v A^C
A v ¬B^C
Identify the correct simplified expression using this Karnaugh Map
B v A^¬C
A V ¬B^¬C
Which word best completes this sentence?
A combination of logic gates is known as a logic _______.
circuit
program
array
truth table
What is this diagram called?
Truth Table
Gate Table
Output Table
Input Table
What is the output Y of this logic cricuit if A = 1, B = 1, and C = 1
0
1
Which logic gate matches this truth table?
Which logic gate is this?
AND
OR
NOT
What is the output of an OR gate if its inputs are 0 and 0?
1
0
This is the truth table for which logic gate?
AND
OR
NOT
The AND and OR gate both take two inputs, while the NOT gate takes just one. True or False?
True
False
Which is the truth table for the AND gate?
What is described as a table that shows the output of a logic gate for all possible combinations of input?
Truth table
Trace table
Boolean table
Logic table
Which of these are boolean operators, implemented in the computer as logic gates?
Check all that apply
NOT
MOD
OR
AND
DIV
In this logic circuit, what is Q if the inputs are: A=0, B=1, C=0?
0
We can't say
1
This is the truth table for which logic gate?
A=1, B=0, C=0
What is Q?
0
1
A=0, B=1, C=1
What is Q?
0
1
A=0, B=1, C=1
What is Q?
0
1
A=1, B=1, C=1
What is Q?
0
1
A=0, B=1, C=0
What is Q?
0
1
A=1, B=1, C=0
What is Q?
0
1
A=1, B=1
What is Q?
0
1
A=1, B=1, C=0, D=0
What is Q?
0
1
Which logic gate circuit matches the Boolean Expression?
A=1, B=1, C=0, D=1
What is Q?
0
1
Write a Boolean Expression that represents this Logic Gate Circuit.
[ Notation guide:
AND = &
OR = |
NOT = -
XOR = ^
No spaces
Parenthesis () when necessary ]
(a)
Write a Boolean Expression that represents this Logic Gate Circuit.
[ Notation guide:
AND = &
OR = |
NOT = -
XOR = ^
No spaces
Parenthesis () when necessary ]
(a)
Which form of abstraction involves grouping together similarities within a problem to identify what kind of problem it is?
Abstraction by generalisation
Abstraction by value
Abstraction by size
Abstraction by date
What is meant by data abstraction?
A form of abstraction in which details about how data is being stored are hidden.
A form of abstraction in which details about how data is being stored are shown.
A form of abstraction in which details about how information is being stored are hidden.
A form of abstraction in which details about how information is being stored are hidden.
What kind of problems make use of multiple levels of abstraction?
Large, complex problems
Small, complex problems
Large, simple problems
Small, simple problems
What is the difference between abstraction and reality?
Abstraction is a simplified representation of reality
Attributes are an abstraction for the characteristics of an object.
Methods are an abstraction for the actions a real-world object is able to perform.
Easier to remember syntax in high-level languages as it is closer to natural language
Thinking in a sequence is...
Thinking Abstractly
Thinking Logically
Thinking Procedurally
Thinking Concurrently
Which of these is classed as a sub routine?
Function
Abstraction
Model
Precondition
Abstraction is...
The removal of unnecessary data
Adding data to a problem
The removal of important data
I don't know
Which of the following is not done by abstraction?
Identifies essential details
Disregards non-essential information
Breaks the problem down into smaller tasks
Which of the following is not done by decomposition?
Allows multiple people to work on the problem together
Disregards non-essential information
Breaks the problem down into smaller tasks
When drawing a dog, which of the following characteristics is non-essential?
Dogs have 4 paws
Dogs have fur
Dogs have brown fur
When designing a building that must be accessible for wheelchairs, which of the following characteristics is non-essential?
Number of doors
Number of walls
Number of wall paintings
One advantage of abstraction is that it means no mistakes can be made
True
False
You could use abstraction to replace specific objects with simple shapes
True
False
Decomposition allows each task to become _______
More manageable
Easier
Quicker
