Skip to content

Punjab (PTB) · Quarter book test · Free

2nd Year Computer 1st Quarter Book Paper

40 marks · 1 hour · 28 questions. Covers: CHAP 1: COMPUTER NETWORKS, CHAP 2: COMPUTATIONAL THINKING & ALGORITHMS, CHAP 3: OBJECT ORIENTED PROGRAMMING USING PYTHON.

Your school name

2nd Year Computer 1st 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. OOP allows code to be divided into modules, which promotes:

    1. Modularity

    2. Redundancy

    3. Fragmentation

    4. Linear execution

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

    1. True

    2. False

    3. Undefined

    4. Unknown

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

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

  5. Words used to connect propositions are called:

    1. Logical connectives

    2. Basic units

    3. Capital letters

    4. Commands

  6. Which device connects different networks together and links a local network to the Internet?

    1. Router

    2. Monitor

    3. Ethernet Port

    4. Power supply

  7. The main idea behind encapsulation in OOP is:

    1. To hide data inside a class and prevent unauthorised access.

    2. To create a flexible and adaptable programme.

    3. To reuse code from other classes.

    4. To allow multiple inheritance in classes.

  8. Quantifiers in library system modelling allow describing:

    1. Only mathematical numbers

    2. Only hardware configurations

    3. Both general situations and specific cases

    4. Truth tables with two rows

  9. Which type of network provides high data transfer speed?

    1. WAN

    2. Public WAN

    3. LAN

    4. Satellite network

  10. Unlike languages like Java or C++, Python controls data access primarily using:

    1. Naming conventions

    2. Hardware security modules

    3. File permissions

    4. Strict compiler enforcement

  11. Asking simple questions helps in:

    1. Saving money

    2. Creating errors

    3. Making problems bigger

    4. Understanding the problem better

  12. What key advantage does load balancing offer when network traffic is high?

    1. It reduces physical power consumption

    2. It helps networks handle more users easily

    3. It replaces the need for Ethernet cables

    4. It converts IPv4 into IPv6 automatically

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

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

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

  3. What are two primary benefits of using inheritance?

  4. How do computers make use of deduction?

  5. What is a network protocol?

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

  7. When is a proposition considered unsatisfiable?

  8. Briefly describe the Round Robin method of load balancing.

  9. How many types of Inheritance are there?

  10. What is predicate logic?

  11. What is Telnet?

  12. Define Encapsulation.

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

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

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

  3. Write a python code to demonstrate the concept of Runtime polymorphism (Overriding) by creating classes Animal, Dog and Cat.

  4. Explain the concept of data backup and its types. Also discuss the common causes of data loss and explain the methods and tools used for effective data recovery.