Polytechnic Computer Science 2 — Questions and Answers
Question 1: What does CPU stand for?
- Central Processing Unit (Correct answer)
- Core Processing Unit
- Central Program Utility
- Computer Processing Unit
Correct answer: Central Processing Unit
CPU stands for Central Processing Unit, the primary component that executes instructions in a computer.
Question 2: What is the purpose of an operating system?
- To manage hardware resources and provide services to applications (Correct answer)
- To run only one program at a time
- To store files permanently
- To connect the computer to the internet
Correct answer: To manage hardware resources and provide services to applications
An operating system manages hardware resources, memory, processes, and provides a platform for applications to run.
Question 3: What does OOP stand for in programming?
- Object-Oriented Programming (Correct answer)
- Open-Oriented Programming
- Optimized Object Processing
- Output-Oriented Programming
Correct answer: Object-Oriented Programming
OOP stands for Object-Oriented Programming, a paradigm that organizes code around objects with attributes and methods.
Question 4: What is the function of RAM in a computer?
- Temporary storage for currently running programs and data (Correct answer)
- Permanent storage for files
- Processing mathematical operations
- Managing network connections
Correct answer: Temporary storage for currently running programs and data
RAM (Random Access Memory) is volatile memory that temporarily stores data and instructions for actively running programs.
Question 5: Which protocol is used to send email?
- SMTP (Correct answer)
- HTTP
- FTP
- DNS
Correct answer: SMTP
SMTP (Simple Mail Transfer Protocol) is the standard protocol used for sending email messages between servers.
Question 6: What is recursion in programming?
- A function that calls itself to solve a problem (Correct answer)
- A loop that runs indefinitely
- A type of data structure
- A method for sorting arrays
Correct answer: A function that calls itself to solve a problem
Recursion is a technique where a function calls itself with a smaller input until it reaches a base case.
What does CPU stand for?