Skip to content

Punjab (PTB) · Full book test · Free

2nd Year Computer Full Book Paper

75 marks · 2 hours 30 minutes · 39 questions. Covers: 9 chapters (CHAP 1: COMPUTER NETWORKS to CHAP 9: CYBERSECURITY AND SAFE DIGITAL COLLABORATION).

Your school name

2nd Year Computer Full Book Paper

2nd Year · Computer · Punjab (PTB)

Name: ____________Roll No: ________Class/Section: ________Date: ________Total marks: 75Time: 2 hours 30 minutes

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

  1. 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

  2. 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

  3. What is the basic formula used to calculate the Chi-Square (x2) test statistic?

  4. How does antivirus software protect a system?

    1. By overloading external servers

    2. By creating fake websites to trick hackers

    3. By scanning files and removing viruses or malware

    4. By requiring physical fingerprint scans

  5. OOP allows code to be divided into modules, which promotes:

    1. Modularity

    2. Redundancy

    3. Fragmentation

    4. Linear execution

  6. The statement 2 + 3 = 5 evaluates to:

    1. True

    2. False

    3. Undefined

    4. Unknown

  7. How can AI bridge gaps in the healthcare sector?

    1. Store physical files

    2. Analyze medical data faster

    3. Route internet cables

    4. Generate financial taxes

  8. What is a key benefit of wireless network connections in a home environment?

    1. They are always faster than wired connections

    2. They completely eliminate the need for a modem

    3. Devices can move freely within the network range

    4. They do not require configuration or passwords

  9. On what are predictions in predictive modeling based?

    1. Guaranteed certainty

    2. Probability

    3. Fixed rules without variation

    4. Raw feature counts

  10. 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

  11. 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

  12. If a new medical drug test yields a p-value of 0.01 against a significance level of 0.05, it implies that:

    1. The drug is completely ineffective

    2. The improvement is unlikely to be due to chance alone

    3. The null hypothesis must be retained

    4. The test statistic was calculated incorrectly

  13. Why is documenting a security problem and its solution important?

    1. It automatically encrypts all saved files

    2. It unlocks ransomware-encrypted data without payment

    3. It helps prevent the problem from happening again

    4. It turns public networks into private connections

  14. An object is defined as a(n):

    1. Abstract definition with no memory allocation

    2. Instance of a class that holds actual values for its attributes

    3. Standalone function without data

    4. External library module

  15. Words used to connect propositions are called:

    1. Logical connectives

    2. Basic units

    3. Capital letters

    4. Commands

Q2. Short questions (Attempt any 12 of 18 · 12 × 2 = 24)

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

  2. In the formula , what is meant by x?

  3. Why do quantifiers make predicate logic more powerful than propositional logic?

  4. What broader environmental goal is supported by technology integration in agriculture?

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

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

  7. What are two primary benefits of using inheritance?

  8. What is the difference between how a router and a switch direct data?

  9. What does designing for equity and accessibility mean?

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

  11. How are degrees of freedom (df) calculated for a single-sample t-test?

  12. How do computers make use of deduction?

  13. How do businesses use AI to improve decision-making and customer service?

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

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

  16. What is the difference between compile-time and runtime polymorphism?

  17. What is a network protocol?

  18. Define data protection.

Q3. Long questions (Attempt any 4 of 6 · 4 × 9 = 36)

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

  2. Explain the types of computer networks. Describe LAN, WAN, and the Internet.

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

  4. Explain the concept of test statistics in detail. Include the mathematical formulas, variable definitions, and step-by-step calculations for both the T-value test and the Chi-Square test using representative examples.

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

  6. What is propositional satisfiability? Explain satisfiable and unsatisfiable propositions with examples.