Page 125 - ConceptGP_C8_Fb
P. 125
4. Which of the following symbol(s) is/are used for comments in Python?
a. // b. ‘’
c. /**/ d. #
Exercise
A. Fill in the blanks using the words given in the help box.
string, false, input( ), Instructions, Assembler
1. A computer language is the means by which ____________ are transmitted to the computer.
2. An ____________ is a program used to translate assembly language into machine language.
3. A ___________ value is a collection of one or more characters put in single or double quotes.
4. The ___________ function allows to take user’s input while a program executes.
5. Logical OR operator returns ___________, if both operands are false.
B. Short answer type questions.
1. What is an assembler?
________________________________________________________________________________________________
2. Define computer language.
________________________________________________________________________________________________
3. Define the term data types.
_______________________________________________________________________________________________
4. What is operator precedence?
_______________________________________________________________________________________________
C. Long answer type questions.
1. List the relational operators used in Python with the help of an example.
2. What is the use of comments in programming? How many types of comments are there
in Python?
3. Define modes of Python IDLE.
4. Define the following.
a. Arithmetic Operators b. Comment in Python c. Data Type
d. Variable e. Logical Operators
Introduction to Python Programming 123

