
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Course: CSC203 – Computer Science Examination Date: 16-07- Level: Undergraduate Difficulty: Advanced Format: A–D Options | One Best Answer Coverage: Comprehensive CSC203 Syllabus Latest Edition: 2026
Question 1
Which algorithm always produces the shortest path in a weighted graph when all edge weights are non-negative?
A. Breadth-First Search B. Prim's Algorithm C. Dijkstra's Algorithm D. Depth-First Search
Answer: C. Dijkstra's Algorithm
Rationale: Dijkstra's algorithm guarantees the shortest paths from a source vertex provided every edge weight is non- negative.
Question 2
The worst-case time complexity of Merge Sort is:
A. O(n²) B. O(n log n) C. O(log n) D. O(n)
Answer: B. O(n log n)
Rationale: Merge Sort consistently divides the array and merges sorted halves, giving O(n log n) performance in all cases.
Question 3
Which scheduling algorithm can lead to starvation?
A. Round Robin B. First-Come First-Served C. Shortest Job First D. Priority Scheduling
Answer: D. Priority Scheduling
Answer: B. It satisfies 2NF and contains no transitive dependencies.
Rationale: Third Normal Form eliminates transitive dependency while preserving functional dependency.
Question 6
Which protocol translates domain names into IP addresses?
A. FTP B. DHCP C. DNS D. SMTP
Answer: C. DNS
Rationale: DNS resolves human-readable hostnames into IP addresses.
Question 7
Which logic gate outputs HIGH only when both inputs are HIGH?
A. XOR B. NOR
Answer: C. AND
Rationale: AND gates produce HIGH only if every input is HIGH.
Question 8
Which traversal visits the root before its children?
A. Inorder B. Postorder C. Preorder D. Level Order
Answer: C. Preorder
Rationale: Preorder follows Root → Left → Right.
Question 9
Virtual memory primarily allows:
A. Faster CPU speed B. Larger logical address space than physical memory C. Better monitor resolution D. Increased network bandwidth
Rationale: The Network layer handles logical addressing and routing.
Question 12
Which sorting algorithm is generally the fastest average-case comparison sort?
A. Bubble Sort B. Selection Sort C. Quick Sort D. Insertion Sort
Answer: C. Quick Sort
Rationale: Quick Sort has an average complexity of O(n log n) with excellent practical performance.
Question 13
The hexadecimal number A3 equals:
A. 163 B. 153 C. 173 D. 143
Answer: A. 163
Rationale: A3₁₆ = (10×16)+3 = 163.
Question 14
Which data structure supports FIFO?
A. Stack B. Queue C. Heap D. Tree
Answer: B. Queue
Rationale: FIFO means First-In, First-Out, which defines a queue.
Question 15
Which software development methodology emphasizes iterative development?
A. Waterfall B. Agile C. Spiral only D. Big Bang
Answer: B. Agile
Rationale: Agile delivers software incrementally through short iterations.
Question 18
Which cryptographic algorithm is asymmetric?
A. AES B. DES C. RSA D. Blowfish
Answer: C. RSA
Rationale: RSA uses a public/private key pair.
Question 19
The primary purpose of hashing is:
A. Data compression B. Fast data retrieval C. Encryption D. Sorting
Answer: B. Fast data retrieval
Rationale: Hash tables provide expected O(1) average lookup time.
Question 20
Which notation describes algorithm efficiency?
A. Unicode B. ASCII C. Big-O D. IEEE
Answer: C. Big-O
Rationale: Big-O expresses asymptotic upper-bound complexity.
Question 21
In object-oriented programming, inheritance promotes:
A. Code duplication B. Code reuse C. Memory fragmentation D. Data corruption
Answer: B. Code reuse
Rationale: Inheritance enables new classes to extend existing ones.
Question 22
Which network topology has a single central device?
C. A* Search D. Linear Search
Answer: C. A Search *
Rationale: A combines path cost and heuristic estimates to efficiently find optimal paths.*
Question 25
Which testing technique evaluates the internal logic of a program?
A. Black-box testing B. White-box testing C. Acceptance testing D. Regression testing
Answer: B. White-box testing
Rationale: White-box testing examines code paths, branches, loops, and internal implementation.
Question 26
Which data structure is most appropriate for implementing a priority queue?
A. Linked List B. Binary Heap C. Stack D. Queue
Answer: B. Binary Heap
Rationale: A binary heap supports efficient insertion and deletion of the highest- (or lowest-) priority element in O(log n) time.
Question 27
Which memory allocation strategy assigns the first available block that is large enough for a process?
A. Best Fit B. Worst Fit C. First Fit D. Next Fit
Answer: C. First Fit
Rationale: First Fit scans memory from the beginning and allocates the first suitable block.
Question 28
Question 30
The average-case time complexity of searching in a balanced Binary Search Tree (BST) is:
A. O(n) B. O(log n) C. O(n²) D. O(1)
Answer: B. O(log n)
Rationale: A balanced BST reduces the search space by half at each level.
Question 31
Which SQL clause is used to filter grouped records?
A. WHERE B. ORDER BY C. HAVING D. LIMIT
Answer: C. HAVING
Rationale: HAVING filters groups after aggregation, whereas WHERE filters rows before grouping.
Question 32
Which OSI layer is responsible for error detection using frame checks?
A. Physical B. Data Link C. Network D. Session
Answer: B. Data Link
Rationale: The Data Link layer detects transmission errors using mechanisms such as CRC.
Question 33
Which algorithm is commonly used to find a Minimum Spanning Tree?
A. Binary Search B. Dijkstra's Algorithm C. Kruskal's Algorithm D. Bellman-Ford Algorithm
Answer: C. Kruskal's Algorithm
Answer: A. Round Robin
Rationale: Round Robin improves responsiveness by allocating equal CPU time slices to all ready processes.
Question 36
A graph containing no cycles is called:
A. Directed Graph B. Weighted Graph C. Tree D. Complete Graph
Answer: C. Tree
Rationale: A tree is a connected graph with no cycles.
Question 37
Which addressing technique allows one IP packet to be delivered to multiple recipients?
A. Unicast B. Broadcast C. Multicast D. Anycast
Answer: C. Multicast
Rationale: Multicast efficiently sends one transmission to a selected group of hosts.
Question 38
Which software testing level verifies interactions between software modules?
A. Unit Testing B. Integration Testing C. Acceptance Testing D. Alpha Testing
Answer: B. Integration Testing
Rationale: Integration testing validates communication between integrated components.
Question 39
The main purpose of indexing in databases is to:
A. Increase storage requirements B. Improve query performance C. Prevent data deletion D. Encrypt records
Answer: B. Improve query performance