Font size
WorksheetsPaper 2
Total questions: 82
Worksheet time: 47mins
How many bits are used in ASCII
16
1
7
8
A character set is...
What language can be used in a computer system
The fonts that a computer has installed
The possible characters that can be represented by a computer system
HOw many Bytes are used in Unicode
8
16
1
2
ASCII can represent more characters than Unicode
TRUE
FALSE
print("Hello world!\nHello world!")
Hello world!
print("Hello world!" * 2)
4 5 9 6 2 7
4 5 6 2 7 9
4 5 2 6 7 9
1 4 2 9 3 8 5
What does the list look like after one pass of the bubble sort algorithm.
Which of these algorithms searches for something by first looking in the middle of a list?
Bubble sort
Merge sort
Linear search
Binary search
Which of these algorithms is usually more efficient (takes fewer steps) in sorting a list of items?
Bubble sort
Merge sort
What algorithm does this image represent?
Bubble sort
Merge sort
Linear search
Binary search
Which algorithm does this image represent?
Linear search
Binary search
Bubble sort
Merge sort
Which logic gate is represented by this truth table?
A programmer uses comments in their code to ...
Explain the purpose of their code
Make it look pretty
Make the program run quicker
Stop the program from getting bugs
A programmer can use extra whitespace to help ...
Make the code more readable
Make the code less readable
Make the code run quicker
Make the code have fewer bugs
Indentation is used to make the code difficult to read
TRUE
FALSE
Which logic gate is represented by this truth table?
Which logic gate represented by this symbol?
AND
OR
XOR
NAND
A programmer is deciding what to name a list that stores players names. Which is the most suitable list name to use
z = [ " Stewie " , " Peter " , " Meg " ]
a_list = [ " Stewie " , " Peter " , " Meg " ]
a_list_of_names_from_a_tv_program = [ " Stewie " , " Peter " , " Meg " ]
names = [ " Stewie " , " Peter " , " Meg " ]
Which logic gate represented by this symbol?
OR
NOR
XOR
NOT
Code that is well maintained with comments / indentations / procedures and extra whitespace means that the program is more ...
Robust
Complicated
Quicker
A programmer is deciding what to name a variable that stores someones full name. Which is the most suitable variable name to use
x = input ( "Enter full name" )
jeff = input ( "Enter full name" )
full_name = input ( "Enter full name" )
full name = input ( "Enter full name" )
George, Jane, Miranda, Ahmed, Sophie, Bernie, Keith.
They are sorted using Insertion sort. What is the first name to be moved?
Which logic gate is represented by this truth table?
You do not get access to the source code with compiled code.
True
False
What is machine code?
Instructions and data in binary
Serial number of the CPU
Instructions and data in human readable form
Instructions and data in assembly code mnemonics
What is assembly code?
Another name for machine code
High-level programming language
Low-level programming language
Type of object code Type of object code
Why were high-level languages developed?
Low-level language was too easy
They were created by accident
Low-level languages are hard to remember and use
Computers were getting too advanced
Why do we need translators?
Computers only understand program's in assembly code.
Computers only understand program's in high-level language.
Computers only understand Norwegian.
Computers only understand program's in machine language.
It translates the whole program into machine code before it runs.
Assembler
Compiler
Interpreter
Linker
What is the problem writing machine code?
Quick to learn
Easy to debug
Easy to read
Hard to remember the binary codes Hard to remember the binary codes
What does a translator do?
Swaps between different high-level languages
Swaps between different machine code types
Converts pseudocode to machine code
Converts programs to machine code
