Você está na página 1de 8

Faculty Of Computer Studies

M150A
Data, Computing and Information

Mock MTA
Date: ..
Number of Exam Pages:
( )
Time Allowed: ( 1.5 ) Hours
(including this cover sheet)

Instructions:
Instructions:
1.
2.
3.
4.
5.

This exam consists of 3 parts. Student is


requested to answer ALL the questions.
Write your student ID, name, section
number and the exam form on the exam
paper and the answer sheet booklet.
Fill in your answers in the corresponding
answer sheet.
Calculators are allowed in the exam.
Electronic devices that could have a
memory are not allowed.

. .1
.
.2

.
.3
.
. .4
.5
.

Page 1 of 8

I. Multiple choice: Choose the correct answer: (12 Marks)

1. The importance of computers in our life relies on it's ability to:


a. Store large amounts of data.
b. Make data analysis.
c. Facilitate the transmission of data across long distances
d. All the above.
2. Which of the following demonstrates representations properties?
a. Representations are context sensitive.
b. A representation may contain redundancy.
c. Representations may have different levels of precision.
d. All the above.
3. Which of the following represents pure Green in the RGB scheme?
a. (0,0,255)
b. (0,255,0)
c. (255,0,0)
d. (255,255,255)
4. In order to digitize a sound waveform, a waveform is sampled into a series of ......
a. pixels.
b. time intervals.
c. ASCII codes digits.
d. None of the above.
5. Which of the following device (s) produce analogue output?
a. Inkjet printers.
b. Speakers.
c. CRT monitors.
d. Plotters.
e. b and d.
6. OCR is:
a.
b.
c.
d.

a computer program that transfers each character in a scanned text into a digital code.
an array of sensors inside a digital camera or scanner.
a type of monitor.
a removable storage media device.

Page 2 of 8

II. Short questions: Answer the following questions: (18 Marks)

1. Answer the following questions: (7 marks)


a. Mention two advantages of email communication.
b. Mention two text capture devices that are used to transform text into digital form inside the
computer?
2. Suppose that a computer have 2 GB of RAM (i.e. 2 gigabytes). (7 marks)
a. How many bytes of memory does it have?
b. If the word size of the processor is 16 bits, how many words can the memory store?
3. Write the proper term defined by each of the following definitions: (4 Marks)
a. ( ______________________ ) A technique which increases efficiency by removing
redundancy from representations.
b. ( ______________________ ) A numbering system that is used worldwide and it uses ten
digits (0 to 9).
c. ( ______________________ ) A type of quantity that changes in a series of clear steps.
d. ( ______________________ ) The collection of guidelines setting out appropriate email
behavior. It aims to minimize discourtesy or misunderstanding in email use.

Page 3 of 8

III. Problem solving: Answer the following questions: (30 Marks)

1. Show all the steps required to convert the decimal value 365 to its binary representation. (4 Marks)
2. Consider a one-hour documentary film to be displayed on a TV at 30 fps. Each frame is 750 x 420 pixels and a
24-bit RGB color encoding is being used. How many bytes will be required to represent the whole film? (6

Marks)
3. Given the following selection structure example: (10 Marks)
if ( ( Employee Salary < 600) or ( not ( Employee Title = Manager ) ) )
Employee gets a promotion
else
Employee doesnt get a promotion

1. Complete the Following truth table for the Boolean expression in the above example.
Employee Salary < 600

Employee Title =
Manager

2. Examine the following employees salaries and grades & decide whether they will get a promotion
or not.
a. Employee 1: Salary 500, Title = Supervisor.
b.

Employee 2: Salary = 700, Title = Assistant Manager.

c. Employee 3: Salary = 750, Title= Manager.


d.

Employee 4: Salary = 600, Title = Manager.

Page 4 of 8

4. The following diagram shows some instructions involving a loop: (10 Marks)

Set x to 2

false

(x<=100 )

true

Write out the value of x in the


output window
Move to the next line in the output window
Multiply x by 3

Write Done in output


window

1. Identify.
a. The condition.
b. The loop body.
c. Any instructions that are not in the loop body, and so are not repeated.
2. How many times will the loop body be executed?
3. What is the output after these instructions have been followed? You should draw a tracing table.

Page 5 of 8

Answer Key
Part1: Multiple choices (12 marks)
Question #

Answer

Part2: Short Questions (18 Marks)


1. (7 Marks)
a. Advantages: (2 point are required only)
i. Email is immediate: it gives virtually instantaneous access to others;
ii. It is global: people can be reached all over the world;
iii. It is comparatively cheap;
iv. It allows a variety of messages (including sound and image) to be sent.
b. The text capture devices are:
i. keyboards
ii. Scanners with OCRs. ( Scanner alone is not a correct answer)
2. (7 marks)
a. 2GB * 230 = 2* 1024 * 1024 * 1024 = 2147483648 bytes
b. 16 bits = 2 bytes
2147483648 / 2 = 1073741824 words
3. (4 marks)
a. Compression
b. Decimal system
c. Discrete ( or digital)
d. Netiquettes

Page 6 of 8

Part 3: Problem Solving (30 marks)

1. (4 marks)
(365) 10 = (101101101) 2. (Students should show the calculations to get the mark)
2. (6 marks)
# pixels in each frame = 750 * 420 = 315000 pixels
# of bytes in each frame = 315000 * 3 = 945000 bytes
# of seconds in the movie = 1 * 60 * 60 = 3600 seconds
# of frames in the movie = 3600 * 30 = 108000 frames
# of bytes in whole movie = 108000 * 945000 = 102060000000 bytes

3. (10 marks)
a. The truth table:
Employee

Employee Title =

Not (Employee Title =

(Employee Salary < 600) or

Salary < 600

Manager

Manager)

(not (Employee Title =


Manager))

b.
Employee1: gets a promotion
Employee2: gets a promotion
Employee3: doesnt get a promotion
Employee4: doesnt get a promotion

Page 7 of 8

4. (10 marks)
1.
a. The condition: x<=100
b. The loop body:


Write out the value of x in the output window

Move to the next line in the output window

Multiply x by 3

c. Instructions not repeated:




Set x to 2

Write Done in output window

2. The loop body is executed: 4 times


3. Output and tracing table:
x

(x<=100)

2
6
18
54
108

True
True
True
True
False

Go into
the
loop??
Yes
Yes
Yes
Yes
No
(Stop)

Iteration
number
1
2
3
4

Page 8 of 8

output
2
6
18
54
Done

Você também pode gostar