Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 24 pages
Exam (elaborations)

Computer Engineering 4

Document preview thumbnail
Preview 3 out of 24 pages

Computer Engineering 4

Content preview

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.

Document information

Uploaded on
March 16, 2025
Number of pages
24
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
CA$15.83

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
douglasmugwe82
5.0
(1)
Sold
2
Followers
0
Items
4239
Last sold
11 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions