1. Which of the following is an example of an application layer
protocol?
A. TCP
B. IP
C. HTTP
D. MAC
Answer: C) HTTP
Rationale: HTTP (HyperText Transfer Protocol) is an application
layer protocol used for transferring web pages on the internet.
2. What is the main purpose of cloud computing?
A. To provide physical storage for data
B. To run applications on local servers
C. To provide scalable computing resources over the internet
D. To offer offline computing solutions
Answer: C) To provide scalable computing resources over the internet
Rationale: Cloud computing allows users to access scalable computing
resources, such as storage and processing power, over the internet.
3. Which of the following algorithms is used to find the shortest path in
a graph?
,A. Merge Sort
B. Dijkstra’s Algorithm
C. Bubble Sort
D. Breadth-First Search
Answer: B) Dijkstra’s Algorithm
Rationale: Dijkstra’s Algorithm is used to find the shortest path
between nodes in a graph, particularly in weighted graphs.
4. Which of the following is a purpose of the "try-catch" block in Java?
A. To create objects
B. To catch runtime exceptions
C. To prevent memory leaks
D. To declare variables
Answer: B) To catch runtime exceptions
Rationale: The "try-catch" block is used to handle exceptions that may
occur during the execution of a program, preventing the program from
crashing.
5. In the context of software development, what is Agile methodology?
A. A strict, step-by-step development process
B. A flexible, iterative approach to software development
C. A hardware-driven development process
, D. A testing-focused development strategy
Answer: B) A flexible, iterative approach to software development
Rationale: Agile methodology emphasizes iterative development and
flexibility, allowing for frequent changes and improvements based on
feedback.
6. What is the main benefit of using version control systems like Git?
A. It reduces the cost of development
B. It allows multiple developers to work on the same project
simultaneously
C. It automates the testing process
D. It improves the speed of development
Answer: B) It allows multiple developers to work on the same project
simultaneously
Rationale: Version control systems like Git allow developers to
collaborate on the same codebase, track changes, and manage different
versions of the project efficiently.
7. What is the primary advantage of using a linked list over an array?
A. Faster access to elements
B. Fixed size of the data structure
C. Dynamic memory allocation
D. Easier to perform sorting
protocol?
A. TCP
B. IP
C. HTTP
D. MAC
Answer: C) HTTP
Rationale: HTTP (HyperText Transfer Protocol) is an application
layer protocol used for transferring web pages on the internet.
2. What is the main purpose of cloud computing?
A. To provide physical storage for data
B. To run applications on local servers
C. To provide scalable computing resources over the internet
D. To offer offline computing solutions
Answer: C) To provide scalable computing resources over the internet
Rationale: Cloud computing allows users to access scalable computing
resources, such as storage and processing power, over the internet.
3. Which of the following algorithms is used to find the shortest path in
a graph?
,A. Merge Sort
B. Dijkstra’s Algorithm
C. Bubble Sort
D. Breadth-First Search
Answer: B) Dijkstra’s Algorithm
Rationale: Dijkstra’s Algorithm is used to find the shortest path
between nodes in a graph, particularly in weighted graphs.
4. Which of the following is a purpose of the "try-catch" block in Java?
A. To create objects
B. To catch runtime exceptions
C. To prevent memory leaks
D. To declare variables
Answer: B) To catch runtime exceptions
Rationale: The "try-catch" block is used to handle exceptions that may
occur during the execution of a program, preventing the program from
crashing.
5. In the context of software development, what is Agile methodology?
A. A strict, step-by-step development process
B. A flexible, iterative approach to software development
C. A hardware-driven development process
, D. A testing-focused development strategy
Answer: B) A flexible, iterative approach to software development
Rationale: Agile methodology emphasizes iterative development and
flexibility, allowing for frequent changes and improvements based on
feedback.
6. What is the main benefit of using version control systems like Git?
A. It reduces the cost of development
B. It allows multiple developers to work on the same project
simultaneously
C. It automates the testing process
D. It improves the speed of development
Answer: B) It allows multiple developers to work on the same project
simultaneously
Rationale: Version control systems like Git allow developers to
collaborate on the same codebase, track changes, and manage different
versions of the project efficiently.
7. What is the primary advantage of using a linked list over an array?
A. Faster access to elements
B. Fixed size of the data structure
C. Dynamic memory allocation
D. Easier to perform sorting