Connect with us

Hi, what are you looking for?

Past Questions and Answers

SS3 Third Term Computer Science Past Questions And Answers

Sponsored Links

SS3 Third Term Computer Science Past Questions And Answers

 

Here are 20 SS3 third term Computer Science questions with options and answers:

 

Question: What is the purpose of the “finally” block in a try-except-finally structure in Python?

 

A) To handle exceptions

B) To ensure a block of code is always executed

C) To define a function

D) To import external libraries

Answer: B) To ensure a block of code is always executed

Question: Which data structure is suitable for implementing a priority queue?

 

A) Stack

B) Queue

C) Heap

D) Linked List

Answer: C) Heap

Question: What is the purpose of the “grep” command in Unix/Linux?

 

A) Search for a file

B) Search for a text pattern in files

C) Copy files

D) Move files

Answer: B) Search for a text pattern in files

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

 

A) Hiding the implementation details of an object

B) Using a single interface for multiple types of data

C) Inheriting properties from a superclass

D) Initializing variables in a constructor

Answer: B) Using a single interface for multiple types of data

Question: Which algorithm is commonly used for pathfinding in graphs?

 

A) Depth-First Search (DFS)

B) Breadth-First Search (BFS)

C) Dijkstra’s Algorithm

D) QuickSort

Answer: C) Dijkstra’s Algorithm

Question: What is the role of the HTTP status code “404”?

 

A) OK (Request successful)

B) Not Found (Resource not found)

C) Unauthorized (Access denied)

D) Internal Server Error

Answer: B) Not Found (Resource not found)

Question: Which design pattern is used to restrict the instantiation of a class to a single instance?

 

A) Factory Pattern

B) Singleton Pattern

C) Observer Pattern

D) Decorator Pattern

Answer: B) Singleton Pattern

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

 

A) A key used for encryption

B) A primary key in another table

C) A key used for sorting

D) A unique identifier for a record

Answer: B) A primary key in another table

Question: What is the purpose of the “chmod” command in Unix/Linux?

 

A) Change the system hostname

B) Modify file permissions

C) Compress files

D) Change the owner of a file

Answer: B) Modify file permissions

Question: Which of the following is a benefit of using a virtual machine (VM)?

 

A) Decreased isolation

B) Increased hardware dependency

C) Platform independence

D) Limited resource allocation

Answer: C) Platform independence

Question: What is the primary purpose of the OSI model in networking?

 

A) Define programming languages

B) Provide a framework for understanding network functions

C) Implement security protocols

D) Develop web applications

Answer: B) Provide a framework for understanding network functions

Question: Which SQL clause is used to filter the results of a SELECT statement based on a specified condition?

 

A) GROUP BY

B) ORDER BY

C) WHERE

D) HAVING

Answer: C) WHERE

Question: What is the role of a cache in computer systems?

 

A) Increase primary storage capacity

B) Store temporary copies of frequently accessed data

C) Execute low-level machine code

D) Manage network connections

Answer: B) Store temporary copies of frequently accessed data

Question: Which encryption algorithm is commonly used for securing online communications through HTTPS?

 

A) DES (Data Encryption Standard)

B) RSA (Rivest–Shamir–Adleman)

C) AES (Advanced Encryption Standard)

D) MD5 (Message Digest Algorithm)

Answer: C) AES (Advanced Encryption Standard)

Question: What is the purpose of the “npm” command in JavaScript development?

 

A) Network Package Manager

B) Node Package Manager

C) New Project Manager

D) Node Programming Module

Answer: B) Node Package Manager

Question: Which of the following is a characteristic of a distributed database system?

 

A) Centralized data storage

B) Single-point-of-failure

C) Low fault tolerance

D) Data distribution across multiple nodes

Answer: D) Data distribution across multiple nodes

Question: What is the purpose of the “finally” block in exception handling?

 

A) To define a function

B) To handle exceptions

C) To ensure a block of code is always executed

D) To import external libraries

Answer: C) To ensure a block of code is always executed

Question: Which of the following is a characteristic of agile software development?

 

A) Extensive documentation upfront

B) Fixed and rigid project requirements

C) Emphasis on adaptability and collaboration

D) Long development cycles

Answer: C) Emphasis on adaptability and collaboration

Question: What is the purpose of the “jar” command in Java development?

 

A) Create a compressed archive

B) Execute Java applications

C) Compile Java source code

D) Manage external dependencies

Answer: A) Create a compressed archive

Question: In cybersecurity, what does the term “phishing” refer to?

 

A) A type of malware

B) Unauthorized access to a network

C) Social engineering to trick users

D) Network intrusion detection

Answer: C) Social engineering to trick users.

Share This:
Click to comment

Leave a Reply

You May Also Like

Sponsored Links

You cannot copy content of this page