0% found this document useful (0 votes)
9 views3 pages

Sample Python Viva Questions 24-25

The document outlines a comprehensive list of Python viva questions categorized by topics such as installation, control structures, operators, data structures, functions, packages, GUI (Tkinter), classes, inheritance, NumPy, and database interactions. Each category contains specific questions that cover fundamental concepts and practical applications in Python programming. It serves as a study guide for individuals preparing for interviews or assessments related to Python.

Uploaded by

bhushanmarathe62
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Sample Python Viva Questions 24-25

The document outlines a comprehensive list of Python viva questions categorized by topics such as installation, control structures, operators, data structures, functions, packages, GUI (Tkinter), classes, inheritance, NumPy, and database interactions. Each category contains specific questions that cover fundamental concepts and practical applications in Python programming. It serves as a study guide for individuals preparing for interviews or assessments related to Python.

Uploaded by

bhushanmarathe62
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Python Viva Questions (Topic-wise)

1.How to install python,advantages,disadvantages,applications

Control Structures

1. What are control structures in Python?


2. What is the difference between if, elif, and else?
3. How does a while loop differ from a for loop?
4. What is the purpose of break and continue statements?
5. How can you use a loop to iterate through a list?

Operators

1. What are the different types of operators in Python?


2. What is the difference between = and ==?
3. Explain logical operators: and, or, not with examples.
4. What are identity operators (is, is not) and how are they different from equality
operators?
5. Types of operators

Data Structures

1. What is the difference between a list and a tuple?


2. What is a dictionary? How is it different from a list?
3. What are sets used for in Python?
4. How can you remove duplicate elements from a list?
5. How do you iterate through a dictionary?

Functions

1. How do you define a function in Python?


2. What is the use of the return and continue statement?
3. What are default arguments in functions?
4. What is a lambda function? sub fuction?
5. What is the difference between a function and a method?
Packages & Modules

1. What is the difference between a module and a package?


2. How do you import a module in Python?
3. What is the use of the math module?
4. How do you install external packages (e.g., pip install numpy)?
5. Can you create your own module? How?

GUI (Tkinter)

1. What is Tkinter used for?


2. How do you create a simple window using Tkinter?
3. What widgets are available in Tkinter?
4. How does the Button widget work?
5. What is the role of mainloop() in Tkinter?

Classes & Objects

1. What is a class in Python?


2. How do you create an object?
3. What is the purpose of the __init__ method?
4. What is the difference between class variables and instance variables?
5. What is self?
6. How to create constructor?

Inheritance

1. What is inheritance?
2. What are the types of inheritance in Python?
3. What is the use of super() in inheritance?
4. Can Python support multiple inheritances?
5. What is method overriding?overloading?
NumPy (Numerical Python)

1. What is NumPy used for?


2. How do you create an array in NumPy?
3. What is the difference between a list and a NumPy array?
4. How do you perform matrix operations using NumPy?
5. How do you find the shape and size of a NumPy array?

Database (SQLite/MySQL with Python)

1. How do you connect Python to a database?


2. What is sqlite3 module used for?
3. How do you execute a SQL query using Python?
4. What is the purpose of commit() in database operations?
5. How do you fetch records from a database?

and many more........................

Sreedhanya s pillai

You might also like