Chapter 6 Introducing Python
Brain Developer
A. Fill in the blanks:
1. Syntax refers to the grammatical rules to be followed while writing a program in any language.
2. Python was created by Guido Van Rossum.
3. Edit menu is generally created used to edit the file in use.
4. In the interactive mode by Python, the instruction are executed line by line, giving the output.
5. A variable is a named memory location that stores the data.
6. Python keyword cannot be used as a variable name.
B. State True or False:
1. To evaluate an arithmetic expression, it is not necessary to use print() function. (True)
2. A variable name can consist of alphabets, digits, and underscore. (True)
3. A script is a program that you type in Python. (True)
4. In Python, only one type of data can be stored in memory. (False)
Correct Answer. In Python, more than one type of data can be stored in memory.
5. Print() function is used to accept the value of a variable from the user. (False)
Correct Answer: Input() function is used to accept the value of a variable from the user.
6. The string values cannot be multiplied together. (True)
7. When we use ',' operator as the separator among the values, the values are displayed with a space between
them (Tue)
D. Muitiple Choice Questions:
1. Which of the following data types is not supported in Python?
a) Numbers
b) String
c) List
Answer: c) List
2. When a new value is stored in a variable, its previous value gets
a) Accepted
b) Overwritten
c) Overlapped
Answer: b) Overwritten
3. Values to variables are assigned using the operator.
a) String
b) print()
c) Assignment
Answer: c) Assignment
4. The data type for 12.4 should be
a) int
b) float
c) str
Answer: b) float