0% found this document useful (0 votes)
49 views

Class 9 - IT Practical Questions

The document contains a collection of programming problems related to loops, strings, and lists that involve accepting input from users and performing various checks and calculations. Many problems require writing programs to accept input and use conditionals and loops to output results.

Uploaded by

thememevault009
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Class 9 - IT Practical Questions

The document contains a collection of programming problems related to loops, strings, and lists that involve accepting input from users and performing various checks and calculations. Many problems require writing programs to accept input and use conditionals and loops to output results.

Uploaded by

thememevault009
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Class 9 - IT practical questions

1. WAP to accept percentage from the user and display the grade
according to the following criteria:
Marks grade
>90 A
>80 and <= 90 B
>=60 and <=80 C
Below 60 D
2. WAP to accept a number from 1 to 7 and display the name of the day
like 1 for Sunday, 2 for Monday and so on.
3. WAP to accept an alphabet from the user of rainbow colours and
display the name of the colour.
4. WAP to check whether a number entered is a 3 digit number or not.
5. WAP to check whether a person is a senior citizen or not.
6. WAP to check whether the entered number by the user is even or
odd.
7. WAP in python to accept the age of 4 people and display the
youngest one.
8. WAP to check if an entered character is a vowel or not.
9. Accept the following from user and calculate the percentage of class
attended:
a. Total number of working days
b. Total number of days for absent
After calculating the percentage , show that if the percentage is less
than 75 then the student will not be able to sit in the examination.
10. Accept three sides of a triangle and WAP to check whether it is an
equilateral, isosceles or scalene triangle.
11. WAP in python to accept two numbers and a mathematical
operator and perform the operation accordingly.
12. Accept the electric units from user and calculate the bell according
to the following rates
a. First hundred units : free
b. Next 200 units: rs 2 per day
c. Above 300 units: rs 5 per day
13. Accept the number of days from user and WAP to calculate the
charge for library according to following:
a. Till 5 days: rs 2 per day
b. 6 to 10 days: rs 3 per day
c. 11 to 15 days: rs 4 per day
d. After 15 days: rs 5 per day
14. Company decided to give bonus to employee according to the
following criteria :
Time period of service bonus
a. More than 10 years 10%
b. >= 6 and <= 10 8%
c. Less than 6 years 5%
Ask the user for their salary and years of service and trend the
net bonus amount.
15. Accept the mark price from the user and calculate the net amount
as ( marked price - discount ) to pay according to following criteria
Marked price discount
a. >10000 20%
b. >7000 and <=10000 15%
c. <=7000 10%
16. WAP to find the sum of digits of a number entered by the user.
17. WAP to print the factorial of a number.
18. WAP to display all the numbers which are divisible by 11 between
100 and 500.
19. WAP to display all odd numbers and even numbers that fall
between 10 and 25 including both numbers.
20. WAP to accept 10 numbers from the user and display its average.
21. WAP to print the first 10 even numbers in reverse order.
22. WAP to print a table of a number accepted from the user.
23. Consider the following string:
AN EYE FOR AN EYE WILL MAKE THE WHOLE WORLD BLIND!
Process this is string to display following outputs:
a. !
b. AN EYE FOR AN EYE
c. THE WHOLE WORLD BLIND
d. EYE WILL MAKE
e. EYEEYE
26. WAP to create a loop of 10 times and ask the user to enter a word. If
the word is “quit” then break the loop. After the loop, display “thank you”.
27. Accept the name of a continent from the user and an alphabet. Then ,
find that alphabet in the name of the continent. If found, break the loop and
display “FOUND!” otherwise display “NOT FOUND!” .

Basic loop related questions

1. Write a program to print the numbers from user-defined range using a for
loop.
2. Write a program to check if a number is prime using a for loop.
3. Write a program to check if a number is palindrome or not.
4. Write a program to check if a number is Armstrong number using a for loop.
5. Write a program to check if a number is a perfect number using a for loop.
6. Write a program to find the GCD of two numbers using a for loop.

String with loop

7. Write a program to print A-Z


8. Write a program to print the ASCII values of all uppercase letters using a for
loop.
9. Write a program to check if a string is a palindrome using a for loop.
10. Write a program to convert a string to uppercase, using loop.
11. Write a program to find the index of a character in a string, using loop
12. Write a program to count the number of occurrences of a character in a
string.
13. Write a program to reverse a string using a while loop.

List with loop

14. Write a program to find the largest element in a list using a for loop.
15. Write a program to count the number of occurrences of an element in a
list using a for loop.
16. Write a program to find the common elements in two lists using a for
loop.
17. Write a program to find the sum of the even numbers in a list using a for
loop.

You might also like