wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FINAL EXAM - PL101 2ND SEM 2025-2026

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

TRUE OR FALSE:  This programming language is more of a Procedural and block structured programming approach which is called Imperative Language.

a)

TRUE

b)

FALSE

2.

TRUE OR FALSE:  This programming language is more of a Logic Programming and for database language approach which is called Imperative Language.

a)

TRUE

b)

FALSE

3.

TRUE OR FALSE: Orthogonality, Simplicity and Abstraction are the factors affecting READABILITY. 

a)

TRUE

b)

FALSE

4.

TRUE OR FALSE:  Orthogonality, Simplicity and Control statement are the factors affecting READABILITY. 

a)

TRUE

b)

FALSE

5.

TRUE OR FALSE:  Aliasing and Exception handling are the factors affecting WRITABILITY. 

a)

TRUE

b)

FALSE

6.

TRUE OR FALSE:  Orthogonality, Simplicity and Control statement are the factors affecting RELIABILITY. 

a)

TRUE

b)

FALSE

7.

TRUE OR FALSE: Object oriented programming was introduced in the year 1980’s. 

a)

TRUE

b)

FALSE

8.

TRUE OR FALSE: John Backus Kemeny created the BASIC language. 

a)

TRUE

b)

FALSE

9.

TRUE OR FALSE: PASCAL language is intended for business oriented language. 

a)

TRUE

b)

FALSE

10.

TRUE OR FALSE: The new paradigm in programming languages – logic programming was PROLOG. 

a)

TRUE

b)

FALSE

11.

TRUE OR FALSE: In early programming languages, interactivity in the Web was increased by Visual Basic. 

a)

TRUE

b)

FALSE

12.

TRUE OR FALSE: The early programming language that was introduced in 1972 was ADA language. 

a)

TRUE

b)

FALSE

13.

TRUE OR FALSE: The early programming language that was useful as teaching tool was BASIC. 

a)

TRUE

b)

FALSE

14.

Check below lists to identify the valid reasons for studying programming languages.

1.       To make it easier to learn new media.

2.       To design a new language easier.

3.       To understand the language, you are using.

a)

Only 1 & 2 are correct

b)

Only 2 & 3 are correct

c)

Only 3 & 1 are correct

d)

All given choices are correct

15.

What year does the Object oriented programming was introduced?

a)

1950’s

b)

1960’s

c)

1970’s

d)

1980’s

16.

What early programming language was developed during 1960’s?

a)

FORTRAN

b)

COBOL

c)

BASIC

d)

PASCAL

17.

Which early programming language was intended for business-oriented approach.

a)

FORTRAN

b)

COBOL

c)

BASIC

d)

PASCAL

18.

Which early programming language that is close to standard mathematical notation?

a)

FORTRAN

b)

ALGOL 60

c)

COBOL

d)

BASIC

19.

Which early programming language provides the efficiency of hand-coded programs and ease of interpretative pseudocode systems?

a)

FORTRAN

b)

ALGOL 60

c)

COBOL

d)

BASIC

20.

Which early programming language was used to perform decimal arithmetic and floating point?

a)

FORTRAN

b)

ALGOL 60

c)

COBOL

d)

PL/1

21.

Which early programming language was used and most useful as a teaching tool?

a)

BASIC

b)

PASCAL

c)

COBOL

d)

PL/1

22.

Which early programming language provides support for creating data abstractions programming?

a)

BASIC

b)

PASCAL

c)

C++

d)

C

23.

Which early programming language provides interactivity in the Web?

a)

BASIC

b)

PASCAL

c)

C++

d)

Java

24.

Which early programming language supports inheritance and polymorphism?

a)

FORTRAN

b)

PASCAL

c)

VISUAL BASIC

d)

Java

25.

Which early programming language attempts to create intelligent machines like AI by moving away from imperative languages?

a)

FORTRAN

b)

ALGOL

c)

PROLOG

d)

Java

26.

What is a "class" in Python?

a)

A blueprint for creating objects


b)

A built-in function


c)

A specific instance of data


d)

A type of loop


27.

Which keyword is used to create a class?


a)

def

b)

struct


c)

class

d)

object

28.

What is an "object"?


a)

A data type like int


b)

A method within a class


c)

An instance of a class


d)

The same as a variable


29.

What does the init method do?


a)

Destroys an object


b)

Imports a library


c)

Initializes the attributes of an object


d)

Prints the class name


30.

What does the self parameter represent?


a)

The parent class


b)

A global variable


c)

The current instance of the class


d)

The Python interpreter


31.

Which OOP concept focuses on hiding internal details and showing only functionality?


a)

Inheritance


b)

Polymorphism

c)

Abstraction

d)

Encapsulation


32.

What is Encapsulation?


a)

Inheriting methods from a parent


b)

Overriding a method


c)

Creating multiple objects from one class


d)

Bundling data and methods that work on that data within one unit


33.

In Python, how do you indicate a "private" attribute by convention?


a)

private x


b)

@private x


c)

__x (double underscore)


d)

x.private


34.

What is Inheritance?


a)

The ability of a class to derive features from another class


b)

Hiding data from the user


c)

Creating a copy of an object


d)

Passing arguments to a function


35.

If Class B inherits from Class A, Class A is called the:


a)

Child class


b)

Base/Parent class


c)

Derived class


d)

Subclass


36.

Which function is used to call a method from the parent class?

a)

parent()


b)

this()


c)

super()


d)

base()


37.

What is Polymorphism?


a)

Having many forms (one interface, multiple implementations)

b)

Defining a class inside another class


c)

Restricting access to data


d)

The process of deleting objects


38.

Which is an example of Polymorphism in Python?


a)

Method Overloading


b)

Operator Overloading


c)

Method Overriding


d)

All of the above


39.

What is an "Abstract Class"?


a)

A class that cannot be instantiated


b)

A class used only for documentation


c)

A class with no methods


d)

A class that can only have one object


40.

Which module is required to create abstract classes in Python?


a)

 math


b)

 abc


c)

sys


d)

abstract


41.

A method without a body in an abstract class is called:


a)

An empty method


b)

An abstract method


c)

A ghost method


d)

A static method


42.

What is "Method Overriding"?


a)

Writing two methods with the same name in the same class


b)

Calling a method before it is defined


c)

Redefining a parent class method in a child class


d)

Deleting a method


43.

Python supports multiple inheritance. What does this mean?


a)

A child class can have multiple parent classes

b)

An object can belong to multiple classes


c)

A parent class can have multiple child classes

d)

A class can be defined multiple times


44.

What is the "MRO" in Python?

a)

Method Runtime Order


b)

Main Reset Option


c)

Method Resolution Order


d)

Multiple Resource Object


45.

What is the purpose of the str method?


a)

To convert an object to a string for printing


b)

To encrypt data


c)

To calculate the length of an object


d)

To start a string loop


46.

Which decorator is used to define an abstract method?


a)

@abstract


b)

@staticmethod


c)

@abstractmethod


d)

@property


47.

What happens if you try to instantiate an abstract class with an abstract method?


a)

It creates a null object


b)

It raises a TypeError


c)

It runs normally


d)

It ignores the abstract method


48.

What is the output of this code?

class Test:

    def init(self, id):

        self.id = id

t = Test(100)

t.id = 200

print(t.id)


a)

100

b)

Error


c)

200

d)

NONE

49.

What will be printed?

class Dog:

    def speak(self):

        return "Woof!"

class Cat:

    def speak(self):

        return "Meow!"

def animal_sound(animal):

    print(animal.speak())

animal_sound(Dog())


a)

Woof!


b)

Error

c)

Meow!

d)

Dog.speak


50.

What does this code demonstrate?

class Bird:

    def fly(self):

        print("Flying")

class Penguin(Bird):

    def fly(self):

        print("I can't fly")


a)

Encapsulation


b)

Abstraction

c)

Multiple Inheritance


d)

Method Overriding