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

Cs Cat

Uploaded by

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

Cs Cat

Uploaded by

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

CONTINUOUS ASSESSMENT TEST – 1

Regulations R 2023 – V1.1

Department of IT/CSE/AI&DS/AIML/CSE-CS/CSD/CSBS
First Year / First Semester
231GES104T – Problem Solving Through Python Programming
CO1: Solve problems using algorithms, flowchart and pseudocode
CO2: Use Python conditional and iteration statements for problem solving.
CO3: Apply strings and user defined functions in Python programming.
CO4: Choose appropriate Python data structures for real time applications.
CO5: Develop Python code to manipulate data using file and exception-handling.

Unit – I ALGORITHMIC PROBLEM SOLVING

CO’s Bloom’s
Q.No Questions
Level
PART A
1. List the basic computer operations? CO1 K1
2. Discuss about algorithm with its characteristics. CO1 K2
Write an algorithm to check whether a number is positive or CO1
3. K2
negative.
Use the pseudocode to calculate the total marks and average marks of CO1
4. K2
a student.
5. Develop an algorithm to find minimum of given three numbers CO1 K2
6. List the building blocks of an algorithm. CO1 K1
7. Define statement and list its types. CO1 K1
Write the pseudo code to calculate the sum and product of two CO1
8. K2
numbers and display it.
9. Draw the flowchart to print the area of a circle for the given radius. CO1 K2
10. How does flow of control work? CO1 K2
11. What is a function and write its two types. CO1 K1
12. Give the rules for writing the pseudo codes. CO1 K1
13. Differentiate between flowchart and pseudo code. CO1 K2
14. Define a flowchart and write rules for preparing a flowchart. CO1 K1
15. List the categories of Programming languages. CO1 K1
Compare machine language, assembly language and high-level
16. CO1 K2
language.
17. Differentiate between algorithm and pseudo code CO1 K2
18. List out the simple steps to develop an algorithm. CO1 K1
19. Discuss the advantages and disadvantages of recursion. CO1 K2
20. Differentiate between recursion and iteration. CO1 K2
21. Draw the flowchart to find the largest of two numbers CO1 K2
22. Distinguish between algorithm and program. CO1 K2
23. Differentiate Compiler and Interpreter CO1 K2

CO’s Bloom’s
Q.No Questions
Level
Part – B
1. Analyze the building blocks of an algorithm with examples. CO1 K4
Illustrate the logic to find the sum of the series 1+2+3+4+….+100
2. CO1 K4
using flowchart and algorithm.
Illustrate iteration and recursion with an example: Find the factorial
3. CO1 K4
of a given number
Demonstrate about algorithmic problem solving techniques with
4. CO1 K3
example.
5. Describe an algorithm and draw a flowchart to calculate 24. CO1 K4
Outline the fundamental organization of computers, considering its
6. CO1 K4
components, architecture, and functionality.
Discuss about the symbols for drawing flowchart and draw a
7. CO1 K4
flowchart to count and print from 1 to 10.
Illustrate the logic to find the sum of the digits of the number using
8. CO1 K4
pseudo code and flowchart.
Discuss about an algorithm and the pseudo code to guess an integer
9. CO1 K4
number in the given range and print the number of guesses made.
Describe the pseudocode and draw the flowchart to check whether
10. CO1 K4
the given number is Armstrong number or not.

CO’s Bloom’s
Q.No Questions
Level
Part c
Design the pseudo code and draw the flowchart to print n Fibonacci
1. numbers using recursive functions. Validate the same with the CO1 K6
examples.
Develop an algorithm and draw the flowchart to find nCr value for
2. CO1 K6
the given n and r values using user defined function.
Develop the algorithm and flowchart to calculate electricity bill as
per the rate given below for the given number of units consumed.
Validate using sample number of units consumed.
Units Consumed Rate
3. CO1 K6
1-100 NIL
101-200 Rs.2
201-500 Rs.3
>500 Rs.4

Unit – II CONTROL FLOW STATEMENTS

Q.N CO’s Bloom’s


Questions
o Level
Part a
Write the code snippet using Python to display welcome message
1. CO2 K2
“Hello Your name” after reading the name.
2. Define a variable and write down the rules for naming a variable. CO2 K1
3. Illustrate about operand and an operator with relevant examples. CO2 K2
What is the order in which operations are evaluated? Give the order of
4. CO2 K1
precedence.
5. List the different types of operators in Python? CO2 K1
Develop a Python code to check if the number is positive, negative, or
6. CO2 K2
zero
7. Explain while loop with example. CO2 K2
8. Explain for loop with example. CO2 K2
9. Differentiate between break and continue. CO2 K2
Find out the output of the program:
for i in "programming":
10. if( i == "a" ): CO2 K2
continue
print(i, end=" ")
11. Differentiate between while and for loop with example. CO2 K2
Find out the output of the program:
for val in “Python”:
if val == “h”:
12. CO2 K2
break
print(val)
print(“Thank You”)
13. Define keyword and list some of the keywords in Python. CO2 K1
Develop a Python program to accept two numbers and print the
14. CO2 K2
greatest.
15. Develop a Python program to find the area of triangle CO2 K2
16. Develop a Python code to print the numbers from 10 to 1. CO2 K2
Develop a Python program to check the given number is odd or even CO2 K2
17.
number.
18. Differentiate between interactive mode and script mode. CO2 K2
19. Develop a Python program to check the given year is leap year or not. CO2 K2
20. Develop a Python program to find factorial of a given number. CO2 K2

