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

Python Programming Imp

This document provides unit-wise important questions for a Python programming course. It includes short answer and long answer questions covering various Python topics like variables, data types, operators, conditional statements, files, exceptions, modules, GUI programming, web programming, databases, and more. Complete Python tutorials can be found on the ns lectures YouTube channel.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

Python Programming Imp

This document provides unit-wise important questions for a Python programming course. It includes short answer and long answer questions covering various Python topics like variables, data types, operators, conditional statements, files, exceptions, modules, GUI programming, web programming, databases, and more. Complete Python tutorials can be found on the ns lectures YouTube channel.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

For complete python subject tutorials please visit : ns lectures youtube channel

PYTHON PROGRAMMING - UNITWISE IMPORTANT QUESTIONS


UNIT - 1
short answer questions:
1. Introduction, features, application of python programming
2. Python variables and variable declaration rules
3. Python comments
4. Python identifier
5. Python input and output (print() , input() , eval() functions)
6. Python keywords
7. Python Unsupported types
8. Python indentation
9. Standard type built in functions
10. Literals and types of literals
11. Lambda function
12. Difference between c and python
13. Internal types and Other built in types
14. What is an object in python
15. Scope of variable in python
16. Type conversion and type casting in python

long answer questions:


1. Python standard types (or) data types
2. Explain various Operators in python ( arithmetic, logical, relational, bitwise,
assignment, identity, membership operators)
3. Conditional statements (if,if else, elif, nested if)
4. Iterative statements( while loop , for loop)
5. Transfer statements ( break, continue, pass)
6. Python functions, types of function, Parameter passing ,return statement in
function
7. Types of function arguments
8. Function recursion, finding factorial of a number by using recursion
9. Built in functions
10. Python sequences
11. Python strings ( various operations and built in methods)
12. Python lists ( various operations and built in methods)
13. Python tuples( various operations and built in methods)
For complete python subject tutorials please visit : ns lectures youtube channel

14. Python sets( various operations and built in methods)


15. Python dictionaries (or) mapping ( various operations and built in methods)
UNIT-2
short answer questions:
1. Define data persistence, relative path and absolute path
2. Explain command line arguments in python
3. Explain file execution in python
4. Explain sys module, exc_info() function, dir( ) function
5. Explain Calendar module, Keyword module, Math module
6. Explain Python module attributes( name, doc, file, dict attributes)
7. why exceptions now?, why exceptions at all?, exceptions as strings
8. how to raise exceptions (using raise keyword)
9. Explain use of assert keyword in python ( python assertions)
long answer questions:
FILES TOPIC:

1. file handling, file modes (x, r, w, a, r+, w+, a+, rb, wb, ab, rb+, wb+,
ab+ ), file built in function(open) and built in methods( read(), close(),
readline(), readlines() , append() )
2. python programs to create, read, write, append and delete a file
3. python program to copy text from one file to another file
4. Expalin seek() , tell() , truncate(), flush(), split() methods
5. Explain persistent storage modules in python( pickle module, marshal
module, shelve module, )dbm package
6. standard files ( stdin, stdout, stderr )
7. file system ( or directory) , os modules (mkdir, chdir, rmdir..etc..)

EXCEPTIONS TOPIC:

8. what is an exception, difference between exception and error,


exception handling in python ( try block, except block, else block and
finally block)
9. how to create exceptions ( using exception class)
10. context management (try...finally approach and with statement
approach)
11. standard exceptions

MODULES TOPIC:
For complete python subject tutorials please visit : ns lectures youtube channel

12. Python modules, types of modules (User defined modules and


predefined modules)
13. creating module for fibonacci series
14. Explain use of from..import statement and from..import * statement in
python
15. Python namespaces( built in , local, global namespaces)
16. Python packages
UNIT-3
short answer questions:
1. Define process and thread ( user level thread and kernel level thread)
2. difference between process and thread
3. define global interpreter lock (GIL)
4. Explain Inter process communication (IPC)
5. Explain lock, Rlock and Difference between lock and Rlock
long answer questions:
1. regular expressions ( re module)
2. regex functions
3. regex special sequences
4. regex meta characters
5. regex examples
6. define multithreading and explain thread module and threading module
7. explain sub process module and multi processing module
UNIT-4
short answer questions:
1. define tcl and tk
2. steps to create a simple GUI application using Tkinter in Python
3. Define a)Tk interface Extension (Tix), b) Python Mega Widgets
(PMW), c) wxWidgets & wxPython, d) GTK+, e) PyGTK, f) EasyGUI
4. Create GUI To display sum of two numbers using tkinter
5. Define a) Client-server communication b) Internet
6. Define World Wide Web (www)
7. Define Hypertext Transfer Protocol (http)
8. Define web server, Cookies and sessions
9. Define TCP/IP (Transmission Control Protocol/Internet Protocol)
10. Define firewall and proxy web client
11. Define URL (Uniform Resource Locator)
12. Define Python modules and classes for building web servers CGI
(Common Gateway Interface)
For complete python subject tutorials please visit : ns lectures youtube channel

long answer questions:

GUI PROGRAMMING:
1. Explain TKINTER module in python
2. Explain tkinter geometry() pack(), grid() and place() methods
3. Python Tkinter Button, Checkbutton, Radiobutton, Entry &
Label,Frame, Listbox
4. create Student details form using tkinter module.
5. Python To display a good morning message in a text box when the
user clicks the button
WEB PROGRAMMING:

6. Explain HTTP server

7. write python program and explain :

a) urllib module b) urlparse module c) urlunparse module d) urljoin


function

8. How to create simple web clients in python

9. python program to read the source code contents of www.google.com

10. Create simple CGI applications in python

UNIT-5
short answer questions:
1. Explain In-memory and Persistent Database Management Systems.
2. Define Database and various Types of databases
3. What is database software?
4. What is a database management system (DBMS), Structured Query
Language (SQL)?
5. Define MySQL database
6. Explain Database challenges.
7. Explain various SQL Commands and SQL operations
8. Difference between Open Source Database and Commercial
Database?,
9. What’s the difference between a database and a spreadsheet?
long answer questions:
1. Define Python Database API And database API module attributes.
For complete python subject tutorials please visit : ns lectures youtube channel

2. Explain Python SQLite CRUD Operations, Python program to create


student and employee databases, Python program to display, update
and delete the contents of database table
3. Explain Object-relational Managers (ORMs) in python and write
program that creates a database of students' details using
SQLAlchemy
4. Explain a)parameter style b)connection() function c) Connection
Object methods d) Cursor Objects, Cursor Objects attributes and
methods
5. Explain use of OFFSET , ORDER BY , FILTER BY in SQL
6. Explain use of Begin, Commit, Rollback operations in python
7. Define Constructors in Python and Types of Python Constructor?
8. Explain various Database Exceptions

You might also like