Your school name
1st Year Computer Chapter 3 Test1st Year · Computer · Punjab (PTB)
Q1. Multiple choice questions (Attempt all · 10 × 1 = 10)
What is Class P in computational complexity?
Why is Bubble Sort not recommended for large datasets?
Time complexity of Depth-First Search (DFS) in a graph is:
What is unique about Class NP problems?
Backtracking is most similar to which real-world activity?
Which of the following is true about Selection Sort?
What does BFS explore in a graph?
Which sorting algorithm is based on Divide and Conquer?
Which Big O notation represents the fastest performance?
What is true about NP-Hard problems?
Q2. Short questions (Attempt any 6 of 8 · 6 × 2 = 12)
Why is the GCD problem considered solvable?
What is the main application of BFS in real-world scenarios?
What is the time complexity of selection sort?
When is Dynamic Programming most effective?
What kind of problems are in Class P?
How does Dynamic Programming improve efficiency?
What is a solvable problem in computer science?
How does Linear Search work?
Q3. Long questions (Attempt any 2 of 3 · 2 × 4 = 8)
Discuss the differences between time complexity and space complexity. How do they impact the choice of an algorithm for a specific problem?
Discuss the advantages and disadvantages of using Bubble sort for sorting large datasets.
Explain how Dynamic Programming can optimize the calculation of the Fibonacci sequence.