Documente Academic
Documente Profesional
Documente Cultură
P.1 of 4
Class 4 ( ) Name:____________________________ ( )
P.2 of 4
Part B: Conventional Questions:
21. Arrange the following in ascending order of structure of data:
Table, record, character, database, field
character, field, record, table, database
22. A data entry clerk incorrectly enters “sharp” for “shark”.
a. What kind of error is committed by the clerk?
Transcription error
b. How can this error be detected?
Verification
23. Which of the followings belong(s) to manual input?
a. Voice input
b. OCR reader
c. Chinese character input using Chang-Jei
d. Mouse click
e. Bar code scanner
a,c,d
24. A primary key may or may not be a single field. The following fields are used in
the ticketing office of a theatre:
Title of movie, date, time, seat number, price
What is the combination of the above fields that could form a primary key for
ticket records?
Date + time + seat number+ (title)
25. Suggest a validation rule for detecting the errors in the following examples:
Field Mistyped text
a. Name of a person P010 Chan
b. Date of birth(dd/mm/yyyy) 12/20/1987
c. Price of a sketch book 2305
d. Code 093773 (original is 097373)
e. Grade in conduct Q
f. District [missing]
P.3 of 4
d. 2256 2256(A)
27. Determine whether the following codes, each with a weighted modulo-11check
digit, are valid or not.
a. 532(0) valid (5*4 + 3*3 + 2*2 + 0*1 = 33)
b. 10101(A) valid (1*6 + 0*5 + 1*4 + 0*3 + 1*2 + 10*1 = 22)
c. 631(2) invalid (6*4 + 3*3 + 1*2 + 2 *1 = 37)
d. 752(8) valid (7*4 + 5 * 3 + 2*2 + 8*1 = 55)
28. A binary search is to be carried out from 80,000 records. How many records will
remain to be searched from if the search is still not successful after the 5th
comparison?
2500 (8000040000200001000050002500)
29. A word document consists of 5246 words. The cursor position is located just after
the 3528th word. Determine the largest number of comparison needed to make to
search for a keyword if the search direction is
a. forward
1718 (=5246 –3528)
b. backward
3528
31. The following data is to be sorted into ascending order using bubble sort.
Determine the intermediate results after each pass:
8, 3, 5, 6, 1, 24, 12
(
3,8,5,6,1,24,12
3,5,8,6,1,24,12
3,5,6,8,1,24,12
3,5,6,1,8,24,12)
P.4 of 4
th
1, 3, 5, 6, 8, 12, 24 (6 Pass)
32. The following data have been transmitted over a long cable. The sender has
appended a parity bit so that number of 1’s in each byte before transmission are
odd
1: 010101110
2: 010010011
3: 001101101
4: 100101100
5: 011011111
c) It is possible that those “correctly transmitted” data may contain errors that are
not identified by the receiver. Explain
If the first data 010101110 is wrongly transmitted as 011001110, it is still of
odd parity, the receiver would treat it as “correctly transmitted”