Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Number convertor
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
MD5 Hash Generator
Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase
String to Uppercase
Word Count Calculator
Empty Lines Remover
HTML Tags Remover
Binary to Hex
Hex to Binary
Rot13 Transform on a String
String to Binary
Duplicate Lines Remover
Change theme
Dark
Light
System
Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
How To
How To NodeJs
How To Linux
How To AngularJs
How To PHP
How To HTML
How To CSS
How To Symfony
How To Git
How To Apache
How To JavaScript
How To Java
How To Vue.js
How To Python
Python Basics
1/25
What does the 'print' function do in Python?
It displays text or variables to the console
It performs mathematical calculations
It defines a new function
It creates a loop
Next >
2/25
Which keyword is used to define a function in Python?
def
function
define
func
Next >
3/25
How do you create a list in Python?
By enclosing items in square brackets []
By using parentheses ()
By using curly braces {}
By using angle brackets <>
Next >
4/25
Which operator is used for 'not equal to' in Python?
!=
==
<=
>=
Next >
5/25
Which Python data type is used to store a collection of items, where each item is unique?
Set
List
Tuple
Dictionary
Next >
6/25
What is the result of 'True and False' in Python?
False
True
None
Error
Next >
7/25
What is the purpose of the 'for' loop in Python?
To iterate over a sequence of items
To define a function
To create a conditional statement
To print text to the console
Next >
8/25
What is the correct way to import a module named 'math' in Python?
import math
include math
require math
from math import *
Next >
9/25
Which Python data type is mutable?
List
Tuple
Set
String
Next >
10/25
What does the 'lambda' keyword in Python create?
An anonymous function
A new list
A data type
A loop
Next >
11/25
What is the output of the expression '5 ** 2' in Python?
25
10
52
7
Next >
12/25
Which method is called when an object is created from a class in Python?
__init__
__new__
__create__
__start__
Next >
13/25
In Python, what does the 'global' keyword do?
Declares that a variable inside a function is global
Imports a global variable from another module
Creates a new global variable
Converts a local variable into a global variable
Next >
14/25
In Python, how can you catch multiple exceptions in a single block?
Using a tuple in the except clause
Using multiple except clauses
Using the all keyword
It's not possible to catch multiple exceptions in one block
Next >
15/25
What is 'map' function used for in Python?
To apply a function to all items in an iterable
To filter items from a list
To merge two lists
To create a dictionary
Next >
16/25
In Python, what is 'multiprocessing' used for?
To create processes that run concurrently
To manage multiple data processing streams
To process large datasets in parallel
To enhance the speed of single-threaded processes
Next >
17/25
What is the difference between the 'array' and 'list' data types in Python?
Arrays can only contain elements of the same data type, while lists can contain elements of different data types
There is no difference; they are the same in Python
Lists are mutable, while arrays are immutable
Arrays are used for arithmetic operations, while lists are not
Next >
18/25
What does the 'glob' module in Python provide?
Functions to create file lists from directory wildcard searches
Global variable management
Network communication capabilities
Graphical user interface components
Next >
19/25
What is the 'pandas' library primarily used for in Python?
Data analysis and manipulation
Parallel programming
Web development
Creating GUI applications
Next >
20/25
In Python, what is 'matplotlib' commonly used for?
Data visualization
Machine learning models
Web scraping
Database management
Next >
21/25
What is the 'GIL' in Python?
Global Interpreter Lock, a mechanism that prevents multiple native threads from executing Python bytecodes at once
General Instruction List, a list of all Python commands and their uses
Graphical Interface Layer, used for creating GUI applications in Python
Guided Iteration Loop, a loop structure in Python
Next >
22/25
What is 'Monkey Patching' in Python?
Dynamically modifying or extending a module or class at runtime
Fixing a bug in a quick or crude way
A technique for optimizing Python code
Testing Python applications
Next >
23/25
In Python, what is a 'Generator' and how is it different from a normal function?
A function that yields values one at a time, resuming where it left off when called again
A special function for creating iterable objects; unlike normal functions, it cannot return values
A quicker version of a function; it generates results faster but can only be used once
A function that generates random numbers; unlike normal functions, it does not take any arguments
Next >
24/25
How does 'Class Inheritance' work in Python?
It allows a class ('subclass') to inherit attributes and methods from another class ('superclass')
It is a method to create new classes based on existing classes without inheritance
It copies data from one class to another
It merges two classes into one
Next >
25/25
What are 'decorators' in Python?
Functions that modify the behavior of other functions or methods
Special symbols that change the way a function or method's output looks
Tools for adding new methods to existing classes
Syntax for creating comments in Python code
Next >
To get the result of the quiz, please provide your email address (optional)..
Get Certificate
It seems you haven't answered any questions yet. Please provide your answers to proceed.