SS1 Second Term Computer Science Past Questions And Answers
Here are 20 SS1 second term Computer Science questions with options and answers:
Question: What is the purpose of a primary key in a database?
A) Store large amounts of data
B) Identify unique records
C) Perform complex calculations
D) Create backups
Answer: B) Identify unique records
Question: Which data structure follows the Last In, First Out (LIFO) principle?
A) Queue
B) Stack
C) Linked List
D) Tree
Answer: B) Stack
Question: What is the role of an index in a database table?
A) Sort data alphabetically
B) Optimize search operations
C) Encrypt sensitive information
D) Define data types
Answer: B) Optimize search operations
Question: Which of the following is an example of a high-level programming language?
A) Assembly language
B) Machine language
C) Java
D) Binary code
Answer: C) Java
Question: What is the purpose of the ‘else’ statement in programming?
A) Looping
B) Decision-making
C) Variable declaration
D) Function definition
Answer: B) Decision-making
Question: Which type of software is responsible for managing hardware resources and providing a user interface?
A) Operating system
B) Application software
C) Database software
D) Firewall
Answer: A) Operating system
Question: What is the primary function of a router in a computer network?
A) Connect devices within a local network
B) Provide internet access
C) Block unauthorized access
D) Manage file storage
Answer: A) Connect devices within a local network
Question: In object-oriented programming, what is encapsulation?
A) Hiding the implementation details
B) Connecting to a database
C) Sorting data
D) Looping
Answer: A) Hiding the implementation details
Question: Which of the following is a characteristic of a good algorithm?
A) Complexity
B) Reusability
C) Database size
D) Network speed
Answer: B) Reusability
Question: What is the purpose of the ‘break’ statement in programming?
A) End the program
B) Exit a loop prematurely
C) Display a message
D) Print output
Answer: B) Exit a loop prematurely
Question: Which of the following is an example of a file extension used for a compressed archive?
A) .exe
B) .zip
C) .txt
D) .jpg
Answer: B) .zip
Question: What is the primary function of an antivirus software?
A) Manage hardware resources
B) Block unauthorized access
C) Protect against malware
D) Provide internet connectivity
Answer: C) Protect against malware
Question: Which programming paradigm is based on the concept of objects?
A) Procedural programming
B) Functional programming
C) Object-oriented programming (OOP)
D) Scripting
Answer: C) Object-oriented programming (OOP)
Question: What is the purpose of the ‘return’ statement in a function?
A) Start the function
B) End the program
C) Output a value and exit the function
D) Create a loop
Answer: C) Output a value and exit the function
Question: Which of the following is an example of a network topology?
A) Algorithm
B) Protocol
C) Star
D) Compiler
Answer: C) Star
Question: What does RAID stand for in the context of data storage?
A) Random Access and Integrated Drive
B) Redundant Array of Independent Disks
C) Rapid Access and Intelligent Data
D) Read-Only Access and Integrated Disk
Answer: B) Redundant Array of Independent Disks
Question: Which data type is used to store decimal numbers in programming?
A) Float
B) Integer
C) Character
D) String
Answer: A) Float
Question: What is the purpose of the ‘try’ and ‘except’ blocks in exception handling?
A) Define variables
B) Execute a specific task
C) Handle errors
D) Create a loop
Answer: C) Handle errors
Question: In networking, what is the function of the IP address?
A) Identify a device on the internet
B) Manage file storage
C) Execute code line by line
D) Provide internet access
Answer: A) Identify a device on the internet
Question: Which of the following is an example ofa utility software?
A) Microsoft Word
B) Adobe Photoshop
C) Disk Cleanup
D) Google Chrome
Answer: C) Disk Cleanup.