Stellar Study Cards

Free Python Flashcards | Simplify Your Learning Journey

53 Total Cards in This Deck

Free Python Flashcards | Simplify Your Learning Journey

Arrow keys or swipe to navigate cards

1 / 53 Total
Python Basics

What is a variable in Python?

2 / 53 Total
Python Basics

How do you create a comment in Python?

3 / 53 Total
Python Basics

What is the output of the expression 3 + 2 * 2 in Python?

4 / 53 Total
Python Basics

How do you start defining a function in Python?

5 / 53 Total
Python Basics

What is the purpose of the return statement in Python functions?

6 / 53 Total
Data Types and Variables

What is a variable in Python?

7 / 53 Total
Data Types and Variables

What are the basic data types available in Python?

8 / 53 Total
Data Types and Variables

How do you declare a string variable in Python?

9 / 53 Total
Data Types and Variables

What is the use of the type() function?

10 / 53 Total
Data Types and Variables

How do you convert a string to an integer in Python?

11 / 53 Total
Data Types and Variables

What is a floating-point number in Python?

12 / 53 Total
Control Flow

What does a 'for' loop do in Python?

13 / 53 Total
Control Flow

How does an 'if' statement work in Python?

14 / 53 Total
Control Flow

What is the purpose of the 'break' statement in a loop?

15 / 53 Total
Control Flow

How can you use a 'while' loop in Python?

16 / 53 Total
Control Flow

What is the role of the 'continue' statement in a loop?

17 / 53 Total
Control Flow

Explain the use of the 'else' clause with loops.

18 / 53 Total
Control Flow

What is the function of a 'pass' statement in Python?

19 / 53 Total
Functions and Modules

What is a function in Python?

20 / 53 Total
Functions and Modules

How do you import a module in Python?

21 / 53 Total
Functions and Modules

What is the purpose of the return statement in a function?

22 / 53 Total
Functions and Modules

How can you pass multiple arguments to a function?

23 / 53 Total
Functions and Modules

What is a Python module?

24 / 53 Total
Functions and Modules

How do you access a function from a module?

25 / 53 Total
Data Structures

What is a linked list?

26 / 53 Total
Data Structures

How does a stack operate?

27 / 53 Total
Data Structures

What is the time complexity for searching an element in a binary search tree (BST)?

28 / 53 Total
Data Structures

What is a queue and how does it function?

29 / 53 Total
Data Structures

Describe the main difference between an array and a linked list.

30 / 53 Total
Data Structures

What is a hash table, and how does it work?

31 / 53 Total
Data Structures

Explain what a tree data structure is.

32 / 53 Total
Data Structures

What is the difference between a stack and a queue?

33 / 53 Total
Object-Oriented Programming

What is Object-Oriented Programming (OOP)?

34 / 53 Total
Object-Oriented Programming

What are the four main principles of OOP?

35 / 53 Total
Object-Oriented Programming

Explain the concept of Encapsulation in OOP.

36 / 53 Total
Object-Oriented Programming

What is Inheritance in OOP?

37 / 53 Total
Object-Oriented Programming

How does Polymorphism work in OOP?

38 / 53 Total
Error Handling

What is the purpose of the try-except block in Python?

39 / 53 Total
Error Handling

How do you catch multiple exceptions using a single except block?

40 / 53 Total
Error Handling

What is the purpose of the finally block in Python's exception handling?

41 / 53 Total
Error Handling

How can you raise an exception manually in Python?

42 / 53 Total
Python File I/O

How do you open a file for reading in Python?

43 / 53 Total
Python File I/O

Which method is used to read the entire contents of a file as a string?

44 / 53 Total
Python File I/O

How do you ensure a file is properly closed after processing?

45 / 53 Total
Python Libraries and Modules

What is the purpose of the Python module 'os'?

46 / 53 Total
Python Libraries and Modules

How do you import a specific function from a module in Python?

47 / 53 Total
Python Libraries and Modules

What is the 'sys' module used for in Python?

48 / 53 Total
Python Libraries and Modules

How can you list all functions and variables defined in a module?

49 / 53 Total
Python Libraries and Modules

What is the use of the 'random' module in Python?

50 / 53 Total
Advanced Topics

What is the purpose of using decorators in Python?

51 / 53 Total
Advanced Topics

How does Python's Global Interpreter Lock (GIL) affect multithreading?

52 / 53 Total
Advanced Topics

Explain the difference between deep copy and shallow copy in Python.

53 / 53 Total
Advanced Topics

What is a metaclass in Python?