Past Questions and AnswersUniversities

SS3 First Term Computer Science Past Questions And Answers

Sponsored Links

SS3 First Term Computer Science Past Questions And Answers

These questions span various topics, from programming languages and algorithms to database management and networking concepts. Whether you’re an aspiring coder or a seasoned student, let’s unravel the complexity of computer science together. Brace yourself for the mental workout, and let’s see how many questions you can conquer!

 

11. What is the role of a constructor in object-oriented programming?

a) To initialize the object’s data members

b) To create a new instance of a class

c) To perform mathematical operations

d) To define the structure of a class

 

Answer: a) To initialize the object’s data members

 

12. In the context of cybersecurity, what does the term ‘phishing’ refer to?

a) A technique for testing network security

b) A type of malware

c) A fraudulent attempt to obtain sensitive information by disguising as a trustworthy entity

d) A hardware security measure

 

Answer: c) A fraudulent attempt to obtain sensitive information by disguising as a trustworthy entity

 

13. Which of the following is a key characteristic of dynamic programming?

a) Breaking a problem into smaller subproblems and solving each subproblem only once

b) Iterative enhancement of software during development

c) Assigning priorities to tasks based on their importance

d) Executing multiple processes simultaneously

 

Answer: a) Breaking a problem into smaller subproblems and solving each subproblem only once

 

14. What is the purpose of the ‘else’ statement in Python’s conditional structures?

a) It is executed if an exception occurs

b) It is always executed, regardless of the condition

c) It is executed when the preceding ‘if’ condition is false

d) It is executed before the ‘if’ block

 

Answer: c) It is executed when the preceding ‘if’ condition is false

 

15. Which of the following is a non-volatile memory type often used as primary storage in computers?

a) RAM (Random Access Memory)

b) ROM (Read-Only Memory)

c) Cache memory

d) Hard Disk Drive (HDD)

 

Answer: b) ROM (Read-Only Memory)

 

16. What is the primary function of an index in a database?

a) To store large volumes of data

b) To speed up data retrieval by providing quick access to specific rows

c) To define the structure of a table

d) To encrypt sensitive information

 

Answer: b) To speed up data retrieval by providing quick access to specific rows

 

17. Which sorting algorithm has a time complexity of O(n^2) in its worst-case scenario?

a) Quick Sort

b) Merge Sort

c) Bubble Sort

d) Insert

ion Sort

 

Answer: c) Bubble Sort

Sponsored Links

Leave a Reply

Back to top button