WorksheetsAS Revision Comp Sci
Total questions: 71
Worksheet time: 38mins
Name
Class
Date
1.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
2.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
3.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
4.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
5.
The content of the web (such as your pictures, text, links) will show up here.
a)
Head
b)
Body
c)
Style
d)
Folder
6.
Which of the following is the largest heading?
a)
H2
b)
H3
c)
H4
d)
H6
7.
The following tag will show a bulleted list
a)
<ul>
b)
<ol>
c)
<li>
d)
<list>
8.
Which tag defines a numbered list?
a)
OL
b)
UL
c)
LI
d)
NL
9.
What is the correct syntax for inserting an image?
a)
<image source="untitled.jpg"/>
b)
<img src="untitled.jpg"/>
c)
<src img="untitled.jpg"/>
d)
<img scr="untitled.jpg"/>
10.
Defines a division or a section in an HTML document. Used to group block-elements to format them with CSS
a)
<div>
b)
<span>
c)
<caption>
d)
<group>
11.
to make a comment in HTML you use
a)
<!-- -->
b)
//
c)
/*
d)
#
12.
Which allows you to change the font?
a)
font-type
b)
font
c)
font-family
d)
text-font
13.
What tag is used for CSS?
a)
<style>
b)
<css>
c)
<body>
d)
<script>
14.
How do you center text?
a)
text-align: true;
b)
text-align: false;
c)
text-align: center;
d)
text: align center;
15.
What will happen to the text in blue? <p>He named his car <i>The lightning</i>, because it was very fast.</p>
a)
the content will be displayed in italic
b)
the content will display an image
c)
the content defines text inserted into a document
16.
What is will the highlighted tag do? <p>My favourite colour is blue<br>I support Southend United.
</p>
</p>
a)
it will make the text bold
b)
it will place the text on another line
17.
Which code will make your background red?
a)
<body style=background-color:red;>
b)
<body style="background-color:yellow;">
c)
<body style="background-color:red;">
d)
<body colormybg="background-color:red;">
18.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
19.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
20.
Why won't the following anchor tag work? <ahref=https://www.google.com/>click here</a>
a)
The link is incorrect. it should be ref, not href
b)
The URL is missing quotation marks
c)
There is no anchor tag in the code
d)
The href is missing a closing tag
21.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
22.
A string;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
23.
A function;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
24.
An if/else statement;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
25.
In JavaScript, you should include a semi-colon at the end of each statement.
a)
yes
b)
no
26.
JavaScript code is embedded in HTML documents between <script> and </script> tags.
a)
True
b)
False
27.
What is the name of the chip inside the computer that processes information?
a)
Random Access Memory
b)
Central Processing Unit
c)
Read Only Memory
d)
Motherboard
28.
What are the chips inside a computer that temporarily hold all the programs and data currently being used?
a)
Random Access Memory (RAM)
b)
Read Only Memory (ROM)
c)
Hard Disk
d)
Hard Drive
29.
What enables different parts of the CPU to work on different tasks at the same time
a)
Hyper Threading
b)
Multiplier
c)
Cores
d)
Bus Speed
30.
The main circuit board in a computer is called the ________.
a)
RAM
b)
dongle
c)
motherboard
d)
power supply unit
31.
The purpose of the GUI is to
a)
hide the complexities of the machine from the user
b)
Guide the user
c)
to make the screen look nice
32.
Which network has the strongest security?
a)
LAN
b)
WAN
33.
Iteration is
a)
Used in programming to select which statements will be executed next based on a condition
b)
Two or more statements following one after the other
c)
Performing a loop in a program to repeat a number of statements
d)
Finding errors in a piece of code
34.
What does Protocol mean?
a)
Security
b)
Rules
c)
Orders
d)
Services
35.
Which protocol would you use to transfer files?
a)
FTP
b)
SMTP
c)
POP3
d)
HTTP
36.
Write 45 as a binary number
a)
00101111
b)
00011101
c)
00101011
d)
00101101
37.
Write the number -78 in 8-bit two's complement notation
a)
10110010
b)
00110010
c)
11001110
d)
01001110
38.
Explain fully why cache memory enhances the execution of a piece of software
a)
Cache is memory close to the processor holding frequently used instructions
b)
Cache is fast access memory close to the processor holding frequently used instructions
c)
Cache is fast access memory close to the processor
d)
Cache holds frequently used instructions
39.
Which law is designed to control the use of personal data?
a)
Data Protection Act
b)
Computer Misuse Act
c)
Copyright, Design and Patents Act
d)
RIPA
40.
What is the scope of a global variable?
a)
the entire program
b)
the procedure in which it is declared
c)
the entire world
d)
the range of values it can hold
41.
To break a hard problem up into smaller, easier ones.
a)
Decompose
b)
Pattern
c)
Abstraction
d)
Algorithm
42.
Translate Assembly Language code into Machine Code
a)
Assembler
b)
Compiler
c)
Translator
d)
Interpreter
43.
Translate entire source code all in one go into Machine Code
a)
Compiler
b)
Assembler
c)
Translator
d)
Interpreter
44.
Uses mnemonics
a)
Interpreter
b)
Translator
c)
Compiler
d)
Assembly Langauge
45.
Which register within the CPU contains the intermediate value of a calculation?
a)
Accumulator
b)
Instruction Register
c)
Program Counter
d)
ALU
46.
What is the purpose of the program counter?
a)
Holds the current instruction to be executed, having been fetched from memory. Contents are transferred to control unit for decoding.
b)
Stores the memory address of the next instruction. Incremented by one after an instruction is fetched.
47.
What is the purpose of the CPU's registers?
a)
These are used to permanently store data and instructions
b)
These are used to temporarily store data and instructions.
c)
They are used to keep track of the CPU speed.
d)
They are used to check the CPU's processing power
48.
Which factors could affect the performance of the CPU?
a)
The physical size of the CPU.
b)
The clock speed, number of cores and cache size
c)
How heavy the CPU is.
d)
How many fans the CPU has
49.
What does the BRA loop do in LMC?
a)
This will keep looping the program until you stop it.
b)
This will loop the program until a certain condition is met.
c)
This will loop the program until the accumulator is 0.
d)
This will loop the program until the accumulator is negative
50.
Which of these registers coordinates all the activities taking place in the CPU?
a)
Arithmetic and Logic Unit
b)
Clock
c)
Control Unit
d)
Cache
51.
Which of these statements is true about a Von Neumann architecture?
a)
Programs and instructions are stored separately
b)
Programs and instructions are stored together
52.
what is on a DNS server
a)
a lookup table for every website name, giving the relevant ip address
b)
a list of websites that are blocked
c)
a list of restricted websites
53.
Suppose we have the following sorted list of 10 items.
3,5,6,8,11,12,14,15,17,28
Which is the correct sequence of comparisons when finding the 8 using a binary search?
3,5,6,8,11,12,14,15,17,28
Which is the correct sequence of comparisons when finding the 8 using a binary search?
a)
12,6,8,
b)
11,5,6,8
c)
3,5,6,8
d)
11,6,5,8
54.
Which is the correct expression for the logic circuit?
a)
P = (A ∧ B) v C
b)
P = (A ∧ B) v C
c)
P = A ∧ B v C
d)
P = A ∧ (B v C)
55.
What is the aswer to this binary addition?
00110011 + 01000110
00110011 + 01000110
a)
11001110
b)
10000110
c)
01111001
d)
00011100
56.
Convert 11111100 to hex?
a)
CF
b)
FF
c)
FC
d)
CC
57.
What is a disadvantage of a client-server network?
a)
Cheap to set up
b)
If the server goes down, the network goes down
c)
Each client manages its own security
d)
The network can be managed centrally
58.
In a JavaScript, prompt()
a)
displays a prompt dialog box
b)
displays an alert dialog box
c)
displays a single line comment
d)
displays a JavaScript statemen
59.
In a JavaScript, a semicolon(;) is used to
a)
define a scripting language
b)
display an alert dialog box
c)
add a single line comment
d)
end a JavaScript statement
60.
In a JavaScript, a // is used to
a)
define the scripting language
b)
display an alert dialog box.
c)
add a single line comment
d)
end a JavaScript statement
61.
Clock Speed means...
a)
How many cycles it does in a second
b)
How many cycles it does in a minute
c)
How many cycles it does in a hour
d)
How many cycles it does in a day
62.
Convert 196 to binary
a)
11000110
b)
11100100
c)
11000100
d)
11010100
63.
Which device would you use:
If you needed to store music and/or films
If you needed to store music and/or films
a)
Optical Disk
b)
Hard Drive
c)
Flash Memory
d)
Magnetic Tape
64.
Which word means:
How likely the device is to break
How likely the device is to break
a)
Durability
b)
Capacity
c)
Portability
65.
What is the missing value ? from this truth table for OR
a)
1
b)
0
66.
A rule to make sure that only reasonable and sensible data is entered.
a)
Filter
b)
Query
c)
Validation
d)
Verification
67.
A unique identifying field.
a)
Primary Key
b)
Integer
c)
Verification
d)
Boolean
68.
Which of these is not a type of validation?
a)
Proof Reading
b)
Range
c)
Limit
d)
Presence
69.
What is a database?
a)
A piece of software to do calculations
b)
A device to load information onto the computer.
c)
A structured collection of records
d)
A calculator
70.
Which law allows employers to monitor electronic communications?
a)
Data Protection Act
b)
Computer Misuse Act
c)
Copyright, Design and Patents Act
d)
RIPA
71.
Which type of database is this?
a)
Flat File
b)
Relational
100 %
