Professional Documents
Culture Documents
Previous Year QP
Previous Year QP
Previous Year QP
School SCOPE
Page 1 of 4
percentage of attendance with 10 to get the
bonus mark for the student.
Page 2 of 4
otherwise people has to face the penalty for
violating the traffic rules. Let’s say ravi uses
car having car number as DL01-BV3456 then
3456 would be the car number, since its even
he is allowed to use car on road on even days
(i.e., 2,4,6…etc.). Help the Delhi government
by writing a python program to show eligible
vehicle on street based on its number plate.
Your program should ask the user to enter last
4 digits of vehicle number and should display
all the dates of the month in which he/she can
use the vehicle in Delhi. (Assume that month
contains 30days only).
Q 10 Students in the university get their grades 2
based on the percentage of marks scored by the
student in the registered course. Write a python
program to display the grade secured by the
student based on his/her marks scored. The
grading table used by the university based on
the total marks scored is as follow:
Marks (M) Grade
M>=90% S
80%<M<90% A
70%<M<=80% B
60%<M<=70% C
50%<M<=60% D
40%<M<=50% E
M<=40% F (Fail)
Q 11 A palindrome number is a number that remains 3
same when its digits get reversed. Write a
python program to check given number is
palindrome or not.
Q 12 On successful completion of admission 3
process, applicant received following message:
“Your admission is confirmed on 23/08/2021
in the CSE-AI program. Your classes will be
starting from 31/08/2021”.
The college admission officer wants to extract
the admission date and class start date from the
above type of messages. Write a python
program to extract the admission date and class
start date from the similar type of messages
received by applicant. [Hint: use RE module
to write program]
Q 13 The college generates and stores the 4
registration numbers of students in a list. The
generated register number has a property that
they are fixed for a student and should not be
changed at any time. Write a program to store
the registration number in a list until user
enters “-1”. Note that you should only add the
registration number in a list if it is not there. If
registration number already exist in a list, then
display the appropriate message. [Note: The
Page 3 of 4
data type in which you are storing list of
registration no. should have read-only
property]
Q 14 Rahul hold the names of the all the cities he 4
has been to in the last 5 years. Rahul wants a
program which will record all the names of
cities and then display them in the alphabetical
order. Write a python program to read all cities
name till Rahul enters “-1” and display them in
the alphabetical order.
Q 15 Write a python program to print Sandglass 3
pattern of star for given number n.
The sample example: For n=5, sandglass
pattern should look like :
*****
****
***
**
*
*
**
***
****
*****
Page 4 of 4