Font size
WorksheetsIT 1 (2nd sem prelim) - Python
Total questions: 50
Worksheet time: 25mins
A high-level, interpreted programming language known for its readability and simplicity.
Python
C
Assembly
Java
The creator of the Python programming language.
Guido van Rossum
James Gosling
Bjarne Stroustrup
Dennis Ritchie
The year Python was first released.
1989
1991
1995
2000
A feature of Python that emphasizes code clarity and ease of understanding.
Pointer arithmetic
Readability
Manual memory management
Mandatory semicolons
The way Python defines code blocks instead of using braces.
Indentation
Parentheses
Semicolons
Begin/end keywords
The program that executes Python code line by line.
Compiler
Interpreter
Linker
Debugger
The type system of Python where variable types are determined at runtime.
Static typing
Dynamic typing
Strong typing
Weak typing
A programming paradigm supported by Python that uses classes and objects.
Functional programming
Procedural programming
Object-oriented programming
Logic programming
A blueprint used to create objects in Python.
Function
Class
Module
Package
Instances created from a class in object-oriented programming.
Objects
Functions
Scripts
Arrays
An OOP concept where a class can acquire properties and methods from another class.
Encapsulation
Polymorphism
Inheritance
Abstraction
An OOP concept that allows methods to work with different data types.
Inheritance
Encapsulation
Polymorphism
Overloading
The collection of built-in modules provided by Python.
Standard library
pip registry
Conda environment
Bytecode cache
A built-in Python module feature that reduces the need for external libraries.
“Batteries included” philosophy
Bring-your-own-libraries
Minimal core
External-first design
Python’s ability to run on different operating systems.
Cross-platform compatibility
Single-OS binding
Kernel-only execution
Mobile-only support
The repository where Python third-party libraries are published.
GitHub
PyPI
npm
Maven Central
A popular Python library used for numerical computing.
NumPy
Flask
BeautifulSoup
Pygame
A Python library commonly used for data analysis.
pandas
Django
SciPy
Matplotlib
A Python library widely used for machine learning.
scikit-learn
Requests
Pillow
SQLAlchemy
Two popular Python frameworks used for web development (give one).
Django
Flask
NumPy
pandas
The interactive shell in Python used to test code in real time.
REPL
Compiler
virtualenv
pip
The meaning of REPL in Python.
Run-Edit-Program Log
Read-Eval-Print Loop
Rapid Execution Processing Layer
Recursive Event Processing Loop
A field where Python is commonly used for automating tasks.
Gamepad firmware development
Web browser engines
Scripting and automation
Microwave control systems
A Python use case involving the analysis of large datasets.
Real-time ray tracing
Data analysis
BIOS flashing
Font rendering
A general term describing Python’s ability to be used in many application domains.
Domain-specific
General-purpose
Graphics-only
Embedded-only
Python is best described as a ________ programming language.
Low-level and compiled
High-level and interpreted
Who created the Python programming language?
Dennis Ritchie
James Gosling
Guido van Rossum
Bjarne Stroustrup
One key feature that improves Python code readability is its use of ________.
Semicolons
Braces
Indentation
Line numbers
Python executes code ________.
After full compilation
Line by line using an interpreter
Only inside a browser
Only on Linux systems
Which of the following best describes Python’s typing system?
Static typing
Manual typing
Dynamic typing
Fixed typing
In Python, variable data types are ________.
Declared explicitly by the programmer
Inferred at runtime
Limited to integers only
Defined during compilation
Which programming paradigm is supported by Python?
Object-oriented programming
Procedural only
Functional only
Assembly programming
A class in Python is used to ________.
Store data permanently
Create objects
Execute loops
Compile code
What do you call an instance of a class?
Method
Variable
Object
Module
Inheritance allows a class to ________.
Delete other classes
Share properties and methods
Run faster
Avoid indentation
Polymorphism refers to ________.
Writing longer code
Using multiple programming languages
Methods working with different object types
Avoiding object creation
Python’s standard library provides ________.
Only web tools
Built-in modules for common tasks
Paid libraries only
Hardware drivers
Which task can be handled using Python’s standard library?
File input and output
System operations
Regular expressions
All of the above
Python is considered cross-platform because it ________.
Runs only on Windows
Requires special hardware
Works on multiple operating systems
Is written in C only
Which operating system is NOT mentioned as supporting Python?
Windows
macOS
Linux
Android
PyPI is best described as ________.
A Python compiler
A Python text editor
A repository for Python packages
A debugging tool
Which library is mainly used for numerical computing?
Pandas
NumPy
Flask
Django
Pandas is commonly used for ________.
Web design
Data analysis
Game development
Operating systems
TensorFlow is primarily used for ________.
Text editing
Networking
Machine learning
File compression
The Python REPL allows users to ________.
Compile programs only
Write and test code interactively
Design databases
Create hardware drivers
REPL stands for ________.
Run-Execute-Print-Loop
Read-Evaluate-Print-Loop
Read-Execute-Process-Logic
Run-Evaluate-Program-Line
Python is widely used in artificial intelligence because of its ________.
Complex syntax
Limited libraries
Rich ecosystem and simplicity
Hardware dependency
Which of the following is NOT a common use of Python?
Web development
Data science
Automation
Manual hardware assembly
Python is popular among beginners and professionals mainly because of its ________.
Difficulty
Readability and versatility
Hardware limitations
Platform dependency
What is the Descriptive Title of this subject?
(a)
