1. Which of the following is the most commonly used algorithm for finding the shortest
path in a weighted graph?
A. Dijkstra's Algorithm
B. Bellman-Ford Algorithm
C. Floyd-Warshall Algorithm
D. Prim's Algorithm
Answer: A) Dijkstra's Algorithm
Rationale: Dijkstra's algorithm is widely used to find the shortest path in a graph with
non-negative edge weights.
2. Which of the following is an example of a high-level programming language?
A. Assembly
B. C++
C. Machine Code
D. Binary
Answer: B) C++
Rationale: C++ is a high-level programming language designed for efficient use of
hardware resources, offering abstraction from machine code.
3. The main function in C programming language is called:
,A. void()
B. main()
C. start()
D. entry()
Answer: B) main()
Rationale: In C programming, the main function is the entry point of the program. It is
where the execution starts.
4. Which of the following is a type of machine language?
A. Assembly Language
B. High-Level Language
C. Binary Code
D. Pseudocode
Answer: C) Binary Code
Rationale: Machine language consists of binary code, which is the lowest-level
programming language directly understood by the computer’s hardware.
5. What is the full form of "HTTP"?
A. HyperText Transfer Protocol
B. HyperText Transmission Protocol
C. Hyperlink Text Transfer Protocol
D. HyperText Transmitting Protocol
, Answer: A) HyperText Transfer Protocol
Rationale: HTTP is a protocol used for transferring hypertext (web pages) over the
internet.
6. What is the value of log2(8)?
A. 1
B. 2
C. 3
D. 4
Answer: C) 3
Rationale: Logarithm base 2 of 8 is 3 because 2^3 = 8.
7. In the context of computer networks, what does "IP" stand for?
A. Internet Protocol
B. Internet Package
C. Integrated Protocol
D. Internet Process
Answer: A) Internet Protocol
Rationale: IP stands for Internet Protocol, which is responsible for addressing and
routing packets of data across networks.
path in a weighted graph?
A. Dijkstra's Algorithm
B. Bellman-Ford Algorithm
C. Floyd-Warshall Algorithm
D. Prim's Algorithm
Answer: A) Dijkstra's Algorithm
Rationale: Dijkstra's algorithm is widely used to find the shortest path in a graph with
non-negative edge weights.
2. Which of the following is an example of a high-level programming language?
A. Assembly
B. C++
C. Machine Code
D. Binary
Answer: B) C++
Rationale: C++ is a high-level programming language designed for efficient use of
hardware resources, offering abstraction from machine code.
3. The main function in C programming language is called:
,A. void()
B. main()
C. start()
D. entry()
Answer: B) main()
Rationale: In C programming, the main function is the entry point of the program. It is
where the execution starts.
4. Which of the following is a type of machine language?
A. Assembly Language
B. High-Level Language
C. Binary Code
D. Pseudocode
Answer: C) Binary Code
Rationale: Machine language consists of binary code, which is the lowest-level
programming language directly understood by the computer’s hardware.
5. What is the full form of "HTTP"?
A. HyperText Transfer Protocol
B. HyperText Transmission Protocol
C. Hyperlink Text Transfer Protocol
D. HyperText Transmitting Protocol
, Answer: A) HyperText Transfer Protocol
Rationale: HTTP is a protocol used for transferring hypertext (web pages) over the
internet.
6. What is the value of log2(8)?
A. 1
B. 2
C. 3
D. 4
Answer: C) 3
Rationale: Logarithm base 2 of 8 is 3 because 2^3 = 8.
7. In the context of computer networks, what does "IP" stand for?
A. Internet Protocol
B. Internet Package
C. Integrated Protocol
D. Internet Process
Answer: A) Internet Protocol
Rationale: IP stands for Internet Protocol, which is responsible for addressing and
routing packets of data across networks.