CO’s Bloom’s
Questions
Level
Part b
Analyze the different types of conditional structures allowed in Python.
1. CO2 K4
Explain each with examples.
Illustrate the types of operators and their precedence in Python in
2. CO2 K4
detail.
Analyze the different types of iterative structures allowed in Python with
3. CO2 K4
example programs.
Design a Python program to print the first n natural numbers that are
4. CO2 K4
divisible by 5 using a while loop.
An Indian citizen has to vote for the assembly election. Illustrate a
5. Python program to determine whether that person is eligible to vote or CO2 K4
not. If he is not eligible, display how many years are left to be eligible.
Develop a Python code to calculate the sum of the digits after prompting
6. the user to get a number and also evaluate whether it qualifies as an CO2 K4
Armstrong number.
From the equation ax² + bx + c = 0, Assume the values of a, b and c are
7. given as the input from the user. Then generate the Python code to CO2 K4
calculate the roots of a quadratic equation.
8. Judge a given number is palindrome number or not by developing a CO2 K5
Python code.
Develop a Python code to print the Fibanocci series upto “N” terms and
9. CO2 K5
evaluate the same for correctness.
Illustrate and evaluate a Python code to print the maximum of the given
10. CO2 K5
n numbers
Develop a Python code to print the salary slip of an employee as per the
11. CO2 K4
given details.
12. Analyze the Python data types with examples for each. CO2 K4
Illustrate the conditional alternative and chained conditional in Python
13. CO2 K4
using examples.
Develop a Python code to check whether a number is Prime or not and
14. CO2 K4
trace the algorithm with sample input for correctness.

Q.N CO’s Bloom’s


Questions
o Level
Part- C
1. Design a simple calculator using Python. CO2 K6
Develop a Python Program to Convert Temperatures to and from Celsius
2. CO2 K6
and Fahrenheit.
Develop a Python program to print the given simple pyramid pattern and
evaluate it for correctness.

3. CO2 K6

Unit – III FUNCTIONS AND STRINGS

Q.N CO’s Bloom’s


Questions
o Level
Part a
1. Give the syntax of function definition in Python. CO3 K2
2. How to create a function with arguments in Python. CO3 K2
3. How to create a function with default arguments in Python CO3 K2
Identify and explain the function in the given example and print the CO3 K2
output.
4.
>>> betty = type("32")
>>> print betty
5. Define local variable. CO2 K1
Find the output of the following. CO3 K2
6. a. float(32)
b. float("3.14159")
7. What do you mean by flow of execution? CO3 K2
Develop a Python function to calculate and return area and perimeter CO3 K2
8.
of a circle.
9. What is meant by fruitful function in Python? CO3 K2
10. Explain the concept of floor division. CO3 K2
11. What is type coercion? Give example. CO3 K1
12. What is meant by traceback? CO3 K1
13. Compare return value and composition. CO3 K2
14. What is recursion? Give example. CO3 K2
15. Explain global and local scope. CO3 K2
Develop a function that takes input *args as number of arguments and CO3 K2
16.
find sum of n numbers in Python
17. Apply fruitful function to find the area of the rectangle. CO3 K2
18. Define composition function in Python. CO3 K1
19. Discuss the advantages of composition function. CO3 K2
20. What is the purpose of pass statement? CO3 K1
21.22. Develop a Python code snippet to swap two variables. CO3 K2

Q.N CO’s Bloom’s


Questions
o Level
Part – B
1. Analyze the role of function call and function definition with example. CO3 K4
2. Illustrate Fruitful Functions in Python with suitable examples. CO3 K4
Outline the uses of math functions in Python? Explain any five math CO3 K4
3.
functions
Develop and evaluate a Python program to find the square root of a CO3 K5
4.
number.
Illustrate a Python program to check whether a given year is a leap CO3 K4
5.
year or not.
1. Illustrate a Python program to calculate the LCM of two numbers CO3 K4
6.
using functions
Develop a Python program to find the sum of the following series CO3 K5
7. using functions and justify your code.
1! + 2! + 3! + ………….N!
Illustrate recursion with the example of printing n Fibonacci numbers CO3 K4
8.
using Python
Develop three functions to convert hours to days, minutes to hours and CO3 K4
9. seconds to minutes to seconds. Use compose function to convert the
given minutes to no. of days.
Analyze the various function arguments in Python with suitable CO3 K4
10.
examples.

Q.N CO’s Bloom’s


Questions
o Level
Part c
Given a number N and power P, develop a Python program to find the CO3 K6
1. power of a number (i.e. NP) using recursion. Trace and justify your
answer.
Develop the Python program to find nth prime number using functions. CO3 K6
2.
Trace and justify your answer.

You might also like