Midterm Exams Pattern UE (FALL-2024)
Midterm Exams Pattern UE (FALL-2024)
Lahore
MID-TERM EXAMINATION (FALL 2024)
BS PROGRAMS [UNIVERSITY OF EDUCATION]
Course Name (with Code): Design and Analysis of Algorithm
Course Instructor: Muhammad Nadeem Program & Term: BSCS 22 A & B
Time Allowed: 15 Min Maximum Marks: 12
TO BE FILLED IN BY THE STUDENT
Registration No:
Student Name:
University Roll No.: bsf
(OBJECTIVE)
Attempt all questions. (12×1=12)
(a) Bubble Sort (b) Insertion Sort (c) Quick Sort (d) Selection Sort
Page 2 of 3
Punjab Colleges,
Lahore
MID-TERM
EXAMINATION (FALL 2024)
BS PROGRAMS [UNIVERSITY OF EDUCATION]
Course Name (with Code): Design and Analysis of Algorithm
Course Instructor: Muhammad Nadeem Program & Term: BSCS 22 A & B
Time Allowed: 75 Min Maximum Marks: 38
TO BE FILLED IN BY THE STUDENT
Registration No:
Student Name:
University Roll No.: bsf
(SUBJECTIVE)
SHORT QUESTIONS
Q.1. Attempt all questions. (5×3=15)
LONG QUESTIONS
Q.2. Attempt all questions. (8×2 = 16 & 7×1 =7)
(a) Explain the concept of stable and unstable sorting algorithms. Provide examples of each
type.
(b) Explain the concept of Counting sort and provide a scenario where it is particularly useful.
(c) Explain the working of Quick Sort with the help of an example. Analyze its time
complexity in the best, worst, and average cases.
Page 3 of 3