0% found this document useful (0 votes)
16 views1 page

Python Programming - Practice Question Paper

The document is a practice question paper for Python programming covering various topics such as fundamentals, string manipulation, control statements, looping, and recursion. It includes specific programming tasks and questions that require the application of Python concepts like data types, operators, and functions. Additionally, it prompts for explanations of key programming concepts and their differences.

Uploaded by

mukti
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)
16 views1 page

Python Programming - Practice Question Paper

The document is a practice question paper for Python programming covering various topics such as fundamentals, string manipulation, control statements, looping, and recursion. It includes specific programming tasks and questions that require the application of Python concepts like data types, operators, and functions. Additionally, it prompts for explanations of key programming concepts and their differences.

Uploaded by

mukti
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/ 1

PYTHON PROGRAMMING – PRACTICE QUESTION PAPER

I. Python Fundamentals & Data Types 2. Write a Python program to print the following number pattern:
1. Differentiate between list and tuple with examples. 1
2. What are the different types of operators in Python? Explain 12
arithmetic and logical operators with examples. 123
3. What are the different types of operators in Python? Explain 1234
comparison and logical operators with examples. 12345
II. String Manipulation & Slicing 3. Virat’s sister was about to get married, and he needed n rupees as a
1. Given s = "COMPUTERSCIENCE", write slicing expressions to print: loan.
o "COMPUTER"
He applied for a loan in the bank for n amount for t years at 8% p.a.
o "SCIENCE"
compound interest.
o Last 5 characters Write a Python program to calculate the Total Amount to be paid
o Every alternate character after t years including the Principal and Compounded interest
o Reverse of the string without using the compound interest formula, but using loop
2. Given s = "INFORMATIONTECH", write slicing expressions to print: concepts.
o First 5 characters
o Last 4 characters V. Functions & Recursion
o "FORMA" 1. Write a program to calculate factorial of a number taken as input
o Every second character starting from index 0 using both:
o The substring "TECH" o Recursive approach
III. Control Statements & Conditional Logic o Non-recursive approach
1. Write a Python program to accept marks from the user and determine 2. Write a program to generate the Fibonacci series:
whether the user has passed or failed. (Passing marks: 40) 0, 1, 1, 2, 3, 5, 8, … n
2. Write a Python program that takes marks of four subjects as input using both:
from the user, calculates the average, and assigns a grade based on o Recursive approach
this table: o Non-recursive approach
Average Marks Grade
90 – 100 A VI. Mathematical & Computational Problems
75 – 89 B 1. Write a Python program to accept the side of a square, calculate its
60 – 74 C perimeter and area.
40 – 59 D
Below 40 E VII. Conceptual / Analytical Questions
1. Explain the difference between list, tuple, and set in Python with
IV. Looping & Iteration Programs examples. (Optional expansion for conceptual round)
1. Write a Python program to print the following pattern: 2. Explain the role of recursion in Python and when it should be avoided
* in favor of iteration. (Analytical discussion)
**
***
****
*****

You might also like