[go: up one dir, main page]

0% found this document useful (0 votes)
56 views16 pages

Cse - R21 - Ge3151 - Problem Solving and Python Programming

python

Uploaded by

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

Cse - R21 - Ge3151 - Problem Solving and Python Programming

python

Uploaded by

dhivya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 16

SUBJECT CODE: GE3151 SUBJECT NAME: PROBLEM SOLVING AND PYTHON PROGRAMMING

Sl.No Part CO QUESTION

1 A CO1 What is an algorithm?

2 A CO1 What are the characteristics of Algorithm?

3 A CO1 List out an algorithm to find minimum of three numbers

4 A CO1 Define statement. List its types.

5 A CO1 How does flow of control work?

6 A CO1 What is a function?

7 A CO1 List out the rules for writing Pseudocode

8 A CO1 Summaraize a flowchart.

9 A CO1 Difference between flowchart and pseudo code.

10 A CO1 Express the rules for writing Pseudo codes

11 A CO1 Difference between algorithm and pseudo code?

12 A CO1 Express the categories of Programming languages.

13 A CO1 Classify the rules for preparing a flowchart

14 A CO1 Express an example for iteration.


15 A CO1 Compute the limitations of Flowchart.

16 A CO1 Examine machine language, assembly language and high-level language

17 A CO1 Illustrate the uses of Pseudocode?


18 A CO1 Sketch the flowchart for addition of two numbers

19 A CO1 Discover the python program to get input from the user and print.

20 A CO1 Exhibit about Data?

21 A CO1 Discover the python program to find simple interest.

22 A CO2 Define the two modes in Python.

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.

25 A CO2 Define recursive function.

26 A CO2 Define the syntax for passing 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

Outline the following:


(i). Predefined Modules
157 B CO5 (ii). User defined Modules
158 B CO5 (i) Explain with example of closing a file (ii) Discover syntax for reading from a file
159 B CO5 Describe how exceptions are handled in python with necessary examples
160 B CO5 Develop a program to display a pyramid
161 B CO5 Explain about the Files Related Methods.
(i) Discover a program to catch a divide by zero
exception. Add a finally block too.
(ii) Write a function to print the hash of any given file in
162 B CO5 Python.
Write a Python program to demonstrate the file I/O
163 B CO5 operations.
164 B CO5 Illustrate a program to find the one’s complement of binary number using file.
165 B CO5 Describe in detail printing to the screen.
i)Summarize advantage and disadvantage of flow chart
166 C CO1 ii)Summarize the symbol used in flow chart
167 C CO1 Explain guidelines for preparing flowcharts, benefits and limitation of flowcharts and preparing flow
168 C CO1 Neat sketch explain the following building blocks of alg. i). Statements ii). Control Flow
i)Formulate with an example program to pass the list arguments to a function (ii)Write a program
169 C CO2 to perform selection sort from a list of numbers using python
Do the Case study and perform the following operation in tuples i) Maxima ii)minima iii)sum of
two tuples iv) duplicate a tuple v)slicing operator vi) obtaining a list from a tuple vii) Compare two
170 C CO2 tuples viii)printing two tuples of different data types
i)Formulate with an example program to find out all the values in the list that are greater than the
171 C CO2 specified number. ii)Write a program to find out the square root of two numbers
172 C CO3 Create a program for linear search using Arrays
Write a python program to design simple calculator performing arithmetic functions like addition,
173 C CO3 subtraction, multiplication and division with the input given by user
(i) Illustrate a program to find GCD of m and n. (ii) How to find the square root of a number using
174 C CO3 newton’s method
175 C CO4 Create a python program to perform selection sort on the elements Read from the user.
Write functions called nested_sum that takes a list of integers and adds up the elements from all of
the nested listes and cumsum that takes a list of numbers and returns the cumulative sum; that is a
176 C CO4 new list where the ith element is the sum of the first i+1 elements from the original list.
177 C CO4 Write a program that uses insertion sort technique to sort an array of 10 element
Measure to read random numbers upto 75 and display even and odd numbers with two different
178 C CO5 files.
179 C CO5 Generalize a case study on the getting the students mark statements and analysis with exception ha
180 C CO5 Write a program to find n number from list using file handling
REGULATION :2021 DEPT: CSE

KNOWLEDGE LEVEL MARK ALLOCATION

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

You might also like