CBSE Class XI – Computer Science (083)
Practical Examination – 2024-25
Maximum Marks: 30 Time: 3 Hours
General Instructions:
1. All questions are compulsory.
2. Use Python 3.x for programming.
3. Write neat and well-commented code.
4. Marks distribution as per CBSE guidelines.
Q1. Python Programming (8 Marks)
(a) Write a Python program to input two numbers and display the greater number.
(b) Write a program to input a number and check whether it is prime or not.
Q2. Flow of Control (6 Marks)
(a) Write a program to input marks of 5 subjects and calculate:
- Total marks
- Percentage
- Grade according to the following:
Marks Grade
>=90 A
75–89 B
50–74 C
<50 D
(b) Write a Python program using a loop to display the multiplication table of any number entered by
the user.
Q3. Strings (6 Marks)
(a) Write a program to input a string and count the number of:
- Vowels
- Consonants
- Digits
- White spaces
(b) Write a program that accepts a string and prints:
- The string in reverse order
- The string in uppercase
Q4. Viva Questions (4 Marks)
1. What is the difference between a keyword and an identifier in Python?
2. Explain the difference between if…elif…else and nested if statements.
3. Name any two string functions in Python with examples.
4. What is the role of the # symbol in Python?
Q5. Practical Record & Project Work (6 Marks)
- Record file (Python programs from Ch–1, 2, 3) – 3 Marks
- Project Work (small program using these concepts) – 3 Marks
Total = 30 Marks