11.2 Python - QuetionBank
11.2 Python - QuetionBank
3/4 Marks
1. Design a Flow Chart to print sum of 10 numbers. WINTER - 2021
2. Write Importance and Limitations of Flow chart. WINTER – 2021
3. What is Flow chart? List out symbols used in Flow chart WINTER – 2023, SUMMER-2023
4. Draw flowchart to find the square and cube of a given number. WINTER-2022
5. Draw and give name of any four symbols of Flow Chart. WINTER – 2021
6. Design a flowchart to check entered number is positive or negative SUMMER-2022
7. Write the characteristics of Algorithm. WINTER – 2021, SUMMER-2023
8. Give Difference between Flow chart and Algorithm. WINTER - 2021
9. Define an algorithm. Write down its advantages and disadvantages. WINTER-2022
10. Construct an algorithm to find area of circle.WINTER-2022
11. Construct an Algorithm to check entered number is even or odd. WINTER - 2021
12. Write an algorithm to find the circumference of a circle.WINTER-2022
13. Explain Pseudocodes with example. WINTER – 2021
14. Define pseudocode. Write pseudocode to add two numbers.SUMMER-2022
15. Explain the steps involved in problem-solving. SUMMER-2023, SUMMER-2024
“To create technically competent and skilled IT professionals with human values and ethics.”
Chap-2 Python Introduction (CO2)
7 Marks
1. Develop python code which calculate the value of c using equation c=a/b. Apply explicit type
conversion, Take a=50 and b=2.7 SUMMER-2022
2. List out arithmetic operations. Build python code which performs three arithmetic operations.
SUMMER-2022, SUMMER-2024
3. Explain relational and assignment operators with example. SUMMER-2023
4. Explain Basic Structure of Python Program. WINTER – 2021, WINTER-2023
5. List out various data types in python. Explain any three data types with example. WINTER-2022, ,
WINTER-2023
6. List out various categories of operators in python and explain any three types of operators.
WINTER-2022, SUMMER-2023
7. Use proper data type to represent the following data values. SUMMER-2023
a. (1) Number of days in a week (2) Resident of Gujarat or not
b. (3) Mobile number (4) Bank account balance
c. (5) Volume of a sphere (6) Perimeter of a square
d. 7) Name of the student
8. Write a program to find the sum and average of all the positive numbers entered by the user. As
soon as the user enters a negative number, stop taking in any further input from the user and
display the sum and average SUMMER-2023
3/4 Marks
1. List out features and application of python. WINTER – 2021, SUMMER-2022, WINTER-2022,
SUMMER-2023, WINTER-2023, SUMMER-2023
2. Write a program to show whether the entered number is prime or not. WINTER - 2021
3. Explain Type Conversion in Python. WINTER – 2021, WINTER-2022, SUMMER-2023
4. Check following variable names and indicate whether it is valid or invalid. SUMMER-2022
i) _my_var = "IT"
ii) 16myvar="AHMedabad"
iii) iii) MYVAR = "computer2"
5. Summarize the assignment operators of python. SUMMER-2022
6. Summarize the comparison operators of python. SUMMER-2022, SUMMER-2024
7. Write a program to read three numbers from the user and find an average of the numbers.
i) WINTER-2022
8. Define variable and mention rules for choosing name of variable.WINTER-2022, SUMMER-2024
9. Explain Logical Operators with example WINTER – 2023
10. Find the output of following code.num1 = 2+9*((3*12)-8)/10 print(num1) SUMMER-2023
“To create technically competent and skilled IT professionals with human values and ethics.”
Chap-3 Flow of Control (CO3)
7 Marks
1. Write a program to display Fibonacci series up to nth term where n is provided by the user.
WINTER-2023, SUMMER-2022
2. Explain the following mathematical functions by writing a code for each : abs(),max(),
pow(),sum() WINTER-2023
3. Create a program to read three numbers from the user and find the average of the numbers.
SUMMER-2024
3/4 Marks
1. Define selection statement. Explain any one in detail. WINTER – 2021, SUMMER-2022
2. Explain while loop by giving flowchart and example. WINTER–2021,WINTER-2022,
SUMMER-2023
3. Explain nested if statements by giving syntax, flowchart and example. WINTER – 2021,
WINTER-2022, WINTER – 2023, . SUMMER-2023
4. Explain for loop by giving flowchart and example. WINTER – 2021, WINTER-2022
5. Explain if…else statement with suitable example SUMMER-2022
6. Write short note on while loop. SUMMER-2022, SUMMER-2023, SUMMER-2024
7. Write a short note on for loop WINTER – 2023
8. What is flow control in Python? Explain with example WINTER – 2023
9. Develop a program to create nested LOOP and display numbers. WINTER – 2023
10. Explain break and continue statement with suitable example. SUMMER-2022,WINTER-2022,
WINTER-2023, SUMMER-2024
11. Differentiate between a for loop and a while loop in python SUMMER-2023
12. Write a program to find the sum of digits of an integer number, input by the user. SUMMER-2023
13. Find the output of following statements.(i) print(math.ceil(-9.7)) (ii) print(math.floor(-9.7)) (iii)
print(math.fabs(-12.3)) SUMMER-2023
14. Explain math module with various functions SUMMER-2024
15. Define control structures, List out control structures available in python. SUMMER-2024
16. Explain nested loop using suitable example. SUMMER-2024
17. Write a Program to print following pattern. SUMMER-2023
54321
4321
321
21
1
18. Create a program to display the following patterns using loop concept SUMMER-2022
+
++
+++
“To create technically competent and skilled IT professionals with human values and ethics.”
++++
+++++
19. Create a program to display the following patterns WINTER – 2021, WINTER-2023
1
12
123
1234
12345
20. Write a given program to print the following patterns. WINTER-2022, SUMMER-2024
*
**
***
****
1
22
333
4444
55555
21. Write a Program to find whether a number i Palindrome or not. WINTER-2023
22. Write a Program to reverse a string. WINTER-2023
“To create technically competent and skilled IT professionals with human values and ethics.”
8. Differentiate between following with the help of an example:a) Argument and Parameter b)
Global and Local variable SUMMER-2023, SUMMER-2022
3/4 Marks
1. Write a program using the function to find maximum from two numbers. WINTER - 2021
2. Write a user-defined function to find the factorial of a given number. WINTER – 2021, WINTER –
2023
3. Define function. Why do we need it? SUMMER-2022
1. Write advantages of function. SUMMER-2023
4. What is a function? Write down characteristics of function.WINTER-2022
5. Compare the differences between library function and user defined function.WINTER-2022
6. Write a program to swap two variables using user defined function.WINTER-2022
7. Write a user defined function to reverse an entered number.WINTER-2022
8. Explain Input and Output statements in Python by giving examples. WINTER – 2021
9. Explain local and global variables using examples. WINTER – 2021
10. Explain how to define and call user defined function by giving example SUMMER-2024
“To create technically competent and skilled IT professionals with human values and ethics.”
print(s1 + s2)
(6) lst = [1, 2, 3, 4, 5]
print(sum(lst))
(7) s = "python"
print(s[::-1])
3/4 Marks
1. List out various String operations and Explain any one with example. WINTER –
2021,WINTER-2022, SUMMER-2023, SUMMER-2022, WINTER – 2023
2. List out various List operations and Explain any one with example. WINTER – 2021, WINTER-2022,
SUMMER-2024
3. Explain nested list by giving example. WINTER - 2021
4. Explain how to create and access a List with example WINTER – 2021,WINTER – 2023
5. Write a program to find the length of a string. WINTER - 2021
6. List built in methods of list and give their use. WINTER – 2021, WINTER – 2023
7. Build a python code to check whether given element is member of list or not. SUMMER-2022
8. Develop a code to create nested list and display elements. SUMMER-2022
9. List out string operations. Explain any two operations with example. SUMMER-2022, WINTER –
2023
10. Differentiate remove( ) and pop( ) methods of list with suitable example. SUMMER-2022
11. Explain usage of given string methods SUMMER-2022
12. islower( ) ii) replace( ) iii) isdigit( )
13. Explain indexing and slicing operations in python list.WINTER-2022, SUMMER-2024
14. Write a user defined function to check whether a sub string is present in a given string.
WINTER-2023
15. Write a program to create and copy one List into another List. WINTER-2023
16. Explain how to create and traverse a string by giving an example. WINTER-2023, SUMMER-2023,
SUMMER-2024
“To create technically competent and skilled IT professionals with human values and ethics.”