0% found this document useful (0 votes)
94 views5 pages

Python Programming for Problem Solving

The document outlines a curriculum for a course on Programming for Problem Solving using Python at GITA Autonomous College, Bhubaneswar. It includes various short answer, focused, and long type questions across multiple modules, covering topics such as data types, control flow, functions, file handling, and object-oriented programming concepts. The questions are categorized by Bloom's Taxonomy levels to assess different cognitive skills.

Uploaded by

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

Python Programming for Problem Solving

The document outlines a curriculum for a course on Programming for Problem Solving using Python at GITA Autonomous College, Bhubaneswar. It includes various short answer, focused, and long type questions across multiple modules, covering topics such as data types, control flow, functions, file handling, and object-oriented programming concepts. The questions are categorized by Bloom's Taxonomy levels to assess different cognitive skills.

Uploaded by

rounakmishra415
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Programming For Problem Solving Using Python

GITA, Autonomous College BHUBANESWAR


PO
[Link] Part-I (Short Answer Tyte Question) Module BL CO &
PSO
1 Write Comparisons between interpreter and compiler. Mod-1 1
2 What type of translator used in python? Mod-1 2
3 What in the difference between int and float data type. Mod-1 1
4 What is a dictionary in Python? Mod-1 1
5 What are the Boolean values in python programming? Mod-1 2
6 What are the sequential data type in Python? Mod-1 1
7 Define keywords or reserve word with examples. Mod-1 1
8 Write down the basic data types used in Python programming. Mod-1 1
9 What is the purpose of using comment in python program? Mod-1 2
10 Write down the advantages of sequential Variable in python. Mod-1 2
What is the output of
11 Mod-2 3
print (0.12 + 0.23 = = 0.35)
12 What are membership operators? Give examples for usage. Mod-2 1
13 What is nested list? Write an example. Mod-2 2
14 Define control flow statement. Mod-2 1
15 Difference between append() and extend() function in list. Mod-2 2
16 Explain about Identity operators in python with appropriate examples. Mod-2 2
org="Gita Autonomous College"
17 print (org [2:10]) Mod-2 3
Write the printout value.
print (13//7)
18 Mod-2 3
Write the printout value.
print (4 + 3 % 5)
19 Mod-2 3
Write the printout value.
X = (2**3*3)
20 Print(X) Mod-2 3
Write the printout value.
21 Describe User-defined Function in python. Mod-3 2
22 Define mutable and immutable data type. Mod-3 1
23 Define Module in python? How to create a module and use it. Mod-3 2
24 Write different types of arguments in a function Mod-3 2
25 Define Iteration in python programming. Mod-3 2
26 Which inbuilt function is used to delete particular elements from a list. Mod-3 1
27 Difference between function and module in python. Mod-3 2
28 Write a syntax a function taking two argument. Mod-3 2
29 Define Anonymous function in Python. Mod-3 1
30 Write the syntax to create a function and return a value. Mod-3 1
State the use of read() and readline() function in python file handling
31 Mod-4 2
mechanism.
32 Write a syntax of try: except: block for error handling. Mod-4 1
Can a Python function return multiple values? If yes, how it works by
33 Mod-4 2
example?
34 Name two types of data files available in python . Mod-4 1
35 Write one basic difference between Text file and Binary file in Python. Mod-4 1
Write a statement in python to open a file named “[Link]” stored in
36 Mod-4 3
folder “content” in D drive.
Name the three modes of operation in which file can be opened in
37 Mod-4 2
python.
What is the difference between write and append mode operation in file
38 Mod-4 1
handling.
39 What is the difference between readline() and readlines() ? Mod-4 2
40 Write a program in python to display first line from the file(“[Link]”). Mod-4 3
41 Define Object in OOPs language. Mod-5 2
42 Define class in python? Mod-5 2
43 What is Encapsulation? Mod-5 2
44 Define Polymorphism? Mod-5 2
45 What is function overloading? Mod-5 2
46 What is an abstraction of data? Mod-5 2
47 Write syntax for defining function in Classes Mod-5 2
48 Write any three languages those support the OOP’s concepts. Mod-5 1
49 Write different types of class constructor in OOPs. Mod-5 1
50 Write a syntax for create an object of a class. Mod-5 2

PO
[Link] Part-II (Focused Type Question) Module BL CO &
PSO
1 List out the main differences between lists and tuples. Mod1 1
2 What are the rules for writing an identifier? Mod1 1
3 Explain the number or numeric data types in python and its types? Mod1 1
Write any five benefits of Python programming language as compare to
4 Mod1 1
other language.
What is the significance of unpacking the element in tuple through
5 Mod1 2
asterick (*). Explain with example.
Describe the syntax for the following inbuilt functions and explain with
6 Mod1 2
an example. a) max() , b) len()
Explain about different Relational operators in python with appropriate
7 Mod2 1
examples.
Write a Python program to convert height in feet and inches to cm.
8 Hints : (1 feet = 12 inch and 1 inch= 2.54 cm) Mod2 3
(Sample input: 2 feet 7 inch Sample output: 78.74 cm)
9 List different conditional statements in python with appropriate examples. Mod2 1
10 Define loop control statements (i.e break, continue and pass statement). Mod2 1
11 Explain different types of arithmetic operators supported by Python. Mod2 1
Write a python program to find area and perimeter of a circle. Were
12 Mod2 3
radius of circle input by user.
Write program to print three largest no and three smallest numbers in a list. The
list contain the elements of i.e L=[23, 4, 100, 45, 3, 56, 89, 12, 99, 103,
13 Mod-3 3
2,67,34,67]
o/p : [103,100,99,2,3,4]
Explain 4 inbuilt function used in ‘Lists’ of Python programming with
14 Mod-3 3
appropriate examples.
Write a Python function as power (x, n), Two argument of power () input
15 Mod3 3
by user i.e x & n. This function returns the value of (xn).
Write a Python class as revr(), that reverse a string word and return the
reverse value.
16 Mod3 3
Example: input value: “Bhubaneswar”
Return value of function: “rawsenabuhB”
17 What is recursive function and its limitations? Mod3 2
A list containing element as written below. Pass this list as argument of a
18 function as dtype(L) and print datatype of each element. Mod-3 3
L = [14, -11.3, 1-2j, True, ‘Gita 1st year’, (0,-1), [5,-3]]
What the difference is between append(a) and write(w) mode in file
19 Mod-4 2
handling?
20 Illustrate try-except-else statement in error handling in python. Mod-4 2
21 Difference between syntax error and run time error. Mod-4 2
22 Give the mechanism to handle exceptions in python programming. Mod-4 2
23 Write short notes on modules. Mod-4 2
Write any four inbuilt error handling function used in python
24 Mod-4 2
programming. Also write which type of error it can handle.
25 Write a program to demonstrate constructor with default arguments. Mod5 1
26 Explain data abstraction in detail. Mod5 2
27 What are the major concepts of OOPs language. Write any two concepts. Mod5 2
28 Write the advantages of Object-Oriented Programming. Mod5 2
29 Explain briefly on Data Hiding in python concept. Mod5 3
30 Explain inheritance in python with example. Mod5 2

