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

PythonWorksheet

The document is a revision worksheet for Class IX students at Navy Children School Delhi, focusing on the basics of Python programming. It includes questions and answers covering topics such as Python's creator, data types, operators, and execution modes. The worksheet aims to reinforce students' understanding of Python concepts in preparation for their studies in artificial intelligence.
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)
5 views2 pages

PythonWorksheet

The document is a revision worksheet for Class IX students at Navy Children School Delhi, focusing on the basics of Python programming. It includes questions and answers covering topics such as Python's creator, data types, operators, and execution modes. The worksheet aims to reinforce students' understanding of Python concepts in preparation for their studies in artificial intelligence.
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

NAVY CHILDREN SCHOOL DELHI

Introduction to Python (Subject - AI)


Class IX

Revision Worksheet
1. Python was created by van Rossum.
2. Python is a level programming language.
3. The extension of a Python file is .
4. The function used to display output is .
5. The function used to take input from the user is .
6. Python is an language that executes code line by line.
7. Keywords in Python are words.
8. Comments in Python are written using the symbol .
9. Python programs can be executed in mode or mode.
10. The assignment operator in Python is .
11. Python is a language, so it does not need compilation before
execution.
12. Python is a language because the same program can run on
different platforms.
13. A line starting with # is ignored by the Python .
14. Errors caused by incorrect grammar are called errors.
15. Text data in Python is called a .
16. Strings in Python are written inside quotes or quotes.
17. The data type used to store whole numbers is .
18. The data type used to store decimal values is .
19. Boolean values in Python are and .
20. The function used to find the data type of a variable is .
21. A name given to a memory location is called a .
22. A variable name cannot start with a .
23. Python variable names are sensitive.
24. The operator used to join two strings is .
25. The output of print(2 + 3) is .
26. The output of print(10 // 3) is .
27. The output of print("5" + "3") is .
28. The output of print("Hello Python") is .
29. The operator // is called the division operator.
30. The + operator is used for addition as well as .
31. The statement print(type(5)) displays .
32. The symbol used for comments helps improve of code.
33. Indentation in Python is and must be followed strictly.
34. Python supports oriented programming.
35. Python is not a dependent language.
36. Python programs are executed by the Python .
37. Errors found while running a program are called errors.
38. The function input() always returns data of type .
39. Python allows execution of commands in interactive mode.
40. Python is widely used in web development, AI, and science.
Answers:

1. Python was created by Guido van Rossum.


2. Python is a high level programming language.
3. The extension of a Python file is .py.
4. The function used to display output is print().
5. The function used to take input from the user is input().
6. Python is an interpreted language that executes code line by line.
7. Keywords in Python are reserved words.
8. Comments in Python are written using the symbol #.
9. Python programs can be executed in interactive mode or script mode.
10. The assignment operator in Python is =.
11. Python is a high-level language, so it does not need compilation before
execution.
12. Python is a platform-independent language because the same program
can run on different platforms.
13. A line starting with # is ignored by the Python interpreter.
14. Errors caused by incorrect grammar are called syntax errors.
15. Text data in Python is called a string.
16. Strings in Python are written inside single quotes or double quotes.
17. The data type used to store whole numbers is int.
18. The data type used to store decimal values is float.
19. Boolean values in Python are True and False.
20. The function used to find the data type of a variable is type().
21. A name given to a memory location is called a variable.
22. A variable name cannot start with a number.
23. Python variable names are case sensitive.
24. The operator used to join two strings is +.
25. The output of print(2 + 3) is 5.
26. The output of print(10 // 3) is 3.
27. The output of print("5" + "3") is 53.
28. The output of print("Hello Python") is Hello Python.
29. The operator // is called the floor division operator.
30. The + operator is used for addition as well as concatenation.
31. The statement print(type(5)) displays <class 'int'>.
32. The symbol used for comments helps improve readability of code.
33. Indentation in Python is mandatory and must be followed strictly.
34. Python supports object oriented programming.
35. Python is not a machine dependent language.
36. Python programs are executed by the Python interpreter.
37. Errors found while running a program are called runtime errors.
38. The function input() always returns data of type string.
39. Python allows immediate execution of commands in interactive mode.
40. Python is widely used in web development, AI, and data science.

You might also like