Skip to content

Federal (FBISE) · Half book test · Free

2nd Year Computer First half Book Paper

50 marks · 1 hour 30 minutes · 35 questions. Covers: 4 chapters (1. Computer System to 4. Data and Analysis).

Your school name

2nd Year Computer First half Book Paper

2nd Year · Computer · Federal (FBISE)

Name: ____________Roll No: ________Class/Section: ________Date: ________Total marks: 50Time: 1 hour 30 minutes

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

  1. Python’s built-in framework for testing code automatically is:
    1. Pytest
    2. unittest
    3. debugpy
    4. testlib
  2. The factorial function example demonstrates:
    1. Sorting
    2. Searching
    3. Clear vs less clear code
    4. Looping
  3. Error prevention and recovery mechanisms:
    1. Minimize mistakes and guide correction
    2. Increase memory usage
    3. Focus only on encryption
    4. Allow system shutdown
  4. Confidence interval shows:
    1. Randomness of results
    2. Range where true value likely lies
    3. Range of hypothesis
    4. Type of data
  5. Main purpose of the programming paradigm is _______.
    1. Increase code length
    2. Complexity reduction
    3. Eliminate bugs
    4. Improve hardware performance
  6. Which of the following best describes a data structure?
    1. A method of arranging data
    2. A way to store and organize data in memory
    3. A physical interface design
    4. A location and easy interaction detection
  7. Confidentiality protects data from:
    1. Hackers and unauthorized access
    2. Viruses only
    3. Server overload
    4. Storage failures
  8. 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
  9. Functional programming supports:
    1. Sequential processing
    2. Parallel and concurrent programming
    3. Random execution
    4. None
  10. Arrays are efficient because:
    1. They are slow in accessing elements
    2. They need extra data
    3. Memory locations are contiguous
    4. None of these
  11. Which principle prevents unnecessary complexity in design?
    1. Error handling
    2. Robustness
    3. Simplification
    4. Memorability
  12. 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
  13. The try-except block is used for:
    1. File creation
    2. Error handling
    3. Data sorting
    4. Data merging
  14. Each node of a linked list contains:
    1. Data and index
    2. Only data
    3. Only pointer
    4. Data and pointer
  15. What is the disadvantage of encryption?
    1. Increases cost
    2. Makes data easy to copy
    3. Slows down usability and can be time-consuming
    4. Removes user authentication

Q2. Short questions (Attempt any 10 of 15 · 10 × 2 = 20)

  1. What is model assessment?
  2. What does the inner loop perform in the matrix transpose example?
  3. Define Human-Computer Interaction (HCI).
  4. What are the two parts of a singly linked list node?
  5. What is the significance level (α)?
  6. What is the role of the assert statement in a test function?
  7. List two principles of usability.
  8. What is clarity in an algorithm?
  9. What is the main goal of formulating questions in data analysis?
  10. What is a binary file?
  11. Suggest three features that should be included in a new educational software application to enhance accessibility for users with disabilities.
  12. What are arrays used for?
  13. Explain the role of standard deviation in understanding data variability.
  14. What is the importance of Disk I/O?
  15. What does accessibility ensure?

Q3. Long questions (Attempt any 3 of 5 · 3 × 5 = 15)

  1. Explain the different types of usability testing methods (Moderated, Unmoderated, Qualitative, Quantitative, Remote, A/B testing) with examples.
  2. 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.
  3. 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?
  4. Describe the difference between Stack and Queue. How does their operation affect algorithm design? Provide one real-life example for each data structure.
  5. How do security measures like multi-factor authentication (MFA) and encryption impact usability, and how can designers balance these trade-offs?