Page 103 - 2617_JSSPS_C-8
P. 103
8. Sriansh has written the following code in Python:
X = Y = 10
X = Y + 10
What will be the final value of X?
a. 10 b. 30
c. 20 d. 40
B. Fill in the blanks.
1. If a = 5, then print(a + 4) will give the result .
2. are memory reference points.
3. enable us to understand the way a program works.
4. of operators determines the order in which the operators are executed.
5. The AND operator results true if both operands are .
C. Tick ( ) the correct statements and cross ( ) the wrong ones.
1. IDLE stands for Integrated Development and Learning Environment.
2. In the Interactive Mode, commands entered by the user are not saved.
3. We cannot convert a value into an integer in Python.
4. The names given to the variables are known as identifiers.
5. A number system is a systematic way of representing numbers to describe quantities.
6. Another name for radix is base.
7. The word 'binary' comes from 'Bi' meaning two.
8. One bit is equal to 4 nibbles.
D. Answer the following questions:
1. What digits are used in hexadecimal number system? Give an example of a number written in to
hexadecimal number system.
2. Define LSD in the context of number system.
3. What is decimal number system?
4. Explain any two real-life examples of computing using the binary number system.
5. What is the use of the greater than or equal to operator? Which category of operators does it belong to?
6. Aruna has typed the following line of code in interactive mode:
# print("Enter your name")
What will she get when presses the Enter key? Why?
7. What is a prompt in Python IDLE?
8. “Python is Integrated and Extensible Language.” Enumerate this statement.
Test Sheet 2 101

