0% found this document useful (0 votes)
20 views

ADVANCE PYTHON

The document contains a series of questions related to advanced Python topics, including Tkinter, NumPy, threading, and Django. It is structured into multiple sections, each with questions that require definitions, explanations, and code examples. The questions cover a wide range of concepts, from GUI elements in Tkinter to database interactions in Django.

Uploaded by

kajigi5216
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)
20 views

ADVANCE PYTHON

The document contains a series of questions related to advanced Python topics, including Tkinter, NumPy, threading, and Django. It is structured into multiple sections, each with questions that require definitions, explanations, and code examples. The questions cover a wide range of concepts, from GUI elements in Tkinter to database interactions in Django.

Uploaded by

kajigi5216
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/ 7

ADVANCE PYTHON

OLD PAPER
Q.1 (A) Answer the following questions.

1. Define Tkinter Label.


2. Define Tkinter Button.
3. Which Property is use to set the color of the font in
Tkinter button?
4. _____ command used for check Tkinter present on your
computer or not.
5. Tkinter is a standard _____ library for python.
6. _____ method is used to create and change the name of the
window.
7. _________ method of tkinter create a master window(GUI).
8. ________ option of Entry widget display password character
as Text.
9. Which widget provide multiline input from the user on GUI?
10. Tkinter is used to create ________ application.
11. What is widget?
12. We can use any number of top-level windows in
application. (True/False)

Q.1 (B) Answer the following question. (Any Two)

1. Explain Tkinter Listbox in brief.


2. Explain Tkinter Entry in brief.
3. Write down the difference between Tkinter Radiobutton &
Tkinter Checkbutton.
4. Explain Tkinter Scrollbar with its usage.
5. Explain Tkinter window.
6. Explain Tkinter Pack() method.
7. Explain Tkinter widgets.
8. Explain Tkinter Place() method.
9. Explain grid( ) and pack( ) geometry methods.
10. Explain MessageBox widget with its methods.
11. Explain Button widget with an example.
12. Explain Listbox widget with an example.
13. Explain Tkinter LabelFrame with example.
14. Differentiate Text and Entry widget.
15. List various methods of Menu widget.

Q.1 (C) Answer the following question. (Any one)

1. List out the types of Tkinter Message box in brief.


2. Write a code to design three Menu with the name File, Edit
& Help using Tkinter.
3. Explain Tkinter Grid() method with example.
4. Explain Tkinter Text and Frame with example.
5. Explain Entry, Text widget with an example.
6. Explain Menu, Menubutton widget with an example.
7. Explain Tkinter canvas with example.
8. Explain Tkinter MessagesBox in detail.

Q.2 (A) Answer the following questions.

1. Define NumPy array.


2. Full form of NumPy.
3. List out Bitwise Operator of Python.
4. NumPy performs array-oriented computing. (True/False)
5. Ndarray stands for _______.
6. NumPy version string is stored under np.___________
attribute.
7. _________ attribute of ndarray object return number of
dimension.
8. numpy.array(5000) create ________ dimensional ndarray
object.
9. NumPy was created by _______.
10. NumPy contains a Matrix Library _______.
11. Which function is used calculate the middle element
of data?

Q.2 (B) Answer the following question. (Any Two)

1. List out NumPy Data type in brief.


2. Explain sorting & searching operation of NumPy Array in
brief.
3. What is the difference between Copies and Views?
4. List out any three String Function with suitable example.
5. Explain NumPy data types.
6. Explain NumPy mathematical Functions.
7. Explain NumPy Ndarray.
8. Explain Bitwise Operators.
9. Explain np.array( ) and np.asarray( ) with an example.
10. Explain np.frombuffer( ) and np.fromiter( ) with an
example.
11. Explain np.arange( ) and np.linspace( ) with an
example.
12. Explain numpy bitwise operator.
13. What is Numpy? How it is useful?
14. What is Ndarry? Describe its dimensions.
15. Explain multiply(), title() and join() of NumPy.
Que-2 (C) Attempt following. (Attempt Any One)

1. List out any five Mathematical function with suitable


Example.
2. Explain NumPy Array Iteration with suitable example.
3. Explain NumPy Linear Algebra with example.
4. Explain sorting and searching in NumPy with example.
5. Explain NumPy Brodcasting with an example.
6. Explain any five NumPy String functions.

Q.3 (A) Answer the following questions.

