About Computer Science

Computer Science MCQs can cover hardware, operating systems, programming, databases, networks, and basic information security. Start with the concepts that recur across topics: how data is represented, what memory and storage do, how instructions run, and how computers communicate. Once the basics are clear, study how the pieces work together in a simple system.

Work through examples you can trace yourself. Follow the value of a variable through a loop, draw the shape of a database table, or describe what happens when a browser requests a page. Explain the difference between a primary key and a foreign key, or between an operating system and an application, before you try to memorise formal definitions. These comparisons help when several answer choices sound technically plausible.

For recruitment-test preparation, alternate short topic sets with mixed Computer Science MCQs. Read the explanation after each mistake and note whether the gap was vocabulary, reasoning, or a calculation such as converting between number bases. Use a timed set after you have practised reading code and interpreting tables carefully. Check the syllabus for your specific post to decide how much time to spend on specialist areas.

Browse sections
All MCQs All Computer Science questions

Computer Science Questions

Clear filters

4567 matching questions

What is the pre-processing time of Rabin and Karp Algorithm?

  • ATheta(m2)
  • BTheta(mlogn)
  • CTheta(m)
  • DBig-Oh(n)
Show answerHide answer

Correct answer C

The pre-processing time of Rabin and Karp Algorithm is Theta(m). The for loop in the pre-processing algorithm runs for m (the length of the pattern) times, hence the pre-processing time is Theta(m). This is the time complexity of the pre-processing phase of the Karp-Rabin algorithm.

Which of the following is the Best Case Time Complexity Quicksort algorithm?

  • AO(n log n²)
  • BO²(n log n)
  • CO(n log n)
  • DNone of these
Show answerHide answer

Correct answer C

Best case occurs when the pivot divides the array into two equal halves each time. This leads to a balanced recursion tree. Hence, Quick Sort runs in O(n log n) time in the best case. Key facts: Average case → O(n log n) Worst case → O(n²) Example size: n = 8 → log₂(8) = 3 levels Total comparisons ≈ n log n.

Hardware of computer includes ___?

  • APhysical part
  • BHard disk
  • CBoth
  • DNone of these
Show answerHide answer

Correct answer C

Computer hardware includes the physical parts of a computer, such as the case, central processing unit, monitor, mouse, keyboard, computer data storage, graphics card, sound card, speakers and motherboard.

Have a useful question? Submit an MCQ