Computer Science

This quiz covers fundamental concepts and topics in Computer Science.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the purpose of a compiler in computer programming?

  1. To convert high-level programming language code into machine code
  2. To execute programs written in high-level programming languages
  3. To debug and fix errors in programs
  4. To manage memory allocation and deallocation
Question 2 Multiple Choice (Single Answer)

Which data structure is commonly used to store and organize data in a hierarchical manner?

  1. Array
  2. Linked List
  3. Stack
  4. Tree
Question 3 Multiple Choice (Single Answer)

What is the primary function of an operating system in a computer?

  1. To manage hardware resources
  2. To provide a user interface
  3. To run application programs
  4. To store data
Question 4 Multiple Choice (Single Answer)

Which programming paradigm emphasizes the use of objects and classes to represent real-world entities?

  1. Procedural Programming
  2. Object-Oriented Programming
  3. Functional Programming
  4. Logic Programming
Question 5 Multiple Choice (Single Answer)

What is the process of breaking down a problem into smaller, more manageable subproblems called?

  1. Recursion
  2. Decomposition
  3. Iteration
  4. Abstraction
Question 6 Multiple Choice (Single Answer)

Which algorithm is commonly used for searching a sorted array?

  1. Linear Search
  2. Binary Search
  3. Breadth-First Search
  4. Depth-First Search
Question 7 Multiple Choice (Single Answer)

What is the purpose of a loop in programming?

  1. To execute a block of code repeatedly
  2. To store data in memory
  3. To compare values and make decisions
  4. To input and output data
Question 8 Multiple Choice (Single Answer)

Which data structure is commonly used to store and retrieve data in a first-in-first-out (FIFO) manner?

  1. Array
  2. Linked List
  3. Stack
  4. Queue
Question 9 Multiple Choice (Single Answer)

What is the term for the process of converting a high-level programming language statement into machine code?

  1. Compilation
  2. Interpretation
  3. Execution
  4. Debugging
Question 10 Multiple Choice (Single Answer)

Which programming paradigm emphasizes the use of mathematical functions and expressions to solve problems?

  1. Procedural Programming
  2. Object-Oriented Programming
  3. Functional Programming
  4. Logic Programming
Question 11 Multiple Choice (Single Answer)

What is the purpose of a variable in programming?

  1. To store data temporarily
  2. To perform calculations
  3. To control the flow of a program
  4. To input and output data
Question 12 Multiple Choice (Single Answer)

Which algorithm is commonly used for sorting an array of elements?

  1. Linear Search
  2. Binary Search
  3. Bubble Sort
  4. Merge Sort
Question 13 Multiple Choice (Single Answer)

What is the process of identifying and fixing errors in a program called?

  1. Compilation
  2. Interpretation
  3. Execution
  4. Debugging
Question 14 Multiple Choice (Single Answer)

Which data structure is commonly used to represent a collection of unique elements?

  1. Array
  2. Linked List
  3. Stack
  4. Set
Question 15 Multiple Choice (Single Answer)

What is the term for the process of translating a high-level programming language statement into an intermediate representation?

  1. Compilation
  2. Interpretation
  3. Execution
  4. Debugging