0% found this document useful (0 votes)
10 views6 pages

11.2 Python - QuetionBank

Python
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)
10 views6 pages

11.2 Python - QuetionBank

Python
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/ 6

TAPI DIPLOMA ENGINEERING COLLEGE [647], SURAT

INFORMATION TECHNOLOGY DEPARTMENT [16]


Question Bank

Term: 22/07/2024 to 07/12/2024


SUBJECT CODE: 4311601 DIVISION: 2411,2412 – IT
SUBJECT NAME: Python Programming SEMESTER: 1st
FACULTY NAME: Mrs. H. S. Jayani, Mrs. Aesha K. Virani

Chap-1 Problem Solving using Flowchart and Algorithm (CO1)


7 Marks
1. Design a flowchart for the calculate the average from 1 to 25 numbers. SUMMER-2022
2. Draw a flow chart to print ODD numbers from 1 to 100 WINTER-2023
3. Draw a flowchart and write algorithm to calculate the factorial of a given number. SUMMER-2023
4. Design a flowchart to find maximum number out of three given numbers. SUMMER-2024
5. Construct an algorithm which checks entered number is positive and greater than 5 or not.
SUMMER-2024

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

Chap-4 Functions (CO4)


7 Marks
1. Create a user defined function which will return the count of numbers divisible by 5 in range 1 to
20. SUMMER-2022
2. Create a user defined function which prints square of all the even numbers between 1 to 5.
SUMMER-2022
3. What is a random module and math module? Make use of various functions of both the modules
in python program.WINTER-2022, SUMMER-2024
4. Create a code to explain local and global scope of variables. SUMMER-2022
5. What is a scope of variable? Apply global and local variable concepts in python program.
WINTER-2023, SUMMER-2024
6. Write a program to Explain types of Arguments and Parameters. WINTER-2023
7. Write a program to print Armstrong numbers between 100 to 10000 using a user-defined function
SUMMER-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

Chap-5 Strings and Lists (CO5)


7 Marks
1. Build python code which calculates the number of elements in the list without using built-in
function. SUMMER-2022
11. Develop python code to create list of prime and non-prime numbers in range 1 to 30.
SUMMER-2022, SUMMER-2024
2. List out built-in methods of string and make use of any three with suitable
example.WINTER-2022,WINTER-2023
3. List out built-in methods of list and make use of any three with suitable example.WINTER-2022
4. Write a program to traverse the string using for and while loop. WINTER-2022
5. Write programs to perform the following list operations. WINTER-2022
1) To swap given two elements in a list.
2) To find the sum of elements in a list.
6. Write a program to create a list of ODD and EVEN numbers in range of 1 to 50. WINTER-2023
7. Write a program to find the smallest and largest number in a given list without using in built
functions. SUMMER-2023
8. Write output of following scripts. SUMMER-2023
(1) s = "Hello, World!"
print(s[0:5])
(2) lst = [1, 2, 3, 4, 5]
print(lst[2:4])
(3) s = "python"
print(len(s))
(4) lst = [5, 2, 3, 1, 8]
lst.sort()
(5) s1 = "hello"
s2 = "world"

“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

Mrs. H. S. Jayani, Mrs. A. K. Virani Mrs. B. B. Acharya


(FACULTY) (I/C H. O. D.)

“To create technically competent and skilled IT professionals with human values and ethics.”

You might also like