PO
[Link] Part-III (Long Type Question) Module BL CO &
PSO
1 Define python? List the standard data types of python? Mod1 1
2 Define inheritance and list out different types of inheritances? Mod1 1
3 Show indexing and slicing with different data type structures? Mod1 2
4 What are different applications of Python? Give examples. Mod1 1
Write a program to display all factors of given no.
5 Example: Given no: 110 Mod2 3
Factor of given no is : [2,5,10,11,22,55,110]
Print the element of a given list in reverse order without using function.
6 Example: L1= [2, 3.4 , 5.4 , 7 , 10 , 32] Mod2 3
Output: L2= [32 , 10 , 7 , 5.4 , 3.4 , 2]
Write a program in python to display right angle triangle of ‘*’ pyramid.
Where user input the row. For example of 5 rows.
*
7 ** Mod2 3
***
****
*****
Explain about different Arithmetic operators used in python programming.
8 Mod2 2
Explain with appropriate examples.
Write a python function as division(L). That takes a List as argument of
integer numbers. Write a program to return a list those numbers are
9 divisible by both 2 and 3. Mod-3 3
Example: L= [2, 6 , 8 , 10 , 12 , 15, 18, 1, 24]
Return value: L1= [6, 12 , 18 ,24]
By using recursive function write a Python program to compute the
10 factorial of a given input number. Mod-3 3
Example : n!=1*2*3*4….. *n (Where n value input by user)
Define function as reciprocal_add() and it return a value of series addition
11 Mod-3 3
i.e 1 + 1/2 + 1/3 +. …. + 1/n. where n is a integer value input by user.
Write a python function as leap () to check whether input year is a leap
12 year or not. Also print the massage. Mod-3 3
Examples: 2000 i.e Leap year, 2004 i.e Leap year,
1900 i.e Not a Leap Year, 2002 i.e not a Leap year
List out different types of modes of operation for handling the file in open
13 Mod4 2
method in python?
14 Write a python program to write a sentence i.e “I am a student of GITA” Mod4 3
in existing text file as ‘[Link]’, without delete the old data which is
already present in ‘[Link]’.
Write the syntax in python programming to open, delete and rename a
15 Mod4 2
file?
Write a python program to count the number of words written in a text
16 Mod4 3
file.
17 Define class? How to create an class and its object in python. Mod5 1
18 Define inheritance and list out different types of inheritances? Mod5 2
19 Differentiate between method overloading and method overriding. Mod5 2
20 Difference between object and class in OOPs languages. Mod5 1

Bloom's Taxonomy Levels:


1 Remember
2 Understand
3 Apply

You might also like