Cse - R21 - Ge3151 - Problem Solving and Python Programming
Cse - R21 - Ge3151 - Problem Solving and Python Programming
19 A CO1 Discover the python program to get input from the user and print.
23 A CO2 List Out the rules to be followed for naming any identifier
24 A CO2 List the syntax for function call with and without arguments.
27 A CO2 What are the two parts of function definition give the syntax
28 A CO2 Point out the difference between recursive and iterative technique.
29 A CO2 Give the various data types in Python.
30 A CO2 Give the reserved words in Python.
31 A CO2 Give the operator precedence in python
32 A CO2 Give the syntax for variable length arguments.
33 A CO2 Classify a program to assign and access variables.
34 A CO2 Express tuple assignment with example
35 A CO2 Identify the distance between two points
36 A CO2 Demonstrate a program to assign and access variables.
37 A CO2 Demonstrate the various operators in python.
38 A CO2 Discover the difference between logical and bitwise operator.
39 A CO2 Demonstrate how a function calls another function. Justify your answer
40 A CO2 Collect the importance of indentation in python.
41 A CO2 Calculate and assign how an input operation was done in python
42 A CO2 Exhibit the uses of python module.
43 A CO3 Write the syntax of if and if-else statements.
44 A CO3 List out the applications of arrays
45 A CO3 What will be the output of print str[2:5] if str=’hello world!’?
46 A CO3 Write a program to iterate a range using continue statement.
47 A CO3 Where does indexing starts in python?
48 A CO3 Define array with an example.
49 A CO3 How to access the elements of an array using index?
50 A CO3 Discuss about continue and pass statements.
51 A CO3 Give the use of return () statement with a suitable example.
52 A CO3 Name the type of Boolean operators.
53 A CO3 Explain about break statement with an example
54 A CO3 Classify the effects of slicing operations
55 A CO3 Differentiate for loop and while loop
56 A CO3 Classify global variable with local variable
57 A CO3 Illustrate the flow chart of if-elif- else statements
58 A CO3 Describe various methods used on a string. (Any Four)
59 A CO3 What are the advantages and disadvantages of recursion function?
60 A CO3 Discover the string modules
61 A CO3 Construct function composition with syntax.
62 A CO3 Examine the different ways to manipulate strings in python.
63 A CO3 Compute the significance of for loop with else in an example.
64 A CO4 Define Python list.
65 A CO4 What are the list operations?
66 A CO4 What are the different ways to create a list?
67 A CO4 List out the methods that are available with list object in python programming
68 A CO4 Define Python tuple.
69 A CO4 Define dictionary with an example
70 A CO4 Can you use the addition assignment operator, +=, with two lists? What is the result?
71 A CO4 Describe list slicing with examples.
72 A CO4 What are the advantages of tuple over list?
73 A CO4 What are the properties of dictionary keys?
74 A CO4 What is the use of all(), any(), cmp() and sorted() in dictionary?
75 A CO4 Differentiate between tuples and dictionaries.
76 A CO4 Summarize the about list comphrehension.
77 A CO4 Identify the methods used in tuples.
78 A CO4 Illustrate negative indexing in list with an example.
79 A CO4 Show the membership operators used in list
80 A CO4 Classify the Python accessing Elements in a tuples.
81 A CO4 Compute an example on insertion sort.
82 A CO4 Determine How a tuple is iterated? Explain with an example.
83 A CO4 Demonstrate how tuples are used as return values?
84 A CO4 Compute the bubble sort on the elements 23,78,45,8,32,56.
85 A CO5 Define the access modes
86 A CO5 Define read and write file.
87 A CO5 Difference between built in exceptions and handling exception
88 A CO5 How to import statements?
89 A CO5 What is mutable?Write one example.
90 A CO5 Identify what are the packages in python
91 A CO5 Define about namespace and scoping
92 A CO5 Distinguish between files and modules.
93 A CO5 Describe renaming and delete.
94 A CO5 Discuss File.isatty[].
95 A CO5 Describe built – in class attribute
96 A CO5 Difference between global and local
97 A CO5 Express built in exceptions
98 A CO5 Classify the module in python
99 A CO5 Discover the format operator available in files.
100 A CO5 Examine buffering
101 A CO5 Discover except Clause with Multiple Exceptions.
102 A CO5 Demonstrate format operator with example.
103 A CO5 Collect the different modes of file opening
104 A CO5 Develop a program towrite a data in a file for both write and append modes.
105 A CO5 Examine the object as return values.
106 B CO1 Discuss and Write an algorithm and give the flowchart to find the net salary of an employee.
107 B CO1 Explain and Write an algorithm,flowchart to calculate 2^4
108 B CO1 Summarize the difference between algorithm, flow chart and pseudo code
Discuss with suitable examples i)Find minimum in a list
109 B CO1 ii)Find Maximum in a list
110 B CO1 What are the building blocks of an algorithm? Explain in detail.
111 B CO1 Explain Algorithmic problem solving in detail.
112 B CO1 Describe pseudo code with its guidelines
113 B CO1 What is flowchart? Explain in detail
114 B CO1 Write an algorithm to find the minimum number in a list.
115 B CO1 Illustrate the Tower of Hanoi
116 B CO1 Explain the algorithm GCD and find LCM
117 B CO1 Explain algorithmic problem solving technique in detail.
i)Discuss the difference between tuples and list ii) Discuss the various operation that can be
118 B CO2 performed on a tuple and Lists (minimum 5)with an example program.
i)Explain about area of circle is calculated explain with an example. ii) Describe a program to
calculate student result based on two examinations, one sports event and three activities
119 B CO2 conducted. The weightage of the activity = 30%, sports =20%, and examination=50%
i) Discuss the need and importance of function in python. ii) Illustrate a program to exchange the
120 B CO2 value of two variables with temporary variables
121 B CO2 Explain in detail about the various operators in python with suitable examples.
i) Illustrate a program to display different data types using variables and literal constants. ii) Show
122 B CO2 how an input and output function is performed in python with an example.
123 B CO2 Demonstrate the various expressions in python with suitable examples.
i)Illustrate the syntax and rules involved in the return statement in python ii) Develop a program
124 B CO2 to demonstrate the flow of control after the return statement in python
i)Explain a program to find out the distance between two points using python. ii) Write a program
125 B CO2 to calculate the simple interest using python.
i)Explain What is membership and identity operators. ii) Write a program to perform addition,
subtraction, multiplication, integer division, floor division and modulo division on two integer and
126 B CO2 float.
127 B CO2 Examine in detail about function prototyping in python. With suitable example program
i)Analyze the difference between local and global variables. ii) Explain with an example program to
128 B CO2 circulate the values of n variables.
i)Explain with an example program to return the average of its argument ii) Explain the various
129 B CO2 features of functions in python
(i). Write a python program to find the given number is odd or even (ii). Explain break and continue
130 B CO3 statement with the help of for loop in an example.
(i). Write a python program to count the number of vowels in a string provided by the user. (ii).
131 B CO3 Explain the types of function arguments in python
132 B CO3 Explain the syntax and flow chart of the following loop statements (i) for loop (ii) while loop
(i) Demonstrate the different methods in a string with an example program using at least five
133 B CO3 methods. (ii) How to access characters of a string?
(i). Illustrate the flow chart and syntax of if-elif- else statements (ii). Develop a program to find the
134 B CO3 largest among three numbers
135 B CO3 (i). Explain recursive function. How do recursive function works? Explain with a help of a program
(i) Illustrate the different types of the function prototype with an example (ii). Examine the
136 B CO3 program on Fibonacci series
(i). Develop a python program to find the given year is leap or not (ii). Investigate on mutability
137 B CO3 and immutability in python
(i). Create a python program to find the given year is leap or not (ii). Investigate on mutability and
138 B CO3 immutability in python
(i) Explain the different types of the function prototype with an example (ii). Examine the
139 B CO3 program on Fibonacci series
(i). Generate a program that uses lambda function to multiply two numbers (ii). Discuss the
140 B CO3 methods to manipulate the arrays in python
141 B CO3 Explain the significance of xrange() function in for loop with a help of a program
(i) Describe the built in functions with tuples. (ii) Write a program to use Max(), Min() and sorted()
142 B CO4 methods in tuple
(i)Discuss a)Tuples as return values b)Variable Length Argument Tuples (ii) Write a program to
143 B CO4 illustrate the comparison operators in tuple
144 B CO4 Explain about Dictionaries operations and methods with example.
145 B CO4 Describe merge sort on a given list of elements,Explain with own example.
(i) Illustrate List Comprehension with suitable examples (ii) Write a python program to
146 B CO4 concatenate two lists
147 B CO4
Explain in detail about (i) Creating a dictionary (ii) Accessing values in a dictionary (iii) Updating
148 B CO4 dictionary (iv) Deleting elements from dictionary
149 B CO4 Illustrate the ways of creating the tuple and the tuple assignment with suitable programs
(i)Explain the basic List Operations in details with necessary programs (ii) Write a Python program
150 B CO4 to multiply two Matrices
Interpret a python program named Weather that is passed a dictionary of daily temperatures , and
151 B CO4 returns the average temperature over the Weekend for the weekly temperatures given.
(i)Explain the basic Tuple Operations with examples (ii)Write a program to check whether an
element „y‟ and „a‟ belongs to the tuple My_tuple =(„p‟,‟y‟.‟t‟,‟h‟,‟o‟,‟n‟) and after Printing
152 B CO4 the result, delete the tuple.
(i)Explain the properties of Dictionary keys with examples (ii) Illustrate the python Dictionary
Comprehension with Analysing
153 B CO4 examples
154 B CO5 Discuss with suitable examples i) Close a File. ii) Writing to a File.
155 B CO5 Express a function to print the hash of any given file in python
Explain with an example to copy the contents of one file
156 B CO5 to another
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K1 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K2 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K3 2
K2 13
K2 13
K2 13
K2 13
K3 13
K3 13
K3 13
K3 13
K4 13
K4 13
K4 13
K4 13
K2 13
K2 13
K2 13
K2 13
K3 13
K3 13
K3 13
K3 13
K4 13
K4 13
K4 13
K4 13
K2 13
K2 13
K2 13
K2 13
K3 13
K3 13
K3 13
K3 13
K4 13
K4 13
K4 13
K4 13
K2 13
K2 13
K2 13
K2 13
K3 13
K3 13
K3 13
K3 13
K4 13
K4 13
K4 13
K4 13
K2 13
K2 13
K2 13
K2 13
K3 13
K3 13
K3 13
K3 13
K4 13
K4 13
K4 13
K4 13
K5 15
K6 15
K6 15
K6 15
K5 15
K6 15
K6 15
K5 15
K5 15
K6 15
K5 15
K5 15
K5 15
K6 15
K6 15