0% found this document useful (0 votes)
12 views

Python QB

Uploaded by

rajeshwaris
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Python QB

Uploaded by

rajeshwaris
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

B.E/B.

Tech Degree Examinations –NOV/DEC 2024


Department of AI&DS and CSE
I Year / I Semester
23GE102 – Problem Solving and Python Programming
QUESTION BANK (UNIT I – III)
Common to B.Tech AI&DS &B.E. Civil & Mech
(NPRCET Regulation 2023)
COs & K-Level:
On completion of the course, the students will be able to
CO1: To understand the basics of algorithmic problem solving.
CO2: To learn to solve problems using Python conditionals and loops.
CO3: To define Python functions calls to solve problems
CO4:To use Python data structures – lists, tuples, dictionaries to represent complex data.
CO5: To do input/output with files in Python.
Mar K-
PART A ks Level CO

1. Define Algorithm. 2 K1 CO1


2. List the properties of algorithm. 2 K1 CO1
3. Outline the building block of algorithm. 2 K2 CO1
4. Describe selection, iteration and sequence control structures. 2 K1 CO1

5. Identify Flowchart. 2 K1 CO1


6. Name the type of arguments in python. 2 K1 CO1
7. Visualize the flowchart symbols and its uses. 2 K2 CO1
8. State some rules for drawing a flowchart. 2 K1 CO1
9. Tell any two disadvantages of flowchart. 2 K2 CO1
10. State the Characteristics of Pseudo code. 2 K1 CO1
11. Recall python. 2 K3 CO2
12. Memorize the python interpreter. 2 K1 CO2
13. Compare the intermediate mode with script mode 2 K2 CO2
14. Describe the value in python. 2 K1 CO2
15. List the standard data types in python. 2 K1 CO2
16. Identify operators and Bitwise operators. 2 K2 CO2
17. Discuss the type of function and use. 2 K1 CO2
18. Illustrate types of arguments in python. 2 K1 CO2
19. State the use of dir() function. 2 K2 CO2
20. Express the characteristics of membership operator. 2 K2 CO2
21. Describe the Boolean value. 2 K1 CO3
22. Summarize the python break statement. 2 K2 CO3
23. Report the python continue statement. 2 K2 CO3
24. State the purpose of pass statement. 2 K1 CO3
Define the len function and explain how it is used on strings with an
25. 2 K1 CO3
example.
26. Determine string slicing with examples. 2 K3 CO3
27. Recall the two operators that are used in string functions. 2 K1 CO3
28. Apply split strings and what function is used to perform that operation. 2 K3 CO3
29. Compute string comparison with an sample string. 2 K3 CO3
30. Give example for str.upper() and str.lower() functions in string. 2 K2 CO3
PART B / PART C
1 Explain in detail about algorithm and the building blocks of
16 K2 CO1
algorithm.
2 Discuss about the flowchart and the Basic design structures in
16 K2 CO1
Flowchart.
3 Express in detail about pseudo code with guidelines and benefits 16 K2 CO1
and Explain the design structures of pseudo code.
4 Label the steps involved in program development cycle. 16 K3 CO1
Represent the algorithm, pseudocode and draw the flowchart for
the following:
5 16 K2 CO1
a. Find minimum in a list.
b. Insert a card in a list of sorted cards.
6 Show the algorithm, pseudocode and draw the flowchart for the 16 K2 CO1
following:
a. Guess an integer number in a range.
b. Towers of Hanoi.
Prepare the algorithm, pseudo code and draw the flowchart for the
following:
7 a. To find the sum of square root of any three numbers. 16 K3 CO1
b. To find the sum of first 100 integers.
c. To find the sum of all odd numbers till 100.

Write the algorithm, pseudo code and draw the flowchart for the
following:
8 a. To find the sum of any five integers.
16 K3 CO1
b. To find the factorial of number n.
c. To find the first n numbers in a Fibonacci series.

Identify the algorithm, pseudo code and draw the flowchart for the
following:
9 a. To find whether a number is prime or not. 16 K3 CO1
b. To convert temperature from Fahrenheit to Celsius

Review the algorithm, pseudo code and draw the flowchart for the
following:
10 a. To solve the quadratic equation. 16 K3 CO1
b. To find factorial of a number.

11 Illustrate the data types in python with appropriate example. 16 K2 CO2


12 Illustrate the function and module with suitable example 16 K2 CO2
Indicate the types of operators in python with appropriate
13 example. 16 K2 CO2

Explain briefly about constant, variables, expression, keywords


14 and statements available in python 16 K3 CO2

a. Construct a python program to swap two numbers with and


15 without temporary variables.
16 K3 CO2
b. Express how Python works in interactive mode and script
mode with examples.
16 Construct a python program to perform Binary search and apply 16 K3 CO2
the concept to search 68 from the given list of elements:
34,12,23,10,8,10,19,14,68,5.

17 Explain the concept of recursion with factorial 16 K3 CO3


Construct a python program to print retail bill for stationary
18 consider tax as 5%. 16 K2 CO3

19 Determine conditional branching statements in Python with an


16 K3 CO3
example.
20 Explain in detail about call by value and call by reference in
16 K3 CO3
Python with example.
21 Examine in detail about String function with any three Python
16 K3 CO3
string methods with an example.
22 Construct a Python program for linear search and binary search. 16 K3 CO3
Compute a Python program to check whether entered string is
23 palindrome or not. 16 K3 CO3

24 Compare the difference between while, break and continue in


16 K3 CO3
Python with suitable examples.
Predict the output of the following code snippet.

words = ‗Hello

25 i. World‘ print words.title() print words.replace(―World‖,‘Osw al‘) 8 K3 CO3


print words.upper()

print words*2

Predict the value of each of the following Python expressions for


num=125.

(i) num/125
ii. 8 K3 CO3
(ii) (ii)num%100
(iii) (iii)(num==2 1)&(2<3)
(iv) (iv)not((num<45.9)&(6*2<=13))

Faculty In-Charge HoD

You might also like