0% found this document useful (0 votes)
6 views1 page

Tutorial Questions For Lcu-Cos-119

The document contains a list of tutorial questions related to Python programming, covering topics such as string formatting, data types, variable naming rules, operators, and exception handling. It includes programming tasks such as calculating areas, displaying dates, and reversing user input. Additionally, it asks for explanations of Python concepts like Boolean expressions and dictionaries.

Uploaded by

sultanast
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Tutorial Questions For Lcu-Cos-119

The document contains a list of tutorial questions related to Python programming, covering topics such as string formatting, data types, variable naming rules, operators, and exception handling. It includes programming tasks such as calculating areas, displaying dates, and reversing user input. Additionally, it asks for explanations of Python concepts like Boolean expressions and dictionaries.

Uploaded by

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

TUTORIAL QUESTIONS

1. Write a Python program to print the following string in a specific format


Twinkle, twinkle, little star,
How I wonder what you are!
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you are (5 Marks)
2. What is the difference between intermediate mode and script mode? (3 Marks)
3. What are Datatypes? Discuss the standard data types in python. (7 Marks)
4. Write a Python program that calculates the area of a circle based on the radius (7 Marks)
5. What are the rules for naming a variable in python? (3 Marks)
6. What operators does python support? (5 Marks)
7. Write a Python program that accepts the user's first and last name and prints them in reverse
order with a space between them. (8 Marks)
8. What is multiline statement? (2 Marks)
9. Write a Python program to display the current date and time. (5 Marks)
10. Write a Python program that prints the calendar for a given month and year. (7 Marks)
11. What is Boolean Expression? (3 Marks)
12. Describe in detail how exceptions are handled in Python. Give relevant examples. (5 Marks)
13. Write a Python program to get the volume of a sphere (when radius =7) (7 Marks)
14. Explain briefly python break statement (4 Marks)
15. What are Python's dictionaries? (4 Marks)
16. Write a Python program that will accept the base and height of a triangle and compute its area
(5 Marks)
17. Discuss five benefits of using Python (10 Marks)

You might also like