grade 9 Python Programming - Important _ Previously Asked Questions - Python Programming _ Study Glance
grade 9 Python Programming - Important _ Previously Asked Questions - Python Programming _ Study Glance
Study Glance
10) Discuss the SQL commands/statements used for creating, using and dropping a database?
18) Explain with an example, how + and * operators work with strings.
3) Summarize various operators, built-in functions and standard library modules that deals with Python's numeric type?
4) Explain the following file built-in function and methods with clear syntax, description and illustration:
a)open() b)file() c)seek() d)tell e)read()
5) How does try-except statement work?Demonstrate with an example python code?
13) What do you mean by a constructor? List and describe various constructors used for converting to different data types?
14) Describe in detail about Python SQLAlchemy ORM with a case study of Employee role databse?
15) Write a Python program that prints the intersection of two lists. (Without using sets)?
16) What are the different loop control statements available in Python? Explain with suitable examples?
17) Write a Python program that convert seconds to day, hour and minutes.
18) What are different applications of Python? Give examples.
19) Write a Python program to convert height in feet and inches to cm.
[1 feet = 12 inch and 1 inch= 2.54 cm]
(Sample input: 2 feet 7 inch Sample output: 78.74 cm)
20) List and explain different arithmetic operators supported by Python.
21) Write a Python program to print all prime numbers less than 256.
22) Write a Python program that interchanges the first and last characters of a given string.
23) Give a comparison between lists, tuples, dictionaries and sets.
24) What is Multithreading in Python and How to achieve it? When to use Multithreading in Python?
25) What is synchronization? Discuss about Global Interpreter Lock (GIL) in Python?
26) Discuss the following Multithreaded Programming Modules:
A) Thread Module
B) Threading Module
27) Define thread and multithreading in Python? Discuss about starting a new thread in python.
28) Processes versus Threads. What are the differences between processes and threads?
29) Discuss about GUI Programming in Python? Explain how to create GUI application using Tkinter?
30) Label and Entry Widgets and Python I/O. Create a GUI application that provides an Entry field where the user can provide the name and an
Entry field where the user can provide the password?
31) Develop a basic web browser using Tkinter which should have a Text widget where the user can enter a URL and a Canvas to display the
contents of the page.
32) Discuss various geometry managers (layout managers) in python using Tkinter with suitable examples?
33) Discuss about Entry widget? Explain any five properties of Entry Widget with suitable example?
34) What is the use of list box widget? Give an example to add elements to listbox using Tkinter?
37) Explain about Radiobutton widget in tkinter. How to create two radiobutton sets (one for gender and another for Indian or not) on the same
canvas.
39) Discuss about database programming in python? And explain the procedure of Database Programming using any DB-API with example?
40) Write a source code in python to read single and multiple results of query execution using DB-API?
41) Write a source code in python to show database connectivity and insert the following information in table named ‘Item’.
Item-No Item-Name Price Quantity
101 Geometry Box 50 100
102 Soap 100 50
103 Perfume 150 25
104 Pen 50 200
42) Write a python program to create Product Table(pro_id,pro_name,quantity) using any DB-API(MySQLdb or mysql.connector).
43) Write queries based upon Item table given
Item-No Item-Name Price Quantity
101 Geometry Box 50 100
102 Soap 100 50
103 Perfume 150 25
104 Pen 50 200 105 Pencil 20 100
i. Display item name and price value.
ii. Display the item information whose name starts with letter ‘p’.
iii. Display item name, whose price is in between 50 to 100.
iv. Display soap information.
v. Remove pen information.
44) What are the different functions to retrieve rows from a table? Explain with a suitable example.
46) Explain how to implement ORM in python using SQLALchemy with suitable Example?
47) Discuss about Declarative Mapping with the help of suitable example?
48) Write a python program to create Product Table (pro_id,pro_name,quantity) using ORM(SQLALchemy).
49) Discuss about inserting data into database table using SQLALchemy ORM with suitable example?
50) Write a python program to insert data into Product Table (pro_id,pro_name,quantity) using ORM(SQLALchemy).
51) Write about selecting data from database table using SQLALchemy ORM with suitable example?