Page 145 - Trackpad_V1_Book 7_Flipbook
P. 145
d. When a parenthesis is missing in print statement, which type of error occurs?
(i) Logical Error (ii) Syntax Error
(iii) Mathematical Error (iv) None of these
e. A list is a collection of data elements separated _______________ by and enclosed within
_______________ .
(i) , and {} (ii) \\ and .
(iii) , and [] (iv) , and ()
2. Fill in the blanks using the words from the help box.
Debugging, constant, list, Data type, identifier
a. _______________ is the fixed values that do not change during the execution of the program.
b. _______________ is the names given to variables, functions and arrays.
c. _______________ is a collection of data elements separated by a comma and enclosed within
square brackets.
d. _______________ refers to the task of detecting and removing errors in a program.
e. _______________ is used to define the type of value a data can contain.
3. Think and answer.
a. What do you mean by data type?
____________________________________________________________________________
b. What is a character set?
____________________________________________________________________________
c. What is the value operated by the operator called?
____________________________________________________________________________
d. Which operator is used to assign a value to a variable?
____________________________________________________________________________
____________________________________________________________________________
e. What are the errors? Explain the types of errors with example?
____________________________________________________________________________
____________________________________________________________________________
f. Explain the assignment operators with example.
____________________________________________________________________________
____________________________________________________________________________
4. Differentiate between the following:
Identifier Keyword
________________________ ________________________
________________________ ________________________
Tokens and Data Types in Python 143

