Font size
WorksheetsHigher Computing Prelim Revision Jan 20
Total questions: 103
Worksheet time: 56mins
Which of these would be the most efficient data structure(s) to use?
A foreign key
is a primary key in its own table and used in a second table to create a link between them
is a field in both tables used to create a link between them
is a primary key used in two tables to create a link between them
is where the primary key is made up of two or more fields
A rentals table is designed as shown
RENTAL (CustomerID*, ToolID*, Date, Insurance)
What type of key is used in this table?
Primary
Foreign
Compound
Surrogate
Select all the ways that a program can be evaluated
Fitness for Purpose
Efficiency of Code
Robustness
Readability
Which data type would you say in the SQA exam is used to hold the number 4.97
Boolean
Integer
Real
Single
Which component carries data to and from Main Memory
Control Unit
Registers
Address Bus
Data Bus
Which component is temporary storage inside the processor?
Control Unit
Registers
ALU
RAM
Floating point representation stores real numbers in binary using...
mantissa and exponent
vector and exponent
mantissa and resolution
vector and resolution
Select the correct SQL statement to add a new record for Mr Alford to the Teacher table
SELECT * FROM Teacher WHERE Title="Mr" AND Surname="Alford";
INSERT INTO Teacher (Title, Surname) VALUES ("Mr","Alford");
INSERT (Title, Surname) VALUES ("Mr","Alford") INTO Teacher;
INSERT (Title, Surname) VALUES ("Mr","Alford") FROM Teacher;
Software that is "fit for purpose" is efficient and easily maintained.
True
False
Which term is used to describe the fact that software should be able to be used by ALL types of users?
Accessibility
Useability
Optimisation
Which term is used to describe software that does not crash easily with unexpected input?
Fit for purpose
Reliable
Robust
Efficient
What type of interface would only suit an expert user?
Menu Driven
GUI - Graphical User Interface
WIMP - Windows Icon Menu Pointer
Command Driven
Wireframes are used to design user interfaces to
determine the layout of the screen
be a visual guide used to communicate the specifications to the user
determine the content layout, navigation and interface requirements
provide a visual layout of the page content
select * from empinfo where first = 'Eric';search all from empinfo where first = 'Eric';select * from employee where first = 'Eric';select * from empinfo where first = 'Eric';Which best explains the differences between a flat file and a relational database?
Flat files only have one table
Flat files only have one table and are prone to data inconsistencies unlike relational databases
Relational databases have multiple tables to avoid data anomalies which are commonplace in flat file databases
Validation of data is conducted to ensure
That any data entered is correct
That any data entered is accurate
That any data entered is acceptable and sensible
That any data entered is accurate and sensible
A foreign key
is a primary key in its own table and used in a second table to create a link between them
is a field in both tables used to create a link between them
is a primary key used in two tables to create a link between them
is where the primary key is made up of two or more fields
Change the border size of the body or image
border-style
border-width
border-color
width
sets the element to one side of the page
margin
width
float
height
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
What does a class do?
adds color to words
adds style to specific elements
adds style to a whole page
adds a lot more work
Select the rule set to make all the text in your web page blue and centered.
p {
color: blue;
}
body {
text-align: left;
color: blue;
}
p {
text-align: center;
color: blue;
}
body {
text-align: center;
color: blue;
}
Which selector will change the font of the text?
font-size
text-align
font-famiy
text-decoration
placed within his webpage?
Which statement allows us to add a record to a table?
Add To
Update To
Add Into
Insert Into
Which word is missing from the following SQL statement?
Select * table_name
With
Where
From
And
What is the correct order of clauses in a SQL statement?
SELECT, FROM, ORDER BY, WHERE
SELECT, FROM, WHERE, ORDER BY
SELECT, WHERE, FROM, ORDER BY
WHERE, FROM, SELECT, ORDER BY
You are required to update the phone number for only the DesignerID "SMI01" in the "Designer" table. Which of these would successfully do that?
UPDATE Designer SET PhoneNo = '01224123456'
UPDATE Designer (PhoneNo) VALUES ('01224123456')
UPDATE Designer SET PhoneNo = '01224123456' WHERE DesignerID = 'SMI01'
UPDATE PhoneNo = '01224123456' FROM Designer WHERE DesignerID = 'SMI01'
How would you display Chairs in the Items table that have a Price greater than £50.
SELECT * FROM Items WHERE Type = 'Chair' AND Price > 50
SELECT * FROM Items WHERE Type = 'Chair' OR Price < 100
SELECT * FROM Iterms WHERE Type = 'Chair' AND Price >= 50
SELECT * FROM Items WHERE Price > 50
Which SQL statement would add a record to the database?
INSERT INTO Designer VALUES ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456')
INSERT VALUES ('SMI01', 'M Smith', 'mail@msmith.com', 01224123456') INTO Designer
INSERT ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456') INTO Designer
INSERT Designer INTO VALUES (''SMI01', 'M Smith', 'mail@msmith.com', '01224123456')
Match the following SQL term with a description - ORDER BY
The fields to display
The field and order used to sort the results
The table used in the query
The criteria that must be met
Identify the guidelines for group functions and the GROUP BY clause. (choose 2 answers)
You cannot use a column alias in the GROUP BY clause.
The GROUP BY column must be in the SELECT clause.
By using a WHERE clause, you can exclude rows before dividing them into groups.
The GROUP BY clause groups rows and ensures order of the result set.
Using a subquery is equivalent to performing two sequential queries and using the result of the first query as the search values in the second query.
True
False
In the Fetch- Decode - Execute cycle, it doesn’t matter which order things take place
True
False
Which Register is the first to be accessed during the Fetch- Decode- Execute cycle?
PC
MAR
MDR
CIR
What Do the letters PC stand for in the PC Register
Program Counter
Process Counter
Programmer Counter
Counter Strike
What does the MAR stand for?
Memory Address Register
Memory Addressed Register
Memory Access Register
Memory Aardvark Register
The Fetch-Decode-Execute cycle runs continuously when the computer is turned on.
True
False
When something is loaded from memory, where is it first stored?
The CIR
The MAR
The MDR
The ALU
What is the name of the unit in CPU that controls and coordinates all parts of the computer system?
Arithmetic unit
Logic unit
Control unit
Registers
What is the name of the unit in the CPU that performs arithmetic and logic operations?
ALU
CU
MAR
MDR
What happens simultaneously as the data is moved to the Memory Address Register?
The instruction is executed
The ALU is prepared to execute arithmetic or logic operations
Data is sent via the data bus to the ALU
The Program Counter is incremented with the memory address of the next instruction to be "fetched"
Used to transmit data between areas of the processor.
Data bus
Address bus
Control bus
Which of these statements about agile is correct
There is a continuous delivery of software from the early stages of the software
someone who is agile can do sick flips
agile is a software development method
agile is linear approach to software development
what are the three types of maintenance
Corrective, Adaptive, Perfective
Flex tape, WD 40, Super glue
Fix, Repair, Maintain
Which of these methods involves the end users the most?
Waterfall
Agile
Telling them to do it themselves
RAD
Out of agile, waterfall and RAD...
waterfall is the fastest method for developing software
agile is the least adaptive
RAD has the lowest user involvement
agile splits the project into a number of small independent modules
What is 0.125 in fixed point binary (4 bits for the whole number / 4 bits for fractional part)?
10001000
00000010
00001000
00011000
2. ???
3. Memory accesses relevant location
4. Transfer the data from RAM to CPU registers via the Data Bus
5. Decode and execute
