0% found this document useful (0 votes)
13 views3 pages

Class 7 Computer Science Autumn Break Holiday Homework

The document outlines the Autumn Break holiday homework for Class VII Computer Science at Army Public School Jodhpur for the session 2025-26. It includes programming tasks in Python related to conditional coding, such as checking positive/negative numbers, even/odd numbers, and eligibility to vote, along with a task to create a poster on Artificial Intelligence. Completion of the homework is mandatory and will be graded out of 10 marks.

Uploaded by

kajalsharma33345
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)
13 views3 pages

Class 7 Computer Science Autumn Break Holiday Homework

The document outlines the Autumn Break holiday homework for Class VII Computer Science at Army Public School Jodhpur for the session 2025-26. It includes programming tasks in Python related to conditional coding, such as checking positive/negative numbers, even/odd numbers, and eligibility to vote, along with a task to create a poster on Artificial Intelligence. Completion of the homework is mandatory and will be graded out of 10 marks.

Uploaded by

kajalsharma33345
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/ 3

ARMY PUBLIC SCHOOL JODHPUR

AUTUMN BREAK HOLIDAY HOMEWORK


CLASS- VII
SESSION- 2025-26
SUBJECT- COMPUTER SCIENCE
Instructions:

A. All the work assigned for the Autumn break will be considered an internal
activity for Computer Science and will carry 10 marks. Therefore, it is
mandatory for everyone to complete it and submit it in class.
B. Write the given programs in your computer note book

Chapter-6- Python Programs - Conditional Coding

Task 1: (5 Marks)
a. W.A.P. to check positive or negative number
Sol:

num = int (input ("Enter a number: "))


if num > 0:
print ("The number is Positive")
else:
print ("The number is Negative or Zero")

b. W.A.P. to check entered number is Even or Odd


Sol:

num = int (input ("Enter a number: "))


if num % 2 == 0:
print ("The number is Even")
else:
print ("The number is Odd")

c. W.A.P. to check letter entered by user is Vowel or Consonant


Sol:

ch = input("Enter a letter: ")


if (ch == 'a' or ch == 'e' or ch == 'i' or ch == 'o' or ch == 'u' or
ch == 'A' or ch == 'E' or ch == 'I' or ch == 'O' or ch == 'U'):
print (ch, "is a Vowel")
else:
print(ch, "is a Consonant")
4. W.A.P. to find the greatest of two numbers entered by the user.
Sol:

a = int(input("Enter first number: "))


b = int(input("Enter second number: "))
if a > b:
print("The greater number is:", a)

else:
print("The greater number is:", b)

5. W.A.P. to find the greatest of three numbers entered by the user.

Sol:

a = int(input("Enter first number: "))


b = int(input("Enter second number: "))
c = int(input("Enter third number: "))
if a >= b and a >= c:
print("The greatest number is:", a)
elif b >= a and b >= c:
print("The greatest number is:", b)
else:
print("The greatest number is:", c)

6. W.A.P. to check eligibility age entered by user to Vote.


Sol:

age = int(input("Enter your age: "))


if age >= 18:
print("You are eligible to vote")
else:
print("You are not eligible to vote")

7. W.A.P. to give the grades according to the marks of student.


Sol:

marks = int(input("Enter your marks: "))


if marks >= 90:
print("Grade: A")
elif marks >= 75:
print("Grade: B")
elif marks >= 50:
print("Grade: C")
else:
print("Grade: Fail")

Task 2: (5 Marks)

Create an attractive and engaging A4-size poster on the use of Artificial

Intelligence in real life.

You might also like