Tuesday, 25 October 2016

Daily Dose Practice Exam questions

Q1. 

(a)     Explain the difference between hardware and software.
Hardware is the physical components parts of the computer. Example of a piecie of hardware is the computer motherboard.
Software is the program and code or instructions that the computer is given to use.

(b)     (i)      Which of the following is a typical value for the clock speed of a processor?
512 MB         128 kbps              80 GB           2 Mb/s             3.0 GHz
(circle your answer)
(ii)     Which of the following is a typical value for the capacity of a memory card for use with a digital camera or other device?
512 MB         256 bits/sec         50 GB           2 bytes            3.0 GHz
(circle your answer)
Q2.
A program has been written to analyse the results of a survey.  For each of the following, name a suitable data type and give a reason for your choice:
(a)     number of cars owned by a household;
data type: Integer
reason: Dealing with whole numbers only




(b)     a telephone number such as 0122456789;
data type: String
reason: So leading zeros do not dissapear and because it will not need calculations preforming on them.




(c)     whether a household’s accommodation has central heating or not,
data type: Boolean

reason: It is a yes or no question





(d)     the average number of cars owned by the households.
         data type: floating point

reason: Average may not be an whole number


Q3.
Convert the denary value 61 into
(a)     binary= 111101
(b)     hexadecimal= 3D


Q4.
A computer program contains the following fragment:
Boolean: LY
Integer: Y
¼
LY := (Y mod 4 = 0)  AND ( NOT (Y mod 100 = 0) OR (Y mod 400 = 0) )
(The function A mod B returns the remainder when A is divided by B, eg. 11 mod 3 returns the value 2.)
(a)     What is meant by a Boolean variable? A variable with only two possible answers e.g true or false.


(b)     What value would be assigned to the variable LY, if the variable Y contains
(i)      1999?----


(ii)     2000?----
Q5.
How many bits make up one byte? 8





Q6.
Using a High Level Language with which you are familiar, give one example of each of the following.
(a)     Data assignment. A=b+c
 (b)    Selection (Conditional step) If A=8 Then "Good"
 (c)    Repetition (Iteration) If A<8 then A=A+1




Q7. 
(a)     A binary pattern might represent a decimal integer or a decimal real number.  In a computing context, give an example of
(i)      a decimal integer= 65
(ii)     a decimal real number= 34.5656


No comments:

Post a Comment