The document provides an introduction to Python, covering its characteristics as a high-level, open-source programming language. It includes a quiz section with multiple-choice questions, true/false statements, fill-in-the-blanks, and short answer questions about data types, variables, operands, and operators. Additionally, it explains the functions Input() and Print() in Python.
The document provides an introduction to Python, covering its characteristics as a high-level, open-source programming language. It includes a quiz section with multiple-choice questions, true/false statements, fill-in-the-blanks, and short answer questions about data types, variables, operands, and operators. Additionally, it explains the functions Input() and Print() in Python.
1. Python is structured, high level, ------------- programming language.
a. Open source b. paid c. low level
2. Python used for -------------------- interface programming.
a. Interpreted language b. Graphical user c. Hypertext
3. Python executes the code ------------line at a time.
a. two b. three c. one
4. ------------- function is used for output.
a. sum() b. print() c. output()
B. Write true or false.
1. A computer language is a medium of communication between
the user and the computer. True 2. Python is low level programming language which is easy to learn. False 3. Modulus operator is used for Division. False 4. Arithmetic operators are used to perform mathematical operations. True C. Fill in the blanks.
1. Relational operators are used to compare the values.
2. All Python keywords contain lowercase letters except True, False
and None.
3. The values operated by the operators are called operands.
4. Float data type represents floating point numbers which contain
decimal point.
D. Answer in 1-2 sentences.
1. What is Data types?
Ans: Data type is used to define the type of value a data can contain. Few data types in Python are: Integer, Float and String.
2. What are variables?
Ans: Variables are used to store data in the memory. The data can be numbers, text or objects.
3. What is Operands? Ans: The values operated by the operator are called Operands. E. Answer in brief.
1. Define operator and its types.
Ans: Operators are the special symbols that carry out arithmetic and logical computations. Types of operators: 1. Arithmetic operators: +,-,*,/,%,**. 2. Relational operators or Comparison operators: >,<,<=,>=,==,!=. 3. Logical operator: AND, OR ,NOT. 4. Assignment operator: =
2. Define Input () and Print () function of Python.
Ans: Input () is used to get input from user. This function helps user to input the values and text for the operation. Print () is used to print the value of given input value or string. It helps to show output on screen.