












































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













































































Question 1. What is the main purpose of using decomposition in computational thinking? A) To increase program speed B) To break down complex problems into manageable parts C) To check data accuracy D) To compile code Answer: B Explanation: Decomposition helps solve complex problems by dividing them into simpler, more manageable components. Question 2. Which of the following best defines abstraction in computer science? A) Removing necessary details B) Adding more complexity C) Ignoring the problem D) Hiding unnecessary details to focus on essentials Answer: D Explanation: Abstraction involves hiding details that are not relevant so programmers can focus on important aspects. Question 3. In a flow chart, which symbol is used to represent a decision? A) Oval B) Parallelogram C) Diamond D) Rectangle Answer: C Explanation: The diamond shape is universally used in flowcharts to indicate decision points.
Question 4. Which data type is most appropriate for storing a person’s age? A) Boolean B) String C) Integer D) Float Answer: C Explanation: Age is a whole number, so the integer data type is most suitable. Question 5. What is the primary use of a variable in programming? A) To store data values for later use B) To run loops C) To define functions D) To process input Answer: A Explanation: Variables are used to store and manipulate data values during program execution. Question 6. What does ‘iteration’ refer to in programming? A) Conditional branching B) Repeating a set of instructions C) Commenting code D) Naming variables Answer: B Explanation: Iteration means repeatedly executing a block of code using loops.
Question 10. What does the bubble sort algorithm repeatedly do? A) Finds the smallest element B) Swaps adjacent elements that are out of order C) Divides the array in half D) Moves elements to the end Answer: B Explanation: Bubble sort compares and swaps adjacent elements until the list is sorted. Question 11. What is the main advantage of using quick sort over bubble sort? A) It uses less memory B) It is easier to code C) It is typically faster D) It works on strings Answer: C Explanation: Quick sort is generally more efficient and faster on average than bubble sort. Question 12. Which search algorithm checks each element in order until the target is found? A) Binary search B) Linear search C) Depth-first search D) Breadth-first search Answer: B Explanation: Linear search examines each item sequentially to find a match.
Question 13. What is required for binary search to work correctly? A) Unsorted data B) Sorted data C) String data D) Large data Answer: B Explanation: Binary search only works on sorted data sets. Question 14. What is a key feature of procedural programming? A) Code is written as objects B) Focuses on procedures or routines C) Uses event handlers D) Runs only in web browsers Answer: B Explanation: Procedural programming uses procedures or functions to structure code. Question 15. Which programming paradigm uses classes and objects? A) Procedural B) Functional C) Object-oriented D) Assembly Answer: C Explanation: Object-oriented programming is based on classes and objects.
Question 19. What is the function of a compiler? A) Converts high-level code to machine code B) Executes code line by line C) Edits images D) Stores data Answer: A Explanation: A compiler translates an entire program into machine code before execution. Question 20. What is an interpreter’s main role? A) Translates code all at once B) Translates and executes code line by line C) Compresses files D) Manages memory Answer: B Explanation: Interpreters translate and execute each line of code one at a time. Question 21. Which of the following is NOT a type of computer system? A) Desktop B) Server C) Smartphone D) Printer Answer: D Explanation: Printers are output devices, not computer systems.
Question 22. What is the main function of the CPU? A) Store data B) Process instructions C) Display graphics D) Connect to networks Answer: B Explanation: The CPU processes instructions and manages the execution of tasks. Question 23. What kind of memory is RAM? A) Non-volatile B) Volatile C) Permanent D) Optical Answer: B Explanation: RAM is volatile memory, meaning its contents are lost when power is off. Question 24. Which storage device uses spinning magnetic disks? A) SSD B) HDD C) USB flash drive D) SD card Answer: B Explanation: HDDs use spinning magnetic disks to store data.
Question 28. Which device is primarily used for input? A) Monitor B) Printer C) Keyboard D) Speaker Answer: C Explanation: A keyboard is an input device used to enter data. Question 29. Which is an example of an output device? A) Mouse B) Microphone C) Monitor D) Scanner Answer: C Explanation: The monitor displays output from the computer. Question 30. What is the main purpose of backup storage? A) Increase speed B) Store temporary data C) Recover data in case of loss D) Run programs faster Answer: C Explanation: Backup storage is used to save copies of data for recovery.
Question 31. What is the fetch-decode-execute cycle? A) Memory management process B) Cycle that describes how a CPU processes instructions C) Data storage method D) Networking protocol Answer: B Explanation: This cycle explains how the CPU fetches, decodes, and executes instructions. Question 32. In Von Neumann architecture, where are instructions and data stored? A) Separate memory units B) Same memory unit C) Hard disk D) GPU Answer: B Explanation: Both instructions and data are stored in the same memory in Von Neumann architecture. Question 33. What is the benefit of parallel computing? A) Uses less energy B) Executes multiple tasks simultaneously C) Needs only one CPU D) Increases boot time Answer: B Explanation: Parallel computing speeds up processing by executing multiple tasks at once.
Question 37. Convert the decimal number 15 to binary. A) 1111 B) 1010 C) 1001 D) 1100 Answer: A Explanation: 15 in decimal is 1111 in binary. Question 38. Which data type best represents a true/false condition? A) Integer B) String C) Boolean D) Float Answer: C Explanation: Boolean data type represents true or false values. Question 39. How is a character typically represented in a computer? A) Binary code B) Hexadecimal code C) ASCII code D) All of the above Answer: D Explanation: Characters are represented using binary, hexadecimal, or ASCII codes.
Question 40. What is an array in programming? A) Single value holder B) Collection of variables of different types C) Collection of variables of the same type D) Recursive function Answer: C Explanation: An array stores multiple values of the same data type. Question 41. What is a record in data structures? A) Collection of variables of different types B) Collection of integers C) String variable D) Output device Answer: A Explanation: A record is a collection of fields, possibly of different data types. Question 42. What does RAM stand for? A) Read Access Memory B) Random Access Memory C) Random Array Module D) Rapid Application Memory Answer: B Explanation: RAM stands for Random Access Memory.
Question 46. Which of these is NOT a function of an operating system? A) Memory management B) File management C) Arithmetic calculations D) Process scheduling Answer: C Explanation: Arithmetic calculations are handled by programs, not the OS directly. Question 47. What is the kernel of an operating system? A) A type of storage B) The core part managing operations C) A graphics card D) A printer driver Answer: B Explanation: The kernel is the central component of the OS, managing system operations. Question 48. What is utility software? A) Only games B) Software that performs maintenance tasks C) Compilers D) Device drivers Answer: B Explanation: Utility software helps maintain and optimize computer performance.
Question 49. What is open source software? A) Freeware with no source code B) Software whose source code is available to users C) Only available for Linux D) Encrypted software Answer: B Explanation: Open source software allows users to view and modify its source code. Question 50. Which of the following is an example of application software? A) Antivirus B) Operating system C) Word processor D) Device driver Answer: C Explanation: Word processors are application software used for document creation. Question 51. What is the purpose of device drivers? A) Manage storage B) Allow OS to communicate with hardware C) Compress files D) Run security scans Answer: B Explanation: Device drivers enable the OS to interact with hardware devices.
Question 55. What is the main function of a firewall? A) Increase network speed B) Filter incoming and outgoing network traffic C) Store backup data D) Print documents Answer: B Explanation: Firewalls monitor and control network traffic for security. Question 56. What is the typical use of a proxy server? A) Store user passwords B) Act as an intermediary for requests from clients C) Manage printers D) Check for viruses Answer: B Explanation: Proxy servers act as intermediaries between clients and external servers. Question 57. What is a LAN? A) Large Area Network B) Local Area Network C) Logical Access Node D) Long Access Network Answer: B Explanation: LAN stands for Local Area Network, connecting devices in a small area.
Question 58. Which topology connects all devices to a central hub? A) Bus B) Star C) Mesh D) Ring Answer: B Explanation: In a star topology, all devices connect to a central hub. Question 59. What is a mesh network topology? A) Devices connected in a line B) Every device connects to every other device C) Devices connected in a circle D) Devices connected to a single cable Answer: B Explanation: In mesh topology, each device connects to every other device. Question 60. What is the main advantage of using fiber optic cable? A) Cheaper than copper B) Faster data transmission and less interference C) Easier to install D) Uses wireless signals Answer: B Explanation: Fiber optic cables provide high speed and low interference.