Computer Science MCQs | Computer Science Multiple Choice Questions with Answers

Questions
1 The set A={ 0n 1n 2n | n=1, 2, 3, ......... } is an example of a grammar that is :
A Context sensitive
B Context free
C Regular
D None of the above

Answer: Option [A]
2 A slotted ALOHA network transmits 200-bit frames using a shared channel with a 200 Kbps bandwidth. Find the throughput of the system, if the system (all stations put together) produces 250 frames per second :
A 49
B 368
C 149
D 151

Answer: Option [B]
3 The period of a signal is 100 ms. Its frequency is _________.
A 1003 Hertz
B 10−2 KHz
C 10−3 KHz
D 105 Hertz

Answer: Option [D]
4 The dotted-decimal notation of the following IPV4 address in binary notation is _________. 10000001 00001011 00001011 11101111
A 111.56.45.239
B 129.11.10.238
C 129.11.11.239
D 111.56.11.239

Answer: Option [A]
5 In Challenge-Response authentication the claimant ________.
A Proves that she knows the secret without revealing it
B Proves that she doesn’t know the secret
C Reveals the secret
D Gives a challenge

Answer: Option [B]
6 Decrypt the message “WTAAD” using the Caesar Cipher with key=15.
A LIPPS
B HELLO
C OLLEH
D DAATW

Answer: Option [B]
7 To guarantee correction of upto t errors, the minimum Hamming distance dmin in a block code must be ________.
A t+1
B t−2
C 2t−1
D 2t+1

Answer: Option [B]
8 Encrypt the Message “HELLO MY DEARZ” using Transposition Cipher with P lain Text 2 4 1 3 Key Cipher Text 1 2 3 4   
A HLLEO YM AEDRZ
B EHOLL ZYM RAED
C ELHL MDOY AZER
D ELHL DOMY ZAER

Answer: Option [B]
9 At a particular time of computation, the value of a counting semaphore is 10. Then 12 P operations and “x” V operations were performed on this semaphore. If the final value of semaphore is 7, x will be :
A 8
B 9
C 10
D 11

Answer: Option [B]
10 In a paged memory, the page hit ratio is 0.40. The time required to access a page in secondary memory is equal to 120 ns. The time required to access a page in primary memory is 15 ns. The average time required to access a page is ________.
A 105
B 68
C 75
D 78

Answer: Option [B]
11 In a multi-user operating system, 30 requests are made to use a particular resource per hour, on an average. The probability that no requests are made in 40 minutes, when arrival pattern is a poisson distribution, is _________.
A e−15
B 1−e−15
C 1−e−20
D e−20

Answer: Option [A]
12 Normally user programs are prevented from handling I/O directly by I/O instructions in them. For CPUs having explicit I/O instructions, such I/O protection is ensured by having the I/O instructions privileged. In a CPU with memory mapped I/O, there is no explicit I/O instruction. Which one of the following is true for a CPU with memory mapped I/O ?
A I/O protection is ensured by operating system routines
B I/O protection is ensured by a hardware trap
C I/O protection is ensured during system configuration
D I/O protection is not possible

Answer: Option [B]
13 Which UNIX/Linux command is used to make all files and sub-directories in the directory “progs” executable by all users ?
A chmod− R a+x progs
B chmod −R 222 progs
C chmod−X a+x progs
D chmod −X 222 progs

Answer: Option [D]
14 Page information in memory is also called as Page Table. The essential contents in each entry of a page table is/are _________.
A Page Access information
B Virtual Page number
C Page Frame number
D Both virtual page number and Page Frame Number

Answer: Option [A]
15 Consider a virtual page reference string 1, 2, 3, 2, 4, 2, 5, 2, 3, 4. Suppose LRU page replacement algorithm is implemented with 3 page frames in main memory. Then the number of page faults are_________.
A 5
B 7
C 9
D 10

Answer: Option [B]
16 In which of the following scheduling criteria, context switching will never take place ?
A ROUND ROBIN
B Preemptive SJF
C Non-preemptive SJF
D Preemptive priority

Answer: Option [B]
17 In RDBMS, which type of Join returns all rows that satisfy the join condition ?
A Inner Join
B Outer Join
C Semi Join
D Anti Join

Answer: Option [B]
18 In a Hierachical database, a hashing function is used to locate the ________.
A Collision
B Root
C Foreign Key
D Records

Answer: Option [B]
19 Relations produced from E - R Model will always be in ________.
A 1 NF
B 2 NF
C 3 NF
D 4 NF

Answer: Option [B]
20 A many-to-one relationship exists between entity sets r1 and r2. How will it be represented using functional depedencies if Pk(r) denotes the primary key attribute of relation r ?
A Pk(r1) → Pk(r2)
B Pk(r2) → Pk(r1)
C Pk(r2) → Pk(r1) and Pk(r1) → Pk(r2)
D Pk(r2) → Pk(r1) or Pk(r1) → Pk(r2)

Answer: Option [B]