Computer Science MCQs | Computer Science Multiple Choice Questions with Answers

Questions
1 Which of the following is a sequential circuit ?
A Multiplexer
B Decoder
C Counter
D Full adder

Answer: Option [A]
2 8085 microprocessor has _____ hardware interrupts.
A 2
B 3
C 4
D 5

Answer: Option [B]
3 Which of the following in 8085 microprocessor performs HL = HL + DE ?
A DAD D
B DAD H
C DAD B
D DAD SP

Answer: Option [D]
4 The register that stores all interrupt requests is :
A Interrupt mask register
B Interrupt service register
C Interrupt request register
D Status register

Answer: Option [A]
5 The _____ addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction.
A Base indexed
B Base indexed plus displacement
C Indexed
D Displacement

Answer: Option [B]
6 In _____ method, the word is written to the block in both the cache and main memory, in parallel.
A Write through
B Write back
C Write protected
D Direct mapping

Answer: Option [B]
7 Which of the following statements concerning Object-Oriented databases is FALSE ?
A Objects in an object-oriented database contain not only data but also methods for processing the data
B Object-oriented databases store computational instructions in the same place as the data
C Object-oriented databases are more adapt at handling structured (analytical) data than relational databases
D Object-oriented databases store more types of data than relational databases and access that data faster

Answer: Option [B]
8 In distributed databases, location transparency allows for database users, programmers and administrators to treat the data as if it is at one location. A SQL query with location transparency needs to specify :
A Inheritances
B Fragments
C Locations
D Local formats

Answer: Option [B]
9 A point P(5, 1) is rotated by 90° about a pivot point (2, 2). What is the coordinate of new transformed point P′ ?
A (3, 5)
B (5, 3)
C (2, 4)
D (1, 5)

Answer: Option [B]
10 Let R be the rectangular window against which the lines are to be clipped using 2D Sutherland-Cohen line clipping algorithm. The rectangular window has lower left-hand corner at (– 5, 1) and upper right-hand corner at (3, 7). Consider the following three lines for clipping with the given end point co-ordinates : Line AB : A (– 6, 2) and B (–1, 8) Line CD : C (– 1, 5) and D (4, 8) Line EF : E (–2, 3) and F (1, 2) Which of the following line(s) is/are candidate for clipping ?
A AB
B CD
C EF
D AB and CD

Answer: Option [B]
11 In perspective projection, if a line segment joining a point which lies in front of the viewer to a point in back of the viewer is projected to a broken line of infinite extent. This is known as _______.
A View confusion
B Vanishing point
C Topological distortion
D Perspective foreshortening

Answer: Option [A]
12 Let us consider that the original point is (x, y) and new transformed point is (x′, y′). Further, Shx and Shy are shearing factors in x and y directions. If we perform the y-direction shear relative to x = xref then the transformed point is given by _______.
A x′ = x + Shx ⋅ (y – yref)
B x′ = x y ′ = y y′ = y ⋅ Shx
C x′ = x
D x′ = Shy ⋅ y y′ = Shy (x – xref) + y y′ = y ⋅ (x – xref)

Answer: Option [B]
13 If link transmits 4000 frames per second and each slot has 8 bits, the transmission rate of circuit of this TDM is ______.
A 64 Kbps
B 32 MbpS
C 32 Kbps
D 64 MbpS

Answer: Option [D]
14 A pure ALOHA Network transmits 200 bit frames using a shared channel with 200 Kbps bandwidth. If the system (all stations put together) produces 500 frames per second, then the throughput of the system is ______.
A 0.384
B 0.184
C 0.286
D 0.586

Answer: Option [A]
15 Assume that we need to download text documents at the rate of 100 pages per minute. A page is an average of 24 lines with 80 characters in each line and each character requires 8 bits. Then the required bit rate of the channel is _____.
A 1.636 Kbps
B 1.636 Mbps
C 3.272 Mbps
D 3.272 Kbps

Answer: Option [B]
16 The number of different binary trees with 6 nodes is ______.
A 6
B 42
C 132
D 256

Answer: Option [B]
17 Let A[1…n] be an array of n distinct numbers. If i < j and A[i] > A[j], then the pair (i, j) is called an inversion of A. What is the expected number of inversions in any permutation on n elements ?
A θ(n)
B θ(lgn)
C θ(nlgn)
D θ(n2)

Answer: Option [B]
18 Which one of the following array represents a binary max-heap ?
A [26, 13, 17, 14, 11, 9, 15]
B [26, 15, 14, 17, 11, 9, 13]
C [26, 15, 17, 14, 11, 9, 13]
D [26, 15, 13, 14, 11, 9, 17]

Answer: Option [B]
19 Suppose that we have numbers between 1 and 1,000 in a binary search tree and want to search for the number 364. Which of the following sequences could not be the sequence of nodes examined ?
A 925, 221, 912, 245, 899, 259, 363, 364
B 3, 400, 388, 220, 267, 383, 382, 279, 364
C 926, 203, 912, 241, 913, 246, 364
D 3, 253, 402, 399, 331, 345, 398, 364

Answer: Option [B]
20 A triangulation of a polygon is a set of T chords that divide the polygon into disjoint triangles. Every triangulation of n-vertex convex polygon has _____ chords and divides the polygon into _____ triangles.
A n – 2, n – 1
B n – 3, n – 2
C n – 1, n
D n – 2, n – 2

Answer: Option [B]