Your school name
2nd Year Computer First half Book Paper2nd Year · Computer · Punjab (PTB)
Q1. Multiple choice questions (Attempt all · 15 × 1 = 15)
Where does sqlite3 store its database data on the system?
The statement 2 + 3 = 5 evaluates to:
What are breakpoints and watches used for in software development?
What is a key benefit of wireless network connections in a home environment?
OOP allows code to be divided into modules, which promotes:
When does a function linked to an event run?
Words used to connect propositions are called:
What are breakpoints defined as in IDEs like PyCharm or VS Code?
Which device connects different networks together and links a local network to the Internet?
An object is defined as a(n):
GUIs improve usability primarily by providing:
Quantifiers in library system modelling allow describing:
Which step-by-step debugging action allows you to go inside a function to see how it is working?
Which type of network provides high data transfer speed?
The main idea behind encapsulation in OOP is:
Q2. Short questions (Attempt any 10 of 15 · 10 × 2 = 20)
Why do quantifiers make predicate logic more powerful than propositional logic?
What is the difference between how a router and a switch direct data?
What are two primary benefits of using inheritance?
What are two primary benefits of performing unit testing?
What happens if connection.commit() is omitted after a delete operation?
How do computers make use of deduction?
What is a network protocol?
What is the difference between compile-time and runtime polymorphism?
What are three optimization techniques used to fix performance bottlenecks?
How user input is processed using widgets and connected functions?
When is a proposition considered unsatisfiable?
Briefly describe the Round Robin method of load balancing.
How many types of Inheritance are there?
What is a performance bottleneck in programming?
What is meant by an attribute?
Q3. Long questions (Attempt any 3 of 5 · 3 × 5 = 15)
Write a program to create Simple Login Form in tkinter.
Discuss in detail the importance of testing and debugging techniques in software development, highlighting how they improve performance, user confidence, and future maintenance.
Explain the types of computer networks. Describe LAN, WAN, and the Internet.
What is propositional satisfiability? Explain satisfiable and unsatisfiable propositions with examples.
Write a python code to demonstrate the concept of Runtime polymorphism (Overriding) by creating classes Animal, Dog and Cat.