MCQ 2 (En)
MCQ 2 (En)
Instructions
Answer all the questions.
Write your exam number in the given space on the answer sheet.
For each question from 1 to 50, choose the correct or most appropriate answer
from the answers (1), (2), (3), (4), (5) and put a circle (X) on the corresponding
number on the answer sheet.
1) Choose the statement that is not true about qualitative information
1) Quality information helps in knowledge development.
2) Creating quality information costs more.
3) Uses accurate data to create quality information
4) Quality information can be used for decision making.
5) In zero time, the value of quality information is very high
4) Among the following storage devices, the device that provides the fastest data access is
1) Magnetic disk 2) Memory card 3) Periodic memory
4) Memory registers 5) Cell memory
1
7) What is the decimal value of the binary number 10001010 which is two's complement of eight
bits ?
1) A 2)B
A 3) A.B 4) A+B 5) 1
9) How many 2-input NANDs are needed to construct the boolean expression A'.B+A.B' using only
NAND gates ?
1) 4 2) 5 3) 6 4) 7 5) 8
11) How many OR, AND and XOR gates are needed to set up a full adder using 2 half adders
respectively ?
12) Which Boolean expression can be obtained for the following Kano map?
B.C
A 00 01 11 10 1) A+B 2) A’+B 3) A’+B’
0 0 0 1 1 4) A.B 5) A’B’
1 1 1 1 1
13 ) The condition by which an action in the new state is placed in the ready state
14) Transition of an operation from one state to another state, whether due to a software/hardware
interrupt or in the absence of such interrupt, even in normal circumstances. .......... is called.
15) Out of the following operating systems Flight control systems Best suited for
2
5) Real-time single-user systems
16) In the process status diagram The response will be the status instances to be entered in
order up to AG
1) A- Ready state , B- Create /new state , C- Running State , D- Terminated State , E- Blocked State
, F- Swaped out and wait State , G -Swaped out and blocked State
D- Terminated State, E- Blocked State, F- blocked State G - Swaped out and blocked State
5) A- Create/New State, B-Running State, C- Running State D- Terminated State E- blocked State
G- Swaped out and blocked State
0 -1
1
2 10
3 9
4 7 File A starts here
5
6 3 File B starts here
7 2
8 -1
9 0
10 8
3
17) The block size of the hard disk is 4KB.
Which of the following
The directory entry of a file File A , ……..
The directory entry of a file File B ……….
The disk space allocated for the file A ……………..
the disk space allocated for the file B …………….. respectively
Choose the correct answer in the blank
18) In a hard disk, The last block of directory entry is -5, which of the following gives directory
entry of 4,2 are represented respectively. The answer is
0 7
1) 0.10,8
1 4
2 -1 2) 6,1,0
3 1
3) 3,8,9
4 -1
5 -1 4) 10,9,8
6 5
7 6 5) 6,8,10
8 9
9 2
10 3
19) Layers that make data into chunks, packets and frames respectively are the given answer
20) The first and last usable IP addresses in a subnet are 195.150.10.129 and 195.150.10.190
respectively. what is the the subnet mask ?
21) Class C network 200.138.1.0 is subnetted by subnet mask number 255.255.255.252 . Here are the
maximum number of subnets possible and the maximum number of addresses each subnet can
have, respectively
22) Choose the correct statement about connectors used for data transmission cables
23 ) What is the subnet mask , if 5 subnets with at least 16 hosts are created ?
1) Amplitude modulation
2) Frequency modulation
3) Phase Modulation
27) Which is the testing strategy that considers the internal workings of a program?
1) Black box testing 2) White box testing
3) Integration testing 4) Acceptance testing
5) Unit Testing
28) Publishing one's thoughts, words, statements and activities as one's own creations without
mentioning the creators .
1) Piracy 2) Phishing 3) Plagiarism
4) Privacy 5) Copyright
5
The above output will be the response containing the HTML code snippet
1) 2)
<table border="1"> <table >
<caption> Name list of Patients</caption> <tr> <th colspan="2">Name</th>
<tr> <th colspan="2">Name</th> <th>Clinic No</th></tr>
<th>Clinic No</th></tr> <tr> <td>Ann</td>
<tr> <td>Ann</td> <td>Perera</td>
<td>Perera</td> <td rowspan="2" > 2 </td></tr>
<td rowspan="2" > 2 </td></tr> <tr> <td>Evon</td>
<tr> <td>Evon</td> <td>Ranasinghe</td> </tr>
<td>Ranasinghe</td> </tr> </table>
</table>
3)
4)
<caption> Name list of Patients</caption>
<caption> Name list of Patients</caption>
<table border="1">
<table border="1">
<tr> <th rowspan="2">Name</th>
<tr> <th colspan="2">Name</th>
<th>Clinic No</th></tr>
<th>Clinic No</th></tr>
<tr> <td>Ann</td>
<tr> <td>Ann</td>
<td>Perera</td>
<td>Perera</td>
<td colspan="2" > 2 </td></tr>
<td rowspan="2" > 2 </td></tr>
<tr> <td>Evon</td>
<tr> <td>Evon</td>
<td>Ranasinghe</td> </tr>
<td>Ranasinghe</td> </tr>
</table>
</table>
5)
<caption> Name list of Patients</caption>
<table >
<tr> <th colspan="2">Name</th>
<th>Clinic No</th></tr>
<tr> <td>Ann</td> 6
<td>Perera</td>
<td rowspan="2" > 2 </td></tr>
<tr> <td>Evon</td>
30) Which of the following clauses describes a non-functional requirement of an ATM system?
31) according to data for modelling what is incorrect data flow modelling.
1) 2)
3) 4)
5)
33) Select the statement which is not correct regarding the record of a table
7
35) Multivalued attributes are represented in a physical relationship diagram
1) 2) 3)
4) 5)
36) Choose the most correct sentence/s regarding a table in a relational database
A. Records and fields of a table should not be duplicated
B. table’s records and fields are not in order.
C. Table name must be unique
D. A table must have more than one attribute
Employee Table
EMPNO ENAME JOB MGR HIREDATE
7369 SMITH CLERK 7902 17-Dec-80
7499 ALLEN SALESMAN 7698 20-Feb-81
7521 WARD SALESMAN 7698 22-Feb-81
7566 JONES MANAGER 7839 02-Apr-81
7698 BLAKE MANAGER 7839 01-May-81
37) The SQL code to output the name and number of all employees with job “Clerk” .
38) The SQL code to insert the phone number “TEL_NO” as a new variable is:
1) Alter table Employee Add Column TEL_NO char(10);
2) Alter table Employee Insert Column TEL_NO char(10);
3) Alter table Employee Insert TEL_NO char(10);
4) Alter Employee Add Column TEL_NO char(10);
5) Alter table Employee Add TEL_NO char(10);
8
39) In data `definition language ( DDL) Which of the following is an SQL statement containing
40) On the Internet, the name given to the websites that are set up to get most of the information
that people need in one place is
41) A person selling a used laptop computer to another person by posting an advertisement on an
internet site is
n=10 1) 10 2) 10 3) 10 9 8 7 6 5 4 3 4) 10 9 8 7 6 5 4 2 1 5) 10
while n>0: 9 9 9
print (n)
8 8 8
if (n==3):
7 7 7
break
i -= 1 6 6 6
5 5 5
4 4 4
3 2 program is
43) The output of the following Python 2
1 1
n=10 1) 9 6 3 2) 9 3) 9 8 7 6 5 4 3 4) 10 8 7 5 4 2 1 0
5) 10
while n>0: 6 8
if n%3==0:
3 7
n-= 1
5
continue
print( n) 4
n-= 1 2
1
9
45) X=”Sri Lanka”
>>print( X[ -7:-1])
>>print( x[ 0:]
>>print( x[ 0:9:2])
46) Choose the correct variable from the following Python variables
50) What are the control structures found in the following flowchart ?
10
A- Sequence
B- repetition
C- selection
11