MCQs / Computer Science / Unit 1: Computer Systems

Unit 1: Computer Systems MCQs — Computer Science (page 4)

100 multiple-choice questions on Unit 1: Computer Systems from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.

76. Joining both inputs of a NAND gate together makes a:

  1. OR gate
  2. NOT gate
  3. buffer
  4. AND gate

Answer: B) NOT gate

Explanation: (A·A)' = A', so a NAND with both inputs tied is an inverter. SLO CS-11-A-01

Discuss this question

77. Which signal can take only a limited number of discrete values?

  1. Analog
  2. Sound wave
  3. Digital
  4. Sine wave

Answer: C) Digital

Explanation: Digital signals use discrete levels (0 and 1); analog signals are continuous. SLO CS-11-A-01

Discuss this question

78. The simplified form of F = AB + AB' is:

  1. A
  2. AB
  3. 1
  4. B

Answer: A) A

Explanation: F = A(B + B') = A · 1 = A. SLO CS-11-A-01

Discuss this question

79. Which expression represents a NAND gate?

  1. A + B
  2. (A + B)'
  3. (AB)'
  4. A'B'

Answer: C) (AB)'

Explanation: NAND is NOT-AND: (AB)'. By De Morgan it also equals A' + B'. SLO CS-11-A-01

Discuss this question

80. Which gates are called universal gates?

  1. XOR and XNOR
  2. NAND and NOR
  3. NOT and AND
  4. AND and OR

Answer: B) NAND and NOR

Explanation: Any logic function can be built using only NAND gates or only NOR gates. SLO CS-11-A-01

Discuss this question

81. How many rows does the truth table of a 3-input logic expression have?

  1. 6
  2. 3
  3. 8
  4. 9

Answer: C) 8

Explanation: With n inputs there are 2^n combinations: 2^3 = 8 rows. SLO CS-11-A-01

Discuss this question

82. Injecting a malicious script into a web page so that it runs in other users' browsers is:

  1. brute force
  2. a firewall rule
  3. cross-site scripting (XSS)
  4. DDoS

Answer: C) cross-site scripting (XSS)

Explanation: XSS injects scripts through unvalidated input. SLO CS-11-A-04

Discuss this question

83. Which topology is the most reliable because it offers multiple paths between nodes?

  1. Star
  2. Ring
  3. Mesh
  4. Bus

Answer: C) Mesh

Explanation: Mesh has redundant links, so data can take another path if one fails. SLO CS-11-A-03

Discuss this question

84. The main weakness of symmetric encryption is:

  1. it is too slow
  2. it cannot encrypt text
  3. the secret key must be shared safely
  4. it uses two keys

Answer: C) the secret key must be shared safely

Explanation: Both sides need the same key, so key distribution is the problem. SLO CS-11-A-04

Discuss this question

85. The dual of A + 0 = A is:

  1. A · 0 = 0
  2. A · 1 = A
  3. A + 1 = 1
  4. A' + 0 = A'

Answer: B) A · 1 = A

Explanation: Duality swaps AND with OR and 0 with 1, keeping the variables: A · 1 = A. SLO CS-11-A-01

Discuss this question

86. Malware that encrypts your files and demands payment is:

  1. spyware
  2. a worm
  3. ransomware
  4. adware

Answer: C) ransomware

Explanation: Ransomware holds files to ransom. SLO CS-11-A-04

Discuss this question

87. Which SDLC phase produces the Software Requirements Specification (SRS)?

  1. Coding
  2. Requirement analysis
  3. Planning
  4. Maintenance

Answer: B) Requirement analysis

Explanation: Requirements gathered from users are documented in the SRS during analysis. SLO CS-11-A-02

Discuss this question

88. Which identity is correct?

  1. A · A' = 1
  2. A + 1 = 1
  3. A · 1 = 1
  4. A + A' = 0

Answer: B) A + 1 = 1

Explanation: Null law: anything OR 1 is 1. A + A' = 1, A·A' = 0 and A·1 = A. SLO CS-11-A-01

Discuss this question

89. Which type of encryption uses a public key and a private key?

  1. Caesar
  2. Symmetric
  3. Hashing
  4. Asymmetric

Answer: D) Asymmetric

Explanation: Asymmetric (public-key) encryption uses a key pair. SLO CS-11-A-04

Discuss this question

90. Using a password and an OTP sent to your phone is an example of:

  1. hashing
  2. encryption
  3. two-factor authentication
  4. authorization

Answer: C) two-factor authentication

Explanation: Two different factors – something you know and something you have. SLO CS-11-A-04

Discuss this question

91. In Waterfall, a change in requirements discovered during testing is:

  1. cheap to make
  2. expensive, because earlier phases must be redone
  3. impossible
  4. handled in the next sprint

Answer: B) expensive, because earlier phases must be redone

Explanation: Waterfall phases are sequential, so going back is costly. SLO CS-11-A-02

Discuss this question

92. Making the software work on a new version of the operating system is which type of maintenance?

  1. Corrective
  2. Adaptive
  3. Preventive
  4. Perfective

Answer: B) Adaptive

Explanation: Adaptive maintenance adapts software to a changed environment. SLO CS-11-A-02

Discuss this question

93. Which statement about hashing is TRUE?

  1. It can be reversed with a key
  2. It is one-way and gives a fixed-length output
  3. It needs a public key
  4. It is used only for large videos

Answer: B) It is one-way and gives a fixed-length output

Explanation: A hash cannot be reversed and always has the same length (e.g. SHA-256 = 256 bits). SLO CS-11-A-04

Discuss this question

94. A cloud service that adds servers automatically when traffic increases shows:

  1. token passing
  2. redundancy only
  3. duality
  4. elasticity (auto-scaling)

Answer: D) elasticity (auto-scaling)

Explanation: Auto-scaling (elasticity) is how cloud computing provides scalability. SLO CS-11-A-03

Discuss this question

95. "Five nines" availability (99.999%) allows about how much downtime per year?

  1. 5 seconds
  2. 52 minutes
  3. 5 minutes
  4. 5 hours

Answer: C) 5 minutes

Explanation: 0.001% of 525 600 minutes ≈ 5.26 minutes. SLO CS-11-A-03

Discuss this question

96. F = XYZ + XY'Z + X'Z simplifies to:

  1. X + Z
  2. X
  3. Z
  4. XZ

Answer: C) Z

Explanation: XZ(Y + Y') + X'Z = XZ + X'Z = Z(X + X') = Z. SLO CS-11-A-01

Discuss this question

97. A K-map group of four cells in a 3-variable map leaves how many variables in its term?

  1. 1
  2. 2
  3. 4
  4. 3

Answer: A) 1

Explanation: Each doubling of a group removes one variable: 3 − 2 = 1 variable remains. SLO CS-11-A-01

Discuss this question

98. Which model is most suitable for a project whose requirements are fixed and well understood, such as building construction?

  1. Prototyping
  2. Waterfall
  3. Agile
  4. Scrum

Answer: B) Waterfall

Explanation: Waterfall works best when requirements are stable and the phases are sequential. SLO CS-11-A-02

Discuss this question

99. A bank wants to run the new and old systems together until the new one is proven. This changeover is:

  1. direct
  2. parallel
  3. phased
  4. pilot

Answer: B) parallel

Explanation: Parallel running is safest for critical data but most expensive. SLO CS-11-A-02

Discuss this question

100. In which testing does the tester NOT know the internal code?

  1. Black-box testing
  2. Unit testing by the programmer
  3. White-box testing
  4. Code review

Answer: A) Black-box testing

Explanation: Black-box testing checks inputs and outputs against the specification only. SLO CS-11-A-02

Discuss this question

Previous Page 4 of 4

Practise Unit 1: Computer Systems MCQs

More Computer Science chapters