Page 23 - PlusGPT_V2.1_C8_Flipbook
P. 23
test Your skiLLs
1. Tick ( ) the correct option.
ü
a. What will be the output of the following expression?
22 % 3
(i) 7 (ii) 1
(iii) 0 (iv) 5
b. Python is a _________________ programming language.
(i) High-level (ii) Middle-level
(iii) Low-level (iv) Assembly-level
c. Which of the following variable is incorrect?
(i) NaMe (ii) _name
(iii) @value (iv) number
d. Which of the following is true?
(i) Comments are for programmers for better understanding of the program.
(ii) Python Interpreter ignores comments.
(iii) You can write multi-line comments in Python using triple quotes, either ‘’’ or “””.
(iv) All of these
e. Which of the following symbol(s) is/are used for comments in Python?
(i) // (ii) ‘’
(iii) /**/ (iv) #
f. Which one of the following is not a arithmetic operator used in Python?
(i) Addition (ii) Multiplication
(iii) Exponentiation (iv) Parentheses
2. Fill in the blanks using the words given below:
operands, Guido van Rossum, Quotes, input( ), compiler
a. Python was developed by _________________.
b. A _________________ is a software that converts the entire source program into machine language
before executing it.
c. The values which the operators use to get the output are called _________________.
d. The _________________ function allows to take user’s input while a program executes.
e. To write a multi-line comment in Python, we use the triple _________________.
Introduction to Programming 21

