Past Questions and Answers

SS2 Second Term Computer Science Past Questions And Answers

Sponsored Links

SS2 Second Term Computer Science Past Questions And Answers

Here are the SS2 Computer Science Past Questions And Answers for examination practice

Question: What is the purpose of the “for” loop in programming?

 

A. Conditional execution

B. Function definition

C. Iterative execution

D. Variable declaration

Answer: C

Question: Which type of network topology connects all devices in a linear sequence?

 

A. Bus

B. Ring

C. Star

D. Mesh

Answer: A

Question: What is the primary function of an algorithm?

 

A. Data storage

B. Problem-solving

C. User interface design

D. Network communication

Answer: B

Question: In relational databases, what is a foreign key?

 

A. A key for encrypting data

B. A key used for indexing

C. A key that uniquely identifies a record

D. A key that links two tables together

Answer: D

Question: Which programming paradigm emphasizes the use of objects and classes?

 

A. Procedural

B. Functional

C. Object-Oriented

D. Event-Driven

Answer: C

Question: What is the purpose of the “while” loop in programming?

 

A. Conditional execution

B. Function definition

C. Continuous execution

D. Variable declaration

Answer: C

Question: In computer graphics, what does RGB stand for?

 

A. Red, Green, Blue

B. Read, Grey, Black

C. Random Graphics Buffer

D. Real-time Graphics Base

Answer: A

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

Question: What is the function of an index in a database?

 

A. Sorting data

B. Searching data efficiently

C. Encrypting data

D. Creating backups

Answer: B

Question: Which of the following is a volatile memory type?

 

A. ROM

B. Flash memory

C. RAM

D. Hard disk

Answer: C

Question: In networking, what does LAN stand for?

 

A. Local Access Network

B. Large Area Network

C. Local Area Network

D. Linked Access Network

Answer: C

Question: What is the role of a variable in programming?

 

A. Execute code

B. Store and manipulate data

C. Define functions

D. Manage hardware resources

Answer: B

Question: Which sorting algorithm has a quadratic time complexity in the worst case?

 

A. Quick Sort

B. Merge Sort

C. Bubble Sort

D. Insertion Sort

Answer: C

Question: What is the purpose of the “switch” statement in programming?

 

A. Conditional execution

B. Looping

C. Function definition

D. Multiple branch selection

Answer: D

Question: What is the role of an assembler in computer programming?

 

A. Translates high-level code to machine code

B. Converts assembly language to machine code

C. Manages memory allocation

D. Executes code

Answer: B

Question: Which programming language is commonly used for web development and server-side scripting?

 

A. JavaScript

B. HTML

C. CSS

D. PHP

Answer: D

Question: What is the purpose of the “break” statement in programming?

 

A. Exit a loop or switch statement

B. Define a function

C. Print output to the console

D. Resume program execution

Answer: A

Question: In the context of databases, what does CRUD stand for?

 

A. Compute, Read, Update, Delete

B. Create, Read, Update, Destroy

C. Control, Report, Undo, Delete

D. Copy, Replace, Update, Destroy

Answer: B

Question: Which of the following is a fundamental building block of object-oriented programming?

 

A. Variable

B. Object

C. Function

D. Loop

Answer: B

Question: What is the purpose of the DNS (Domain Name System) in networking?

 

A. Encrypting data

B. Translating domain names to IP addre

sses

C. Managing hardware resources

D. Securing network connections

Answer: B

Sponsored Links

Leave a Reply

Back to top button