Class 7 Computer Science Python Application Questions | Variables, If-Else, Loops & Operators (Set 1 & 2)

SET 1 – APPLICATION-BASED QUESTIONS

Subject: Computer Science
Topics: Variables, If-Else, Loops, Operators


Q1. A shopkeeper gives a 10% discount if the total bill amount is more than ₹1000.
Write a Python program that accepts the bill amount and prints the final price after discount (if applicable).


Q2. A school only allows students of age 12 or above to participate in a science quiz.
Write a program to accept the student’s age and check whether they are eligible.


Q3. Write a Python program that prints all numbers from 1 to 20, but only those numbers which are divisible by 3.


Q4. A password is considered strong if:

  • It has at least 8 characters, and
  • It contains the word "@".
    Write a program to check whether a password entered by the user is strong or not.

Q5. A cricket match scoreboard stores the runs of 5 players in a list.
Write a program to accept the runs of each player and print the total team score.

SET 2 – MEDIUM-LEVEL APPLICATION QUESTIONS

Subject: Computer Science
Topics: Variables, If-Else, Loops, Operators


Q1.
A cinema hall charges as follows:

  • Children (below 12 years): ₹100
  • Adults (12–59 years): ₹150
  • Senior citizens (60 years and above): ₹120

Write a Python program to accept the age of a person and print their ticket price.


Q2.
Write a program that accepts three numbers from the user and prints which one is the largest.
(Hint: Use if-elif-else).


Q3.
A shopkeeper offers the following discounts:

  • If the bill is more than ₹2000 → 20% discount
  • If the bill is between ₹1000 and ₹2000 → 10% discount
  • If the bill is less than ₹1000 → No discount

Write a Python program to accept the bill amount and display the final amount after discount.


Q4.
Write a program to display the multiplication table of a number entered by the user, up to 10 rows.
(Example: if input is 7, output should show 7 × 1 = 7 … 7 × 10 = 70).


Q5.
A class has marks of 6 students stored in a list. Write a Python program to:

  • Accept the marks of all 6 students.
  • Print the average marks.
  • Print how many students scored more than or equal to 50.

Answer Key – https://abhyas.co.in/2025/09/07/class-7-computer-science-python-application-questions-variables-if-else-loops-operators-set-1-2-answer-key/

Leave a Reply

Discover more from Abhyas

Subscribe now to keep reading and get access to the full archive.

Continue reading