Skip to content

Federal (FBISE) · Quarter book test · Free

2nd Year Computer 2nd Quarter Book Paper

40 marks · 1 hour · 28 questions. Covers: 3. Programming Fundamentals, 4. Data and Analysis.

Your school name

2nd Year Computer 2nd Quarter Book Paper

2nd Year · Computer · Federal (FBISE)

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

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

  1. Python’s built-in framework for testing code automatically is:
    1. Pytest
    2. unittest
    3. debugpy
    4. testlib
  2. Confidence interval shows:
    1. Randomness of results
    2. Range where true value likely lies
    3. Range of hypothesis
    4. Type of data
  3. Main purpose of the programming paradigm is _______.
    1. Increase code length
    2. Complexity reduction
    3. Eliminate bugs
    4. Improve hardware performance
  4. How does storytelling enhance the communication of data insights?
    1. By focusing solely on statistical analysis
    2. By using visuals and narrative to make data relatable and engaging
    3. By ignoring complex data patterns
    4. . By minimizing the use of charts and graphs
  5. Functional programming supports:
    1. Sequential processing
    2. Parallel and concurrent programming
    3. Random execution
    4. None
  6. Type II Error occurs when:
    1. False null hypothesis is rejected
    2. False null hypothesis is not rejected
    3. Random data used
    4. P-value too small
  7. The try-except block is used for:
    1. File creation
    2. Error handling
    3. Data sorting
    4. Data merging
  8. Power of a test means:
    1. Energy use of computer
    2. Its ability to detect an effect when it exists
    3. Sample size
    4. Significance level
  9. The term “programming paradigm” refers to:
    1. Coding language
    2. Compilation method
    3. Process for creating and organizing code
    4. Program output
  10. If P < 0.05, then:
    1. We reject the null hypothesis
    2. We accept the null hypothesis
    3. We ignore results
    4. None of these
  11. Which function is used to close a file in Python?
    1. end()
    2. stop()
    3. close()
    4. quit()
  12. Why is it important to use visuals effectively in hypotheses testing?
    1. To replace the need for statistical analysis
    2. To present data in a more understandable manner and enhance communication
    3. To make the data collection process easier
    4. To avoid need of a hypothesis formulation

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

  1. What does the inner loop perform in the matrix transpose example?
  2. What is model assessment?
  3. What is the role of the assert statement in a test function?
  4. What is the significance level (α)?
  5. What is a binary file?
  6. What is the main goal of formulating questions in data analysis?
  7. What is the importance of Disk I/O?
  8. Explain the role of standard deviation in understanding data variability.
  9. What is meant by file handling?
  10. How can data visualization bridge the gap between technical analysis and non-technical audiences? Explain with a real-world scenario.
  11. Define Primary Key.
  12. Explain what ‘Feature Engineering’ is and give an example related to image classification.

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

  1. Write a Python program highlighting the use of functions to simplify a problem.For example, create a program that calculates the average of a list of numbers and by using separate functions to add and without repeating values.
  2. Discuss the challenges in ensuring data accuracy and relevance in a data story. How can these challenges be addressed to improve the credibility of the data story?
  3. Create a Python dictionary to store student names as keys and their grades as values.Write a program to add new students, update existing students’ grades, and remove students from the dictionary.
  4. Evaluate how feedback can be used to refine data storytelling techniques. Provide examples of how constructive criticism can lead to more effective data presentations.