Past Questions and Answers

SS2 First Term Computer Science Past Questions And Answers

Sponsored Links

SS2 First Term Computer Science Past Questions And Answers

20 multiple-choice questions for SS2 Computer Science:

 

Question: What does HTML stand for?

 

A. Hyper Text Markup Language

B. High-level Text Management Language

C. Hyperlink and Text Manipulation Language

D. High-level Text Markup Language

Answer: A

Question: Which programming language is often used for developing Android applications?

 

A. Java

B. Python

C. C++

D. Ruby

Answer: A

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

 

A. Looping

B. Conditional execution

C. Function definition

D. Variable declaration

Answer: B

Question: Which data structure uses the Last In, First Out (LIFO) principle?

 

A. Queue

B. Stack

C. Linked List

D. Array

Answer: B

Question: In networking, what does TCP stand for?

 

A. Transfer Control Protocol

B. Transmission Control Protocol

C. Textual Communication Protocol

D. Terminal Connection Protocol

Answer: B

Question: What is the primary purpose of an operating system?

 

A. File management

B. Hardware management

C. Application development

D. Network communication

Answer: B

Question: Which of the following is not a programming paradigm?

 

A. Object-Oriented

B. Functional

C. Sequential

D. Networked

Answer: D

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

 

A. Executes code

B. Translates code to machine language

C. Debugs code

D. Manages memory allocation

Answer: B

Question: Which programming language is known for its simplicity and readability, often used for beginners?

 

A. C++

B. Java

C. Python

D. Ruby

Answer: C

Question: What does the acronym SQL stand for?

 

A. Structured Query Language

B. Simple Query Language

C. Scripted Query Language

D. System Query Language

Answer: A

Question: Which of the following is an example of a high-level programming language?

 

A. Assembly language

B. Machine language

C. Python

D. Binary code

Answer: C

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

 

A. Define a function

B. Handle errors

C. Provide an alternative condition

D. Create a loop

Answer: C

Question: Which data structure organizes data in a hierarchy with a root and branches?

 

A. Stack

B. Queue

C. Tree

D. Linked List

Answer: C

Question: In object-oriented programming, what is encapsulation?

 

A. Hiding implementation details

B. Connecting objects

C. Dynamic memory allocation

D. Looping mechanism

Answer: A

Question: What does HTTP stand for?

 

A. HyperText Transfer Protocol

B. High-Level Text Protocol

C. Hyperlink and Text Transmission Protocol

D. Hypertext and Terminal Transfer Protocol

Answer: A

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

 

A. RAM

B. Cache memory

C. ROM

D. Virtual memory

Answer: C

Question: What is the purpose of a firewall in computer networks?

 

A. Data encryption

B. Access control

C. File storage

D. Printer management

Answer: B

Question: What is the binary equivalent of the decimal number 25?

 

A. 10100

B. 11001

C. 11111

D. 10011

Answer: B

Question: Which sorting algorithm has a worst-case time complexity of O(n log n)?

 

A. Bubble Sort

B. Insertion Sort

C. Quick Sort

D. Selection Sort

Answer: C

Question: In database terminology, what does CRUD stand for?

 

A. Create, Read, Update, De

lete

B. Copy, Replace, Update, Destroy

C. Control, Report, Undo, Delete

D. Compute, Record, Update, Delete

Answer: A

Sponsored Links

Leave a Reply

Back to top button