1. Define thread.
2. Which method is use to run the thread?
3. Which method is use to display the graph?
4. If you want to install PyLab, you must also install
_______.
5. ______ Function used to make some changes to figure.
6. ______ Plot is a type of plot that shows the data as a
collection of points.
7. _____________method display plot in pyplot.
8. The _______________method is the entry point for a thread.
9. The _______________method checks whether a thread is still
executing.
10. What is PyLab?
11. Plot can be saving in file using _____ method.
12. ________ Method adds item to a multithreaded queue.

Q.3 (B) Answer the following question. (Any Two)

1. Explain Scatter function with suitable example.


2. Explain Thread Priority with its methods.
3. Explain the Thread Synchronization with suitable example.
4. Explain Thread with suitable example.
5. Explain MatPlotlib methods.
6. Explain Synchronizing threads.
7. Difference between Python Multithreading and
Multiprocessing.
8. Explain scatter() method.
9. Explain pie plot in Python.
10. What is Thread? Explain methods provided by Thread
class in Python.
11. Explain bar plot in Python.
12. Explain scatter plot in Python.
13. How can we do plotting using PyLab?
14. List all marks available in plots.
15. What is thread?
16. How can we start a new thread?

Q.3 (C) Answer the following question. (Any one)

1. Explain Pie chart with suitable example.


2. Explain Bar chart with suitable example.
3. Explain Thread Methods in details.
4. Explain PyLab Bar chart with example.
5. Explain Multithreaded Priority Queue with suitable example.
6. How to represent multiple plot within PyPlot? Explain with
an example.
7. Explain threading module with example.
8. Explain synchronizing threads with example.

Q.4 (A) Answer the following questions.

1. Define model.
2. Which Query is use to display the data from the table?
3. Which Query is use to detele the data from the table?
4. Django automatically creates a _____ database for your project.
5. By default ______ file is used as a Django setting file.
6. ______ Module is used to connect python application with the
MySQL.
7. Which query is use to access data from the table?
8. What is model?
9. ______ Function is used to create database connection in mysql
with python.
10. _____ Method is used to fetch single record from database
table.
11. ______ method is used to close current cursor object.

Q.4 (B) Answer the following question. (Any Two)

1. Write down the code to create database.


2. Write down the code to create table.
3. Explain get() and filter() method for update operations.
4. Write down the code to insert 5 records in the table (table
name: student).
5. Explain Model class and variable.
6. Explain database fields.
7. Explain database Configuration Django With SQLite.
8. Explain get() and filter() method.
9. Write down the code to fetch all data from table.
10. Write down the code to insert data in table.
11. Write steps to python program that interact with a
MySQL based database.
12. How to create connection with database in python.
13. How to create database from python?
14. How can we delete object from database in python.

Q.4 (C) Answer the following question. (Any one)

1. Write down the code to display records from the student


table on the base of the name field.
2. Write down the code to update any three records on the base
of the name field and display all the records.
3. Explain Basic data access in details.
4. Explain Database with Tkinter in details.
5. Write down the code to access data from emp table those who
earn salary more than average salary.
Table Name emp Columns empno, ename, deptno, salary

6. Explain database defining Model in Python.


7. Write a code to create database login page in using
Tkinter.
8. Write a code to insert and update data.

Q.5 (A) Answer the following questions.

1. Full form of MVT.


2. Full form of HTTP.
3. Which command is use to start the Server?
4. Full form of WAF is ______.
5. MVC stands for ______.
6. When a page is requested, Django creates ______object.
7. __________ command is used to create admin account for
admin panel.
8. ______________ command is used to create django project.
9. ______________ command is used to create application in
django project.
10. _______ File is run to active environment for Django
project.
11. Which file is used to interact with your Django
project via the command line.
Q.5 (B) Answer the following question. (Any Two)

1. Explain HTTP Client-Server-Request–Response.


2. What is the use of urls.py file of Django.
3. Explain MVC pattern.
4. Write down commands of creating project and creating
application in Django.
5. Explain advantages of Django.
6. What is MVT architecture?
7. Explain Django project architecture.
8. Explain request-response cycle.
9. What is django? Explain installation steps of django.
10. How to start django project? Explain with an example.
11. Explain django MVT pattern in detail.
12. Explain django application life cycle.
13. What is Django? How it is useful.
14. Write features of Django.
15. Write steps for Django installation.
16. Discuss HttpRequest class.

Q.5 (C) Answer the following question. (Any one)

1. Explain HTTP Request and HTTP Response concept of web


application.
2. Explain django project structure in detail.
3. Create View using Django.
4. Explain Django basic template filters.
5. Explain Django project architecture.
6. Write a code to run the application which print “Hello
World” using Django.
7. Explain MVC design pattern.

You might also like