Computer Science – Python Class 7 – Very able Variables, If you think for a while – Practise Set 1

TOPICS: Very able Variables, If you think for a while


1. Which data type is used in Python to store a sequence of characters?


2. The int data type is used to store __________.


3. In Python, repeating a block of code until a condition becomes false is known as __________.


4. Which of the following is a valid variable name?
a. 2marks
b. marks_2
c. marks-2
d. marks 2


5. The if-elif-else statement can be used when there are __________ possible conditions to check.


6. A user can log in if they enter the correct username and the correct password.
a. Which logical operator is used in this scenario?
b. Explain why.


7. Write a Python program to accept a number from the user and check whether it is positive, negative, or zero.


8. What is a while loop in Python? Write its syntax.


9. Write the syntax for the following:
a. Converting a number to string
b. Taking input from the user


10. Write down the functions of these relational operators, with examples:
a. !=
b. >

Answer Key – https://abhyas.co.in/2025/09/07/computer-science-python-class-7-very-able-variables-if-you-think-for-a-while-practise-set-1-answer-key/

Leave a Reply

Discover more from Abhyas

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

Continue reading