CSIT103RegularDecember2018 1
CSIT103RegularDecember2018 1
1 18 35 52 69 86
2 19 36 53 70 87
3 20 37 54 71 88
4 21 38 55 72 89
5 22 39 56 73 90
6 23 40 57 74 91
7 24 41 58 75 92
8 25 42 59 76 93
9 26 43 60 77 94
10 27 44 61 78 95
11 28 45 62 79 96
12 29 46 63 80 97
13 30 47 64 81 98
14 31 48 65 82 99
15 32 49 66 83 100
16 33 50 67 84
17 34 51 68 85
24 21
4s 2s
1 0 1 0 0 1 1 0
1. Assuming that the code represents a binary number which of the following correctly shows the
representation of the middle row.
a.
24 21
128s 64s 32s 15s 8s 4s 2s 0s
1 0 1 0 0 1 1 0
b.
24 21
128s 64s 32s 16s 8s 4s 2s 1s
1 0 1 0 0 1 1 0
c.
24 21
128 0 32 0 8 4s 2s 1
1 0 1 0 0 1 1 0
d.
24 21
-1 0 32 16 8 4s 2s 1
1 0 1 0 0 1 1 0
2. Assuming that the code represents a binary number which of the following correctly shows the
representation of the top row.
a.
27 26 25 24 23 22 21 2
4s 2s
1 0 1 0 0 1 1 0
b.
27 26 25 24 23 22 21 20
4s 2s
1 0 1 0 0 1 1 0
c.
28 27 26 24 23 21 21 2
4s 2s
1 0 1 0 0 1 1 0
d.
27 26 25 24 23 22 21 2
4s 2s
1 0 1 0 0 1 1 0
3. If the binary code represents an unsigned integer, then the denary equivalent is an even number?
a. True
b. False
4. If the binary code represents an unsigned integer write down the denary equivalent of the binary
number in the last row ___________
A client server web application has been developed which uses a file containing the following
code. Use the code to answer questions 18-21
<!DOCTYPE html>
<html>
<body>
<h1> We can give you an estimate of how many you will need if you are tiling a floor with
our tiles.
You need to tell us the length and the width of the room
(in metres).</h1>
<script>
Var length = prompt (“enter the room length”, “ ”);
Var width = prompt (“enter the room width”, “ ”);
Var tilesSize = 0.25;
Var numberOfTiles = (length * width)/tileSize;
Alert (“the estimate for the number of tiles needed is “ + numberOfTiles);
</script>
</body>
</html>
18. The person who created this file is called
a. Server
b. Analyst
c. Developer
d. Creator
19. This file would be stored where?
a. Server
b. Cloud
c. Client computer
d. Network
20. The browser needed to run this application is stored where?
a. Cloud
b. Client PC
c. Server
d. Network
E F B A C
b.
D E F A B
c.
C F B A D
d.
E B F A C
Match the following device types to the definition given in the table
Main Memory
A B C
The diagrams below (A-D) represent some logic gates . Questions 33 – 35 are based on these diagrams.
A
B
C
D
Consider the following scenario and use it to answer the questions which follow (Q37 – 40):
A regular traveler travels by car if the travel is at the weekend. However, if the travel is on a
weekday the traveler takes a train unless the distance is greater than 200 miles. If the distance is
greater than 200 miles the traveler books a flight.
37. Which of the following is a logic proposition that may be used to describe the problem?
a. Travel at the weekend is by car
b. Travel at the weekday is by car
Individual problem statements can be extracted from this scenario and expressed using the
language of Boolean algebra. Each individual statement will contain a logic expression.
Complete the following using TRUE or FALSE where appropriate:
38. Car_travel = ________IF day = weekend
39. Train_travel = _______IF day = weekday AND distance ≤ 200
40. Air_travel = _________IF day = weekday AND distance > 200
44. Which of the following truth tables will represent the following fault condition. The
water level in the hot water tank is too low and the temperature in the hot water tank is too high.
The system must output a signal to switch off the system.
C D
Inputs Output Inputs Output
A B C F1 A B C F1
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 0 0
0 1 1 0 0 1 1 0
1 0 0 1 1 0 0 0
1 0 1 0 1 0 1 1
1 1 0 0 1 1 0 0
1 1 1 0 1 1 1 0
45. Which of the following truth tables will represent the following fault condition. The
water flow in the radiators is too low and the temperature in the hot water tank is too high. The
system must output a signal to switch off the system.
A B
Inputs Output Inputs Output
A B C F1 A B C F1
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 0
0 1 0 0 0 1 0 0
0 1 1 0 0 1 1 0
1 0 0 1 1 0 0 1
1 0 1 0 1 0 1 0
1 1 0 0 1 1 0 1
1 1 1 0 1 1 1 0
46. Which of the following circuits represent a fault condition where the hot water tank
temperature is within limits but the water flow in the radiators is too low and the water level in
the hot water tank is too low.
A B
C D
47. A register is a storage unit with limited capacity of just a few bytes. TRUE or FALSE?
48. A register is part of the processor (or microprocessor or CPU). TRUE or FALSE?
49. A register has a very short access time. TRUE or FALSE?
50. A register may be special purpose or general purpose. TRUE or FALSE?
51. An assembly language or machine code language program can access an individual
register. TRUE or FALSE
52. A fatal error in a program causes an INTERRUPT signal to be generated TRUE or
FALSE
53. A hardware fault causes an INTERRUPT signal to be generated TRUE or FALSE
54. A need for I/O processing to begin causes an INTERRUPT signal to be generated TRUE
or FALSE
55 User interaction causes an INTERRUPT signal to be generated TRUE or FALSE
56 A timer signal causes an INTERRUPT signal to be generated TRUE or FALSE
Trace table
Memory Addresses
Question Accumulator
201 202 203 204
0 10 0 204 5
57 10 10 0 204 5
58 11 10 0 204 5
59 11 10 11 204 5
60 5 10 11 204 5
61 4 10 11 204 5
62 4 4 11 204 5
63 9 4 11 204 5
64 9 9 11 204 5
57. a.
Memory Addresses
Accumulator
201 202 203 204
0 0 11 204 5
b
Memory Addresses
Accumulator
201 202 203 204
10 0 10 204 5
d
Memory Addresses
Accumulator
201 202 203 204
0 10 10 204 5
58. a.
Memory Addresses
Accumulator
201 202 203 204
0 0 11 204 5
b
Memory Addresses
Accumulator
201 202 203 204
11 0 10 204 5
c
Memory Addresses
Accumulator
201 202 203 204
10 10 0 204 5
d
Memory Addresses
Accumulator
201 202 203 204
11 10 0 204 5
59. a.
Memory Addresses
Accumulator
201 202 203 204
11 10 11 204 5
b
Memory Addresses
Accumulator
201 202 203 204
10 0 10 204 5
c
Memory Addresses
Accumulator
201 202 203 204
10 10 0 204 5
60. a.
Memory Addresses
Accumulator
201 202 203 204
5 10 11 204 5
b
Memory Addresses
Accumulator
201 202 203 204
10 5 10 204 5
c
Memory Addresses
Accumulator
201 202 203 204
10 10 0 204 5
d
Memory Addresses
Accumulator
201 202 203 204
0 10 10 204 5
61. a.
Memory Addresses
Accumulator
201 202 203 204
4 0 11 204 5
b
Memory Addresses
Accumulator
201 202 203 204
4 10 11 204 5
c
Memory Addresses
Accumulator
201 202 203 204
10 10 0 204 5
d
Memory Addresses
Accumulator
201 202 203 204
4 10 10 204 5
b
Memory Addresses
Accumulator
201 202 203 204
10 0 10 204 5
c
Memory Addresses
Accumulator
201 202 203 204
4 10 0 204 5
d
Memory Addresses
Accumulator
201 202 203 204
4 4 11 204 5
63. a.
Memory Addresses
Accumulator
201 202 203 204
0 0 11 204 5
b
Memory Addresses
Accumulator
201 202 203 204
10 0 10 204 5
c
Memory Addresses
Accumulator
201 202 203 204
10 10 0 204 5
d
Memory Addresses
Accumulator
201 202 203 204
9 4 11 204 5
64. a.
Memory Addresses
Accumulator
201 202 203 204
9 9 11 204 5
c
Memory Addresses
Accumulator
201 202 203 204
10 10 0 204 5
d
Memory Addresses
Accumulator
201 202 203 204
0 10 10 204 5
68. Which of the following are facilities you would expect a file management system to have.
There might be more than one correct answer, identify all the correct answers.
a. Delete a file
b. Copy a file
c. Save a File
d. All of the above
69. Which of the following are examples of utility programs associated with hard disk
usage in a PC. There might be more than one correct answer, identify all the correct answers.
a. Disk formatting
b. Partition creation
c. Disk recovery
d. None of the above
Chose a word from the list below to complete the sentences in questions 69 - 74
a. Living individual
b. securely
c. Integrity
Select a word from the list below to complete the sentences in questions 75 - 79
a. Attribute
b. relationship
c. Tuple
d. Table
e. Entity
76. _____something about which data is recorded, a customer, a product, a customer order
77. _____the implementation of the data for an object in relational database
78. _____the data for one row in the table
79. _____One of the data items for an object in relational database, customer name, address
80. _____this is the link between two tables
81. The basic three level concept of databases was developed by the American National
Standards Institute. Which of the following is not included in the three level model?
a. Physical level
b. internal level
c. external level
d. conceptual level
A company provides catering services for clients who need special occasion celebratory dinners.
For each dinner, a number of dishes are to be offered. The dinner will be held at a venue. The
company will provide staff to serve the meals at the venue. The company needs a database to
data related to this business activity.
Use the above scenario to answer questions 81 – 83
82. which of the following is not an entity in the above.
a. Dish
b. Venue
c. Date
d. Client
83. Which of the following have direct relationship
a. Dish and dinner
b. date and Venue
c. Dinner and Venue
d. Dinner and Staff
84. What is the relationship between Dinner and Client?
a. 1:1
b. M:M
c. M:1
d. 1:M
The simplest way to sort an unordered list of values is the following method.
Initial array:
25
34
98
7
41
19
5
A B C D
25 7 25 7
34 19 7 25
7 5 34 19
41 25 19 5
19 34 5 34
5 41 41 41
98 98 98 98
Which of the above options correctly depicts the state of the array after each of the following:
87. The first pass
88. The second pass
89. The third pass
90. The fourth pass
91. How many passes are required for the array to be fully ordered?
a. 5 b. 7 c. 8 d. 6
In the following questions, (91 – 94) choose the correct word to match the definition given
a. Sequence b. Assignment c. Selection d. Iteration
A program calculates the interest earned on GHc100. The value of investment increases by 20%
each year. Stop the process when the amount reaches GHc150. Draw up a trace table to complete
the execution of this algorithm:
01 YearNumber 1
02 Amount 100
03 Amount Amount * 1.20
04 If Amount >= 150
05 THEN
06 OUTPUT YearNumber
07 STOP
08 ELSE
09 YearNumber YearNumber +1
10 GOTO Step 03
11 ENDIF