wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IT 1 (2nd sem prelim) - Python

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

A high-level, interpreted programming language known for its readability and simplicity.

a)

Python

b)

C

c)

Assembly

d)

Java

2.

The creator of the Python programming language.

a)

Guido van Rossum

b)

James Gosling

c)

Bjarne Stroustrup

d)

Dennis Ritchie

3.

The year Python was first released.

a)

1989

b)

1991

c)

1995

d)

2000

4.

A feature of Python that emphasizes code clarity and ease of understanding.

a)

Pointer arithmetic

b)

Readability

c)

Manual memory management

d)

Mandatory semicolons

5.

The way Python defines code blocks instead of using braces.

a)

Indentation

b)

Parentheses

c)

Semicolons

d)

Begin/end keywords

6.

The program that executes Python code line by line.

a)

Compiler

b)

Interpreter

c)

Linker

d)

Debugger

7.

The type system of Python where variable types are determined at runtime.

a)

Static typing

b)

Dynamic typing

c)

Strong typing

d)

Weak typing

8.

A programming paradigm supported by Python that uses classes and objects.

a)

Functional programming

b)

Procedural programming

c)

Object-oriented programming

d)

Logic programming

9.

A blueprint used to create objects in Python.

a)

Function

b)

Class

c)

Module

d)

Package

10.

Instances created from a class in object-oriented programming.

a)

Objects

b)

Functions

c)

Scripts

d)

Arrays

11.

An OOP concept where a class can acquire properties and methods from another class.

a)

Encapsulation

b)

Polymorphism

c)

Inheritance

d)

Abstraction

12.

An OOP concept that allows methods to work with different data types.

a)

Inheritance

b)

Encapsulation

c)

Polymorphism

d)

Overloading

13.

The collection of built-in modules provided by Python.

a)

Standard library

b)

pip registry

c)

Conda environment

d)

Bytecode cache

14.

A built-in Python module feature that reduces the need for external libraries.

a)

“Batteries included” philosophy

b)

Bring-your-own-libraries

c)

Minimal core

d)

External-first design

15.

Python’s ability to run on different operating systems.

a)

Cross-platform compatibility

b)

Single-OS binding

c)

Kernel-only execution

d)

Mobile-only support

16.

The repository where Python third-party libraries are published.

a)

GitHub

b)

PyPI

c)

npm

d)

Maven Central

17.

A popular Python library used for numerical computing.

a)

NumPy

b)

Flask

c)

BeautifulSoup

d)

Pygame

18.

A Python library commonly used for data analysis.

a)

pandas

b)

Django

c)

SciPy

d)

Matplotlib

19.

A Python library widely used for machine learning.

a)

scikit-learn

b)

Requests

c)

Pillow

d)

SQLAlchemy

20.

Two popular Python frameworks used for web development (give one).

a)

Django

b)

Flask

c)

NumPy

d)

pandas

21.

The interactive shell in Python used to test code in real time.

a)

REPL

b)

Compiler

c)

virtualenv

d)

pip

22.

The meaning of REPL in Python.

a)

Run-Edit-Program Log

b)

Read-Eval-Print Loop

c)

Rapid Execution Processing Layer

d)

Recursive Event Processing Loop

23.

A field where Python is commonly used for automating tasks.

a)

Gamepad firmware development

b)

Web browser engines

c)

Scripting and automation

d)

Microwave control systems

24.

A Python use case involving the analysis of large datasets.

a)

Real-time ray tracing

b)

Data analysis

c)

BIOS flashing

d)

Font rendering

25.

A general term describing Python’s ability to be used in many application domains.

a)

Domain-specific

b)

General-purpose

c)

Graphics-only

d)

Embedded-only

26.

Python is best described as a ________ programming language.

a)

Low-level and compiled

b)

High-level and interpreted

27.

Who created the Python programming language?

a)

Dennis Ritchie

b)

James Gosling

c)

Guido van Rossum

d)

Bjarne Stroustrup

28.

One key feature that improves Python code readability is its use of ________.

a)

Semicolons

b)

Braces

c)

Indentation

d)

Line numbers

29.

Python executes code ________.

a)

After full compilation

b)

Line by line using an interpreter

c)

Only inside a browser

d)

Only on Linux systems

30.

Which of the following best describes Python’s typing system?

a)

Static typing

b)

Manual typing

c)

Dynamic typing

d)

Fixed typing

31.

In Python, variable data types are ________.

a)

Declared explicitly by the programmer

b)

Inferred at runtime

c)

Limited to integers only

d)

Defined during compilation

32.

Which programming paradigm is supported by Python?

a)

Object-oriented programming

b)

Procedural only

c)

Functional only

d)

Assembly programming

33.

A class in Python is used to ________.

a)

Store data permanently

b)

Create objects

c)

Execute loops

d)

Compile code

34.

What do you call an instance of a class?

a)

Method

b)

Variable

c)

Object

d)

Module

35.

Inheritance allows a class to ________.

a)

Delete other classes

b)

Share properties and methods

c)

Run faster

d)

Avoid indentation

36.

Polymorphism refers to ________.

a)

Writing longer code

b)

Using multiple programming languages

c)

Methods working with different object types

d)

Avoiding object creation

37.

Python’s standard library provides ________.

a)

Only web tools

b)

Built-in modules for common tasks

c)

Paid libraries only

d)

Hardware drivers

38.

Which task can be handled using Python’s standard library?

a)

File input and output

b)

System operations

c)

Regular expressions

d)

All of the above

39.

Python is considered cross-platform because it ________.

a)

Runs only on Windows

b)

Requires special hardware

c)

Works on multiple operating systems

d)

Is written in C only

40.

Which operating system is NOT mentioned as supporting Python?

a)

Windows

b)

macOS

c)

Linux

d)

Android

41.

PyPI is best described as ________.

a)

A Python compiler

b)

A Python text editor

c)

A repository for Python packages

d)

A debugging tool

42.

Which library is mainly used for numerical computing?

a)

Pandas

b)

NumPy

c)

Flask

d)

Django

43.

Pandas is commonly used for ________.

a)

Web design

b)

Data analysis

c)

Game development

d)

Operating systems

44.

TensorFlow is primarily used for ________.

a)

Text editing

b)

Networking

c)

Machine learning

d)

File compression

45.

The Python REPL allows users to ________.

a)

Compile programs only

b)

Write and test code interactively

c)

Design databases

d)

Create hardware drivers

46.

REPL stands for ________.

a)

Run-Execute-Print-Loop

b)

Read-Evaluate-Print-Loop

c)

Read-Execute-Process-Logic

d)

Run-Evaluate-Program-Line

47.

Python is widely used in artificial intelligence because of its ________.

a)

Complex syntax

b)

Limited libraries

c)

Rich ecosystem and simplicity

d)

Hardware dependency

48.

Which of the following is NOT a common use of Python?

a)

Web development

b)

Data science

c)

Automation

d)

Manual hardware assembly

49.

Python is popular among beginners and professionals mainly because of its ________.

a)

Difficulty

b)

Readability and versatility

c)

Hardware limitations

d)

Platform dependency

50.

What is the Descriptive Title of this subject?

(a)