NEW
Font size
WorksheetsFINAL EXAM - PL101 2ND SEM 2025-2026
Total questions: 50
Worksheet time: 25mins
TRUE OR FALSE: This programming language is more of a Procedural and block structured programming approach which is called Imperative Language.
TRUE
FALSE
TRUE OR FALSE: This programming language is more of a Logic Programming and for database language approach which is called Imperative Language.
TRUE
FALSE
TRUE OR FALSE: Orthogonality, Simplicity and Abstraction are the factors affecting READABILITY.
TRUE
FALSE
TRUE OR FALSE: Orthogonality, Simplicity and Control statement are the factors affecting READABILITY.
TRUE
FALSE
TRUE OR FALSE: Aliasing and Exception handling are the factors affecting WRITABILITY.
TRUE
FALSE
TRUE OR FALSE: Orthogonality, Simplicity and Control statement are the factors affecting RELIABILITY.
TRUE
FALSE
TRUE OR FALSE: Object oriented programming was introduced in the year 1980’s.
TRUE
FALSE
TRUE OR FALSE: John Backus Kemeny created the BASIC language.
TRUE
FALSE
TRUE OR FALSE: PASCAL language is intended for business oriented language.
TRUE
FALSE
TRUE OR FALSE: The new paradigm in programming languages – logic programming was PROLOG.
TRUE
FALSE
TRUE OR FALSE: In early programming languages, interactivity in the Web was increased by Visual Basic.
TRUE
FALSE
TRUE OR FALSE: The early programming language that was introduced in 1972 was ADA language.
TRUE
FALSE
TRUE OR FALSE: The early programming language that was useful as teaching tool was BASIC.
TRUE
FALSE
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.
Only 1 & 2 are correct
Only 2 & 3 are correct
Only 3 & 1 are correct
All given choices are correct
What year does the Object oriented programming was introduced?
1950’s
1960’s
1970’s
1980’s
What early programming language was developed during 1960’s?
FORTRAN
COBOL
BASIC
PASCAL
Which early programming language was intended for business-oriented approach.
FORTRAN
COBOL
BASIC
PASCAL
Which early programming language that is close to standard mathematical notation?
FORTRAN
ALGOL 60
COBOL
BASIC
Which early programming language provides the efficiency of hand-coded programs and ease of interpretative pseudocode systems?
FORTRAN
ALGOL 60
COBOL
BASIC
Which early programming language was used to perform decimal arithmetic and floating point?
FORTRAN
ALGOL 60
COBOL
PL/1
Which early programming language was used and most useful as a teaching tool?
BASIC
PASCAL
COBOL
PL/1
Which early programming language provides support for creating data abstractions programming?
BASIC
PASCAL
C++
C
Which early programming language provides interactivity in the Web?
BASIC
PASCAL
C++
Java
Which early programming language supports inheritance and polymorphism?
FORTRAN
PASCAL
VISUAL BASIC
Java
Which early programming language attempts to create intelligent machines like AI by moving away from imperative languages?
FORTRAN
ALGOL
PROLOG
Java
What is a "class" in Python?
A blueprint for creating objects
A built-in function
A specific instance of data
A type of loop
Which keyword is used to create a class?
def
struct
class
object
What is an "object"?
A data type like int
A method within a class
An instance of a class
The same as a variable
What does the init method do?
Destroys an object
Imports a library
Initializes the attributes of an object
Prints the class name
What does the self parameter represent?
The parent class
A global variable
The current instance of the class
The Python interpreter
Which OOP concept focuses on hiding internal details and showing only functionality?
Inheritance
Polymorphism
Abstraction
Encapsulation
What is Encapsulation?
Inheriting methods from a parent
Overriding a method
Creating multiple objects from one class
Bundling data and methods that work on that data within one unit
In Python, how do you indicate a "private" attribute by convention?
private x
@private x
__x (double underscore)
x.private
What is Inheritance?
The ability of a class to derive features from another class
Hiding data from the user
Creating a copy of an object
Passing arguments to a function
If Class B inherits from Class A, Class A is called the:
Child class
Base/Parent class
Derived class
Subclass
Which function is used to call a method from the parent class?
parent()
this()
super()
base()
What is Polymorphism?
Having many forms (one interface, multiple implementations)
Defining a class inside another class
Restricting access to data
The process of deleting objects
Which is an example of Polymorphism in Python?
Method Overloading
Operator Overloading
Method Overriding
All of the above
What is an "Abstract Class"?
A class that cannot be instantiated
A class used only for documentation
A class with no methods
A class that can only have one object
Which module is required to create abstract classes in Python?
math
abc
sys
abstract
A method without a body in an abstract class is called:
An empty method
An abstract method
A ghost method
A static method
What is "Method Overriding"?
Writing two methods with the same name in the same class
Calling a method before it is defined
Redefining a parent class method in a child class
Deleting a method
Python supports multiple inheritance. What does this mean?
A child class can have multiple parent classes
An object can belong to multiple classes
A parent class can have multiple child classes
A class can be defined multiple times
What is the "MRO" in Python?
Method Runtime Order
Main Reset Option
Method Resolution Order
Multiple Resource Object
What is the purpose of the str method?
To convert an object to a string for printing
To encrypt data
To calculate the length of an object
To start a string loop
Which decorator is used to define an abstract method?
@abstract
@staticmethod
@abstractmethod
@property
What happens if you try to instantiate an abstract class with an abstract method?
It creates a null object
It raises a TypeError
It runs normally
It ignores the abstract method
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())
Woof!
Error
Meow!
Dog.speak
What does this code demonstrate?
class Bird:
def fly(self):
print("Flying")
class Penguin(Bird):
def fly(self):
print("I can't fly")
Encapsulation
Abstraction
Multiple Inheritance
Method Overriding
