[go: up one dir, main page]

0% found this document useful (0 votes)
14 views2 pages

Assignment Questions - Python Revision Tour 1

Python class 12

Uploaded by

1man squad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Assignment Questions - Python Revision Tour 1

Python class 12

Uploaded by

1man squad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment Questions – Python revision tour 1

Python Revision Tour – 1 Assignment Questions


A. Very Short Answer Questions (1 Mark each)
1. Who developed Python?
2. Python is a compiled language or interpreted language?
3. What is the use of the # symbol in Python?
4. Name two keywords in Python.
5. What is the difference between = and == in Python?
6. Write the output:
7. print("Hello" * 3)

B. Short Answer Questions (2-3 Marks each)


7. List any four features of Python.
8. What is the difference between a keyword and an identifier? Give one example of
each.
9. Write a Python statement to take input from a user and display it back.
10. Write the output:
11. x = 10
12. y = 3
13. print(x // y, x % y)
14. Differentiate between compiler and interpreter.
15. What will be the value of result after execution?
16. result = 5 + 2 * 3 ** 2

C. Long Answer Questions (4-5 Marks each)


13. Explain data types in Python with examples (int, float, str, bool).
14. Write a Python program to check whether a number entered by the user is even or
odd.
15. Write a program that takes the marks of 3 subjects and prints the average.
16. Explain the concept of type casting with an example.
17. What are operators in Python? Explain any four types with examples.
18. Write a Python program to calculate the area of a circle (take radius as input).

D. Higher-Order Thinking (Application Based)


19. Predict the output:
20. a, b = 5, 2
21. a += b
22. b *= a
23. print(a, b)
24. Write a program to swap two numbers without using a third variable.
25. Write a program that asks the user for their name and age, and prints:
Hello <name>, you will turn 100 years old in <year>.

You might also like