Skip to content

Punjab (PTB) · Quarter book test · Free

1st Year Computer 1st Quarter Book Paper

40 marks · 1 hour · 28 questions. Covers: CHAP 1: Introduction to Software Development, CHAP 2:Python Programming, CHAP 3:Algorithms and Problem Solving.

Your school name

1st Year Computer 1st Quarter Book Paper

1st Year · Computer · Punjab (PTB)

Name: ____________Roll No: ________Class/Section: ________Date: ________Total marks: 40Time: 1 hour

Q1. Multiple choice questions (Attempt all · 12 × 1 = 12)

  1. What is Class P in computational complexity?

    1. Problems that take forever to solve

    2. Problems that are unsolvable

    3. Problems that can be solved efficiently

    4. Problems with no inputs

  2. Which of the following is NOT a step in the debugging process?

    1. Identifying bugs

    2. Fixing bugs

    3. Ignoring bugs

    4. Monitoring the program's behavior

  3. Which of the following is a correct way to output text in Python?

    1. display("Hello")

    2. echo "Hello"

    3. print("Hello")

    4. show("Hello")

  4. Why is Bubble Sort not recommended for large datasets?

    1. It uses too much memory

    2. It requires sorting the list multiple times

    3. It has a high time complexity of O(n²)

    4. It only works with small lists

  5. Which of the following is an example of a software development framework:

    1. Google Chrome

    2. Windows

    3. Django

    4. Excel

  6. How can multiple objects be created from the same class in Python?

    1. By using the new keyword.

    2. By calling the class as a function with different arguments.

    3. By using inheritance.

    4. Multiple objects cannot be created from the same class.

  7. Time complexity of Depth-First Search (DFS) in a graph is:

    1. O(n log n)

    2. O(V)

    3. O(V + E)

    4. O(n)

  8. What is a limitation of the Waterfall Model?

    1. Too flexible

    2. Doesn't require planning

    3. Difficult to go back to previous phases

    4. No testing is done

  9. Which of the following statements is true about the if-else statement in Python?

    1. The else block is mandatory

    2. The else block runs only when the condition is true

    3. The if-else statement allows for two code blocks, one for true and one for false conditions

    4. The else block runs only when the condition is false

  10. What is unique about Class NP problems?

    1. They can't be solved at all

    2. Their solutions are impossible to verify

    3. Solutions can be verified quickly

    4. They never have solutions.

  11. What is the Waterfall Model?

    1. A programming language

    2. A testing method

    3. A step-by-step software development model

    4. A type of software

  12. What is the purpose of the import statement in Python?

    1. To create a new function.

    2. To define a variable.

    3. To include external libraries or modules in your program.

    4. To define a class.

Q2. Short questions (Attempt any 8 of 12 · 8 × 2 = 16)

  1. How do you import a module from a package in Python?

  2. Why is the GCD problem considered solvable?

  3. Write down the phases included in Waterfall Model?

  4. How is the modulus operator % used in Python?

  5. What is the main application of BFS in real-world scenarios?

  6. Write any two examples of debuggers.

  7. What does the = = operator do in Python?

  8. What is the time complexity of selection sort?

  9. Evaluate the main steps involved in risk assessment and management, and assess their importance in a software project.

  10. How do you access an item in a list?

  11. When is Dynamic Programming most effective?

  12. Describe the Factory Pattern and explain how it differs from directly creating objects, with an example.

Q3. Long questions (Attempt any 3 of 4 · 3 × 4 = 12)

  1. What is a software development framework, and how does it help in the SDLC process? Give an example. 

  2. Explain how list slicing works with an example. 

  3. Discuss the differences between time complexity and space complexity. How do they impact the choice of an algorithm for a specific problem?

  4. What types of changes or issues are typically addressed during the maintenance phase of software development?