Part I: Multiple Choice Questions
1 Convert the decimal number 135.75 to binary. 2 Where does a computer add and compare data?
A) 10000111.11 A) CPU
B) 11010011.01 B) Floppy disk
C) 00111100.00 C) Hard disk
D) 10010111.11 D) Memory
dung: A dung: A
3 Convert 0.71875(10) in to an octal number. 4 Conversion of a hexadecimal number 4E(16) to
A) 0.1605(8) binary number is
B) 0.53(8) A) 1001101(2)
C) 0.56(8) B) 1001110(2)
D) 0.2404(8) C) 1101100(2)
dung: C D) 110111(2)
dung: B
5 What is the result when a decimal 12915 is converted 6 What is the value of ((x | y) + (a + b)) when a=1,
to base 16? b=0, x=10, y=5?
A) 3273 A) 0
B) 1216 B) 12
C) 1388 C) 15
D) 1476 D) 16
dung: A dung: D
7 Which of the following is NOT an octal number? 8 If 12A7C (16) = X(8) then value of X is
A) 19 A) 225174
B) 77 B) 425174
C) 15 C) 17325
D) 101 D) 225714
dung: A dung: A
9 The decimal equivalent of the binary number 10 The octal equivalent of the number 11010.1011 is
101011110110 is A) 32.54
A) 1806 B) 62.51
B) 1807 C) 32.51
C) 2806 D) None of the above
D) None of the above dung: A
dung: C
11 The first digit of a octal constant must be
A) zero
B) a non zero number
C) a negative number
D) an integer
dung: A
12 Which amongst the following expressions uses 13 CD-ROM stands for
bitwise operator? A) Compactable Read Only Memory
A) !a>5 B) Compact Data Read Only Memory
B) a|b C) Compactable Disk Read Only Memory
C) a!=b D) Compact Disk Read Only Memory
D) a++ dung: D
dung: B
14 Computer operation in which new word replaced old 15 Everything computer does is controlled by its
one in a particular memory location is termed as A) RAM
A) save operation B) ROM
B) fetch operation C) CPU
C) control operation D) Storage devices
D) write operation dung: C
dung: A
16 Which data type is most suitable for storing number 17 The format identifier "%x" is used for _____ data
12! in Dev C++ type?
A) short A) long double
B) int B) double
C) char C) float
D) double D) int
dung: B dung: D
18 Which type is best suited to represent the logical 19 The translator program used in assembly language is
values in C? called
A) boolean A) Assembler
B) character B) Compiler
C) integer C) Interpreter
D) all of the mentioned D) Translator
dung: C dung: A
20 Which of the following is the odd one out? 21 MAN stands for
A) j = j + 1; A) Maximum Area Network
B) j =+ 1; B) Minimum Area Network
C) j++; C) Main Area Network
D) j += 1; D) Metropolitan Area Network
dung: B dung: D
22 Which operation is not performed by computer? 23 Information in computer read only memory is stored
A) Controlling by
B) Inputting A) engineer
C) Processing B) manufacturer
D) Understanding C) programmer
dung: D D) user
dung: B
24 A _________ set of rules that governs data 25 Computer memory in which user cannot write new
communication. information or instructions is
A) Protocols A) RWM
B) Standards B) RAM
C) RFCs C) ROM
D) Servers D) CMOS
dung: dung: C
26 The first computers were programmed using 27 Ethernet uses
A) assembly language A) Bus topology
B) machine language B) Ring topology
C) source code C) Star topology
D) object code D) Tree topology
dung: B dung: A
28 Which of the following is a User-defined data type? 29 Chief component of first generation computer was
A) typedef int Boolean A) Integrated Circuits
B) typedef struct {int label ;char name[20];} tname B) Transistors
C) struct {char name[10], int age}; C) Vacuum Tubes and Valves
D) All of the mentioned D) None of above
dung: D dung: C
30 Which of these expressions will return true if the 31 If the variables i, j and k are assigned the values 5,3
input integer v is a power of two? and 2 respectively, then the expression i = j + ( k + +
A) (v | (v + 1)) == 0 =6)+7
B) (~v & (v – 1)) == 0 A) assigns a value 16 to i
C) (v | (v – 1)) == 0 B) assigns a value 18 to i
D) (v & (v – 1)) == 0 C) assigns a value 20 to i
dung: D D) gives an error message
dung: D
32 A single character input from the keyboard can be 33 Suppose b represent space. Statement
obtained by using the function. printf(“%–10s”, “HANOI”);
A) printf() displays
B) scanf() A) bbbbb HANOI
C) gets() B) bbbbbbbbbb HANOI
D) getchar() C) HANOI bbbbb
dung: D D) HANOI bbbbbbbbbb
dung: C
34 .............OS provides process and memory 35 If y is a variable of integer type then the expressions
management services that allow two or more tasks, 3* (y − 8)/9 and (y − 8)/9 * 3
jobs, or programs to run simultaneously A) may or may not yield the same value.
A) Multitasking B) must yield different values.
B) Multithreading C) must yield the same value.
C) Multiprocessing D) none of the above.
D) Multicomputing dung: A
dung: A
36 Which is the correct definition among the following 37 Which of the following is the correct definition of an
ones about computer science? interpreter?
A) Computer programming. A) A program that translate source code from a high-
B) The application of computers in information level programming language to another language
processing. B) A program that translates a high level symbolic
C) The study of computers , including both hardware language to a low level language
and software design. C) A program that reads instructions in some language
D) The study of manufacturing computers. and executes them or simulates their execution
dung: C
D) A program responsible for the direct control and
management of hardware and basic system
operations.
dung: C
38 What is the output of the following program? 39 Which expression is saved in variable x of the
#include <stdio.h> following algorithm?
main ( )
{ int x = 2, y = 5; Step 1: Read m, n ( m ,n are positive integer numbers)
if (x < y) return (x = x+y); Step 2: Let x = 1.
else printf (“z1”); Step 3: if m is even, go to step 4 otherwise go to step 6
printf(“z2”); Step 4: If m > 0 go to step 5, otherwise stop
} Step 5: n = n * n, m = m / 2, go to step 3
A) z2 Step 6: x = x * n, m = m - 1,go to step 3
B) z1z2 A) m*n
C) Compilation error B) m power n
D) None of these C) n power m
dung: D D) None of the above
dung: C
40 In computers, 1 kilobyte is equals to
A) 1024 bytes
B) 1048576 bytes
C) 1000 bytes
D) 512 bytes
dung: A