You are on page 1of 2

PYTHON PROGRAMMING

FIRST YEAR QUESTION BANK


1ST MODULE
1) Define python programming language. Explain the features of python.
2) Explain the steps of installing python and execution with an example.
3) What is input and output? Explain each with an example.
4) List the basic data types and explain each with an example.
5) Define string. Explain the example of “python programming” as a string.
6) List and explain compound data types with an example of “MISSISSIPPI”.
7) Write & explain a program to find the first ‘n’ natural numbers.
8) Write and explain the program of “card is drawn at random from a deck of well-
shuffled cards. Find the probability of it being neither a king nor a spade”.
2nd MODULE
1) List the conditionals explain each with an example.
2) Define looping. Explain for loop and while loop with an examples.
3) Write & explain the program to ”find the student from the department using USN as
an example and also explain that roll number may be in capital or small case letters”.
4) Define list. Explain how to i) create a list ii) access a list iii) Slicing a list iv) adding
elements to the list.
5) Write and explain any 3 simple programs on list.
6) Define dictionary. Explain how to create a dictionary, add elements to the dictionary
& removing elements from the dictionary.
7) Define string. Explain string manipulation with an example.

3rd MODULE
1) Draw and explain the hierarchy of package.
2) Define functions. Explain it with examples.
3) Define global variable & explain it with an example.
4) What is module? Explain with an example.
5) Write & explain a program to create a module to track academic performance.
6) Define package and explain it with an example of tictactoe.
7) Define default arguments. Explain it with an example.
8) What is recursion? Explain it with an example of binary search.
9) Write & explain a program to create a module of prime numbers.
4th MODULE
1) What is file handling? Write the different modes for opening a file & syntax to open a
file.
2) Explain how to i)Open a file ii)Read a file iii)Write a file iv)Close a file with an
examples for each
3) What is text processing? Explain it with table and examples.
4) Define regular expression. Explain i) Explain character matching in regular
expression ii) extracting data using regular expressions.
5) Draw and explain with example of the block diagram of file handling.
6) Explain different modes of file handling and explain each with an example.
7) Explain in detail the character matching in regular expressions.
5th MODULE
1) What is Frame work? Explain few operations involved in web application using
framework.
2) Write the difference between i) Micro-Framework and full stack framework
ii) Library and Framework.
3) Mention the top frameworks.Explain i)Django Framework architecture ii)why Django
iii)Features of Django.
4) Explain i) Bottle Framework. ii)Flask Framework iii)Cherrypy Framework
5) Write applications of python in Data science
6) Write a note on applications of python in Artificial Intelligence and Machine
Learning.
7) Write the steps in details to install django & python.

You might also like