Font size
WorksheetsCrash Course Computer Science
Total questions: 140
Worksheet time: 1hrs 11mins
Which of the following are internal components of a computer system?
Processor (or CPU)
Main Memory (RAM)
I/O Contollers
Buses
Keyboard
Which of these are a type of bus that connects internal components?
Data bus
Address bus
Control bus
Venga bus
Which special purpose register is missing from this diagram?
Memory Address Register
Memory Data Register
Central Processing Register
Fetch-Decode-Execute Register
Which special purpose register hold the current instruction that is being carried out?
Current Instruction Register
Memory Buffer Register
Memory Data Register
Status Register
Which special purpose register holds the address of the next instruction to be carried out?
Program Counter
Memory Address Register
Memory Data Register
Current Instruction Register
What is a register?
Memory location that is internal to the processor
Single bit memory circuit
Set of parallel wires inside a processor
Single unit of memory inside the Main Memory (RAM)
Which bus is labelled with (a)?
Address Bus
Data Bus
Control Bus
Which bus is labelled with (b)?
Address Bus
Data Bus
Control Bus
Which bus is labelled with (c)?
Address Bus
Data Bus
Control Bus
Which computer system architecture uses separate memory and buses for data and for instructions?
Harvard
Von Neumann
Stanford
Cambridge
Type of memory that is read only and non-volatile
ROM
RAM
Virtual
Cache
Maximum number of addressable locations in an address bus with 8 lines?
256
64
8
800
Each stage in pipelining should be completed within ___________ cycle.
a) 1
b) 2
c) 3
d) 4
Which of the following is an advantage of pipelining?
A. Instruction throughput increases.
B. Faster ALU can be designed when pipelining is used.
C. Pipelining increases the overall performance of the CPU.
D. All of the above
20. MAR stands for ___________
a) Memory address register
b) Main address register
c) Main accessible register
d) Memory accessible register
Which of the following statements describes pipelining?
A small amount of memory located on the CPU.
Using multiple CPU cores to process multiple instructions simultaneously.
Allowing the CPU to switch between two threads while data is being fetched.
Using different parts of the CPU to perform different stages of multiple instructions simultaneously.
CISC code can better utilise pipe-lining as the time needed for each operation can be predicted.
TRUE
FALSE
In a five stage pipelining , How many clock cycles are required to run 7 instruction.
9
10
11
12
"A number of devices that communicate with each other without the need of the internet"
"A computer that does not communicate with other devices"
The output of an AND gate will be 1 if
At least one of the inputs is at 1.
At most one of the inputs is at 0.
An even number of inputs must be at 1.
None of these.
The output of a two input AND gate is one only when_______
its either input is one
its both inputs are one
its either input is zero
its both inputs are zero
The output logic level of an OR gate is one________
if both inputs are zero
only if both inputs are one
if either or both inputs are one
if the inputs are neither zero nor one
The truth table of a logic gate is a table________
giving only the true numbers
rejecting only the wrong numbers
giving the relation-between the input and output variables of a logic gate
which gives all the possible input logic levels and the corresponding resultant logic levels in the output.
Less work for the compiler to carry out
RISC
CISC
Every operation takes place in just one clock cycle
RISC
CISC
Longer code requiring more RAM to execute
RISC
CISC
Further away from high level languages
RISC
CISC
More complex hardware
RISC
CISC
Compiler has to do more work
RISC
CISC
Reduced Instruction Set Computer
RISC
CISC
Some instructions take multiple clock cycles to complete
RISC
CISC
Smaller code requiring less RAM to execute
RISC
CISC
Complex Instruction Set Computer
RISC
CISC
[1, 4, 7, 8, 5, 2, 9]
[1, 2, 4, 5, 7, 8, 9]
The following array is created in a program: " DIREWOLVES = ["Nymeria","Shaggy Dog","Ghost","Lady","Grey Wind","Summer"]
What is the item stored in DIREWOLVES [2] ?
"Shaggy Dog"
"Ghost"
Which of the following facts about arrays is TRUE?
Arrays can contain items of different data types
Arrays can only contain items of a single data type
Lists and arrays are the same thing
An arrays is a type of variable
A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames
What data is held in stored in CUSTOMER (3,1)?
1004
Smith
Amrit
1003
A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames
Where in the array is the data item "Kahn" stored?
(2,3)
(4,1)
(2,2)
(3,3)
Which of the following statements about ARRAYS are true?
Arrays are more useful than individual variables for storing related data items
Arrays are less wasteful that lists in terms of memory
It is possible to iterate through the items in an array
The memory used to store the data in an array, is allocated when the array is set up
What term is used to describe an individual position of an element in an array?
Index
Pointer
Variable
List
What is printed by the following lines of code?
eggs
bread
2
sugar
25
25
undefined
20
Which of the following is an advantage of using local variables?
They allow the variable to be used throughout the whole program
They allow variable identifiers to be reused each time
They are easier to program than global variables
A wider range of data types can be used
What term is used to describe data passed into/out of a program?
Variable
Loop
Constant
Parameter
Leo wants to create a subroutine that will roll a dice. Which syntax is correct?
def dice roll ():
def diceroll ()
def diceroll ():
def diceroll []:
What would the output be from the program shown here? (assuming that the user enters "John" and "Smith"
John
Smith
John Smith
Error
A function with 2 integer parameters could start with which definition?
funct addNumbers(num1, num2):
def addNumbers(num1, num2):
def 2Numbers(num1, num2):
FUNCTION addNumbers(x, y):
What data type will be cast on line one?
Character
Integer
Float
Boolean
How many times does the loop work?
10
15
20
25
What process has been used on line 24?
Selection
Iteration
Sequencing
Concatenation
Which Mathematical Operator has been used in the program?
Addition
Modulous
Integer division
Exponential
Which of the following techniques has not been used to help make the code more user friendly?
Indents
Naming Conventions
Comments
White Space
Is the sub routine a procedure or a function?
Procedure
Function
Does the Procedure have any arguments?
Yes
No
Common building blocks used in designing a program is called a/an
Construction
Programming Construct
Flowchart
Which programming contruct, does the attached image represent?
Sequence
Selection
Iteration/Loop
Which device features the quickest file access?
Hard drive
SSD
USB flash drive
DVD
Which device features the cheapest cost per gigabyte?
Hard drive
SSD
USB flash drive
DVD
Which device is the most portable?
Hard drive
SSD
USB flash drive
DVD
Which device is has the largest storage capacity?
Hard drive
SSD
USB flash drive
DVD
Select the best definition of defragmentation
Defragmentation moves files around the hard drive
Defragmentation can speed up accessing files
Defragmentation re-arranges parts of files to be together on the disk
Defragmentation is something you should do on your computer every week
Virtual memory is located:
In the cloud
On the hard drive
In the RAM
In the CPU
Increasing RAM capacity will improve the performance of
All apps, all the time
Only the most Memory intensive apps
The system overall when a lot of apps are running
Nothing
Select the correct order from slowest data access to fastest
Cache > Hard drive > RAM
RAM > Cache > Hard drive
Hard drive > Cache > RAM
Hard drive > RAM > Cache
Which of these means the most CPU cores?
Dual-core
Hexa-core
Octa-core
Quad-core
What type of compression allows you to reconstruct the original data?
Lossless compression
Lossy compression
What type of compression does not allow you to reconstruct the original data?
Lossless compression
Lossy compression
3.5MB is how many kB?
350
3500
3500000
35000
Which of the following would not be suitable for Lossy Compression?
Images
Music
Videos
Text
Compression in general makes it _______ to send, upload and stream data
Quicker
Slower
Lossless compression permanently deletes the data
True
False
Lossy compression would be suitable for text files
True
False
Compression looks for _______ data
Unnecessary
Repeated
Select the advantages for lossy compression
Makes the file much smaller
Will send much quicker
A very simple algorithm
The quality will not be affected much
Select the advantages for lossless compression
Makes the file much smaller
Will send quicker
A very simple algorithm
The quality will not be affected much
ASCII is an encoding system for text. What does ASCII stand for?
American Standard Code for Information Interchange
All System Code In Internet
American Simple Code for Interesting Information
Alpha Super Code Input Information
How many bits was used to encode the original ASCII character set?
7
8
16
4
The Extended ASCII system uses 8 bits per character instead of 7 bits. How many different characters can be represented in 8 bits?
1024
8
128
256
If 01000001 (65) is the ASCII code for the letter 'A' what is the binary code for 'E'?
01000011
01000101
01000110
01000111
Unicode can represent emojis
True
False
The DoD model (also called the TCP/IP stack) has four layers. Which layer of the DoD model is equivalent to the Network layer of the OSI model?
Application
Host-to-Host
Internet
Network Access
Which of the TCP/IP model layers is responsible for breaking down the message into packets?
Network
Application
Transport
Internet
Which is the first layer of the TCP/IP model?
Network
Application
Transport
Internet
