0% found this document useful (0 votes)
17 views4 pages

WK 6 Qs

The document contains information about several topics including binary conversion, computer components, program design, HTML tags, SQL queries, and data related to electric vehicle charging stations. Multiple choice and short answer questions are asked about these topics.

Uploaded by

Ollie Fry
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
17 views4 pages

WK 6 Qs

The document contains information about several topics including binary conversion, computer components, program design, HTML tags, SQL queries, and data related to electric vehicle charging stations. Multiple choice and short answer questions are asked about these topics.

Uploaded by

Ollie Fry
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 4

1 Convert the denary number 130 into an 8-bit binary number.

1
10000010

2 Computers and other electronic devices contain processor chips.

a Complete the following description of the function of one of the components of the
processor:

A register is a local storage space on a processor that holds data that is being 1
processed.

b Name one other component of the processor. 1


ALU

3 Below are some examples of program design. Complete the tables below to show the
correct sequence of steps. The correct sequence for the first example has been partially
completed.

a Take in the price of one orange 1 1

Take in the number of oranges 2


Display the final cost of the oranges 4
Calculate the final cost of all the oranges 3

b If true, play the audio track 3 2


Decide if that point was on the ‘play’ button 1
Get the position on the screen that was touched 2

4 State a function of the <HTML> tag in a HTML document. 1


To tell the program that the code is in HTML format

5 Study the short section of HTML coding below and answer the related questions.

Line 1 <!DOCTYPE html>


Line 2 <html>
Line 3 <head>
Line 4 <title>Lomond Hills</title>
Line 5 </head>
Line 6 <body>
Line 7 <h1>West Lomond</h1>
Line 8 <img border="0" src="/images/pulpit.jpg" width="525" height="350">
Line 9 </body>
Line 10 </html>

a State the line number that needs to be changed if the heading on the website is to be 1
edited.
Line 4

b The “pulpit.jpg” image (line 8) does not appear when the web page is viewed in a 1
browser. Describe one possible reason for this.
The wrong file name has been used
6 A program is being designed to process a set of marks for a class test. Name the standard 1
algorithm that is required to check that the marks entered are within the correct range.

Range check

7 State the purpose of a wireframe at the design stage of the development process. 1

To show a basic version of the site that can be more easily edited if the client wishes

8 A database entity called ‘tempReadings’ stores details about the average temperatures
recorded in degrees celsius over a five day period.

tempReadings
Day averageTemp
Monday 19.50
Tuesday 16.56
Wednesday 18.64
Thursday 18.47
Friday 17.90
Describe what would happen to the entity when the SQL statement below is run.

DELETE FROM tempReadings 1


WHERE averageTemp <18.60

Wednesday and tuesday averages will be deleted with their day

9 Get Greener, an environmental consultancy agency has been asked by the Scottish
Government to investigate the popularity of electric and hybrid cars in the country.

a A program is being designed to help with this task. One of the program’s tasks is to
calculate the total number of public charging stations in all 32 council areas. Part of
the program design is shown below.

…..
Line 5 SET overall total TO zero
Line 6
Line 7 RECEIVE council total FROM keyboard
Line 8 SET overall total TO overall total + council total
Line 9 END FOR
Line 10 SEND overall total TO display

i State a program design technique other than the one illustrated above. 1
refinement
ii Complete Line 6 of the design. 2
Display “how many charging stations in this council”
iii Explain why an integer data type should be chosen for the council total 1
variable.
There cannot be a number with a decimal point, of charging stations (there cant
be half or a quarter of a station)
iv The program must also receive and store the name of each council area. 2
State the most suitable data structure and data type to store this set of data.
String,

b Get Greener has 30 networked desktop computers at its main office. Each
computer has a firewall.
i Describe what is meant by a firewall. 1
A firewall is used as a security measure for computer networks

ii Describe how a firewall can improve the security of a computer network. 1


Firewall block unauthorised access of data to unauthorised persons and can
block unauthorised websites

c State one thing that this company could do to reduce the amount of electricity used 1
to run its computer network.
Lower monitor brightness

d Get Greener uses the image shown in its


final report for the Scottish Government.
This report will be publically available on
the internet.

ChargingStation.pn
g

i State whether this image has been stored as a bit-mapped or vector graphic. 1
Justify your choice of answer.
Bit mapped as it is a png file

ii State the law that may be infringed if the agency does not have evidence of 1
an appropriate licence for the charging station image
copyright

10 A Corbett is a mountain 762 metres or above and under 914 metres. A database used to
store information about Corbetts in Perthshire is shown below.

ID NAME ALTITUDE
150 Beinn nan Oighreag 909m
151 Meall Buidhe 907m
152 Ben Vuirich 903m
153 Beinn Mheadhonach 901m
154 Beinn a'Chuallaich 891m
155 Creagan na Beinne 888m
156 Creag Uchdag 879m
157 Maol Creag an Loch (A' Chaoirnich) 875m
158 Beinn Pharlagain 868m
159 Cam Chreag (Glen Lyon) 862m
160 Stob an Aonaich Mhoir 855m
161 Beinn Mholach 841m
162 Ben Vrackie 841m
163 Sron a'Choire Chnapanich 837m
164 Beinn Dearg (Glen Lyon) 830m
165 An Dun 827m
166 Meall na Fearna 809m
167 Ben Gulabin 806m
168 Meall nan Subh 806m
169 The Sow of Atholl 803m
170 Auchnafree Hill 789m
171 Meall Tairneachan 787m
172 Farragon Hill 783m
173 Meall nam Maigheach 779m
174 Meall na Leitreach 775m

a How many attributes are shown in the entity above? 1


3
b Describe clearly how the data above has been sorted. 3
Asc by id number
c Each entry in this entity must be a valid Corbett. Name and describe a suitable 3
validation check that should be performed on the altitude attribute.

Range check

You might also like