Computer Science
This quiz covers fundamental concepts and topics in Computer Science.
Questions
What is the purpose of a compiler in computer programming?
- To convert high-level programming language code into machine code
- To execute programs written in high-level programming languages
- To debug and fix errors in programs
- To manage memory allocation and deallocation
Which data structure is commonly used to store and organize data in a hierarchical manner?
- Array
- Linked List
- Stack
- Tree
What is the primary function of an operating system in a computer?
- To manage hardware resources
- To provide a user interface
- To run application programs
- To store data
Which programming paradigm emphasizes the use of objects and classes to represent real-world entities?
- Procedural Programming
- Object-Oriented Programming
- Functional Programming
- Logic Programming
What is the process of breaking down a problem into smaller, more manageable subproblems called?
- Recursion
- Decomposition
- Iteration
- Abstraction
Which algorithm is commonly used for searching a sorted array?
- Linear Search
- Binary Search
- Breadth-First Search
- Depth-First Search
What is the purpose of a loop in programming?
- To execute a block of code repeatedly
- To store data in memory
- To compare values and make decisions
- To input and output data
Which data structure is commonly used to store and retrieve data in a first-in-first-out (FIFO) manner?
- Array
- Linked List
- Stack
- Queue
What is the term for the process of converting a high-level programming language statement into machine code?
- Compilation
- Interpretation
- Execution
- Debugging
Which programming paradigm emphasizes the use of mathematical functions and expressions to solve problems?
- Procedural Programming
- Object-Oriented Programming
- Functional Programming
- Logic Programming
What is the purpose of a variable in programming?
- To store data temporarily
- To perform calculations
- To control the flow of a program
- To input and output data
Which algorithm is commonly used for sorting an array of elements?
- Linear Search
- Binary Search
- Bubble Sort
- Merge Sort
What is the process of identifying and fixing errors in a program called?
- Compilation
- Interpretation
- Execution
- Debugging
Which data structure is commonly used to represent a collection of unique elements?
- Array
- Linked List
- Stack
- Set
What is the term for the process of translating a high-level programming language statement into an intermediate representation?
- Compilation
- Interpretation
- Execution
- Debugging