Skip to content

Punjab (PTB) · Quarter book test · Free

2nd Year Computer 2nd Quarter Book Paper

40 marks · 1 hour · 28 questions. Covers: CHAP 4: DEVELOPMENT OF GRAPHICAL USER INTERFACE (GUI), CHAP 5: CODE TESTING AND DEBUGGING, CHAP 6: DATA AND ANALYSIS.

Your school name

2nd Year Computer 2nd Quarter Book Paper

2nd 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. Where does sqlite3 store its database data on the system?

    1. In local RAM cache

    2. In a single file on the system

    3. On a remote server automatically

    4. In the Python installation folder

  2. What are breakpoints and watches used for in software development?

    1. To compile source code into machine code

    2. To analyze program behavior and examine data at specific points

    3. To format Python source code automatically

    4. To speed up the execution of loops

  3. On what are predictions in predictive modeling based?

    1. Guaranteed certainty

    2. Probability

    3. Fixed rules without variation

    4. Raw feature counts

  4. When does a function linked to an event run?

    1. Continuously while the application is open

    2. Before the GUI window loads

    3. Only when the event happens

    4. When the program is compiled

  5. What are breakpoints defined as in IDEs like PyCharm or VS Code?

    1. Keywords that stop program compilation

    2. Variables that store error logs

    3. Markers that pause program execution at a chosen line of code

    4. Functions that return calculated values

  6. Predicting a student's final grade using past marks, attendance, and study hours is an example of what?

    1. Causation

    2. Prediction

    3. Hyperparameter tuning

    4. Model validation

  7. GUIs improve usability primarily by providing:

    1. Complex command lines

    2. Visual feedback and reducing the need to remember complex commands

    3. Faster compilation times

    4. Automatic database integration

  8. Which step-by-step debugging action allows you to go inside a function to see how it is working?

    1. Step Over

    2. Step Into

    3. Continue

    4. Pause

  9. What is defined as the number of correctly predicted negative instances?

    1. True Positives (TP)

    2. True Negatives (TN)

    3. False Positives (FP)

    4. False Negatives (FN)

  10. What elements characterize a clean interface?

    1. Well-arranged widgets and enough space between them

    2. Heavy graphical animations and fast network speeds

    3. Database connections and complex backend logic

    4. Full-screen background images and dark themes

  11. What feeds directly into the Tuning stage?

    1. Collecting configuration and refining tunings

    2. Deleting database records

    3. Generating syntax errors

    4. Creating breakpoints

  12. A commonly used tool for machine learning and data analysis is:

    1. MS Word

    2. Python

    3. PowerPoint

    4. Notepad

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

  1. What are two primary benefits of performing unit testing?

  2. What happens if connection.commit() is omitted after a delete operation?

  3. What is the impact of data-driven decisions on business operations and performance?

  4. What are three optimization techniques used to fix performance bottlenecks?

  5. How user input is processed using widgets and connected functions?

  6. How do navigation apps and smart home devices assist users using machine learning?

  7. What is a performance bottleneck in programming?

  8. What is meant by an attribute?

  9. What is unlabeled data?

  10. What is testing?

  11. Summarize the key advantages of database.

  12. Why is Excel recommended for beginners in data analysis?

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

  1. Discuss predictive modeling and causality, and explain the importance of model interpretation in real-world use cases.

  2. Discuss in detail the importance of testing and debugging techniques in software development, highlighting how they improve performance, user confidence, and future maintenance.

  3. Write a program to create Simple Login Form in tkinter.

  4. Discuss the various data sources and collection methods, detailing the distinction between manual and automatic data collection as well as real-time versus stored data gathering.