672qb Class 11 Cs
672qb Class 11 Cs
1 MARK QUESTIONS:
1. Which among the following is an important circuitry in a computer system that directs the
operation of the processor?
a) Memory b) Address Bus c) Accumulator d) Control Unit
Ans. d) Control Unit
2. Identify the language processor from the following:
a) Compiler b) Interpreter c) Assembler d) All of these
Ans. d) All of these
3. What is the full form of ASCII?
a) American Standard Code for International Interchange
b) American Standard Code for Information Interchange
c) American Standard Code for Internet Information
d) None of these
Ans. b) American Standard Code for Information Interchange
4. Name the software that controls internal computer operations.
a) Application software b) System software c) Utility software d) Both a and b
Ans. b) System software
5. What is Dynamic RAM made up of?
a) Flip – flops b) Transistors c) Capacitors d) Transistors and capacitors
Ans. d) Transistors and capacitors
6. What is Static RAM made up of?
a) Flip – flops b) Transistors c) Capacitors d) Transistors and capacitors
Ans. a) Flip – flops
7. Which language processor converts a program written in assembly language into a machine
language?
a) Compiler b) Interpreter c) Assembler d) All of these
Ans. c) Assembler
8. Which of the following is the concentric circle on the magnetized surface of the magnetic disk?
a) Sectors b) Track c) Both a and b d) None of these
Ans. b) Track
9. Which of the following is an example of Flash memory?
a) CD ROMs b) DVDs c) Pen drive d) Hard disks
Ans. c) Pen drive
10. 1 TB is equivalent to:
a) 210 bytes b) 210 MB c) 210 GB d) 210 KB
Ans. c) 210 GB
11. The tracks on the disk surface are divided into invisible segments known as ______________.
a) Platters b) Sectors c) Both a and b d) None of these
Ans. b) Sectors
12. Which of the following part of the system bus is responsible for carrying data?
1
a) Control bus b) Address bus c) I/O bus d) Data bus
Ans. d) Data bus
13. Which code refers to a code usually in machine language or binary code?
a) Source code b) Object code c) Both a and b d) None of these
Ans. b) Object code
14. Who developed python programming language?
a) Guido Van Rossum b) Charles Babbage
c) Tim Berners Lee d) Robert E.Kahn
Ans. a) Guido Van Rossum
15. From which show Python programming language got its name?
a) ‘Monty Python’s Circus’ b) ‘Monty Python’s Flying Circus’
c) ‘Monty Python’s Flying Jet’ d) None of these
Ans. b) ‘Monty Python’s Flying Circus’
16. When was Python released?
a) March 1991 b) September 1991 c) February 1991 d) February 1990
Ans. c) February 1991
17. Which two languages contributed to Python as a programming language?
a) ABC language b) Modula-3
c) Both ABC language and Modula-3 d) None of these
Ans. c) Both ABC language and Modula-3
18. Which of the following is a of valid string in Python?
a) “Hello” b) ‘Hello” c) Hello d) None of these
Ans. a) “Hello”
19. Which mode of Python gives instant result of typed statement?
a) Scripting mode b) Interactive mode c) Both a and b d) None of these
Ans. b) Interactive mode
20. What is the shortcut key to run a Python program from script mode?
a) F5 b) F11 c) F4 d) F2
Ans. a) F5
21. What is the extension of Python program/script files?
a) .py b) .pi c) .pyw d) .pp
Ans. a) .py
22. In which mode of Python we can save commands in the form of program?
a) Scripting mode b) Interactive mode c) Both a and b d) None of these
Ans. a) Scripting mode
23. Which of the following are the fundamental building blocks of a program?
a) Keywords b) Literals c) Identifiers d) Operators
Ans. c) Identifiers
24. Which of the following is the smallest individual unit in a program?
a) Keywords b) Literals c) Identifiers d) Tokens
Ans. d) Tokens
25. Which of the following is having a special meaning reserved by programming language?
a) Keywords b) Literals c) Identifiers d) Tokens
Ans. a) Keywords
26. Which of the following have a fixed value?
a) Keywords b) Literals c) Identifiers d) Tokens
Ans. b) Literals
27. Which of the following is used to write the comments?
a) @ b) $ c) % d) #
Ans. d) #
28. Which function is used to convert the read value through input( ) into integer type?
a) float() b) str() c) int() d) complex()
2
Ans. c) int()
29. Which function is used to convert the read value through input( ) into float type?
a) float() b) str() c) int() d) complex()
Ans. a) float()
30. Which function is used to convert the read value through input( ) into complex type?
a) float() b) str() c) int() d) complex()
Ans. d) complex()
31. Which argument is used with print( ) to print a line of text without ending it with a newline?
a) end b) sep c) Both a and b d) None as these
Ans. a) end
32. Which is the default separator character of print( ) function?
a) # b) Space c) @ d) $
Ans. b) Space
33. Which function is used to determine the type of an object?
a) id() b) type() c) print() d) None of these
Ans. b) type()
34. Which Python built-in function returns the unique number assigned to an object?
a) id() b) type() c) print() d) None of these
Ans. a) id()
35. Which operator is used to check if both the operands reference the same object memory?
a) = b) is c) != d) None of these
Ans. b) is
36. What is the value of the expression 100 / 25 ?
a) 4 b) 4.0 c) True d) False
Ans. b) 4.0
37. What is the value of the expression 100 // 25 ?
a) 4 b) 4.0 c) True d) False
Ans. a) 4
38. What will the following code produce?
a = 8.6
b=2
print ( a//b )
a) 4.3 b) error c) 4.0 d) 4
Ans. c) 4.0
39. What will the following code result as?
import math
x = 100
print ( x > 0 and math.sqrt( x ) )
a) True b) False c) 10.0 d) x>100
Ans. c) 10.0
40. What is the value of the expression 10 + 3 ** 3 * 2?
a) 64 b) 739 c) 4394 d) 182
Ans. a) 64
41. What will be the result of the expression 10 or 0 ?
a) 0 b) 10 c) True d) False
Ans. b) 10
42. What will be the result of the expression 5 or 10 ?
a) 5 b) 10 c) True d) False
Ans. a) 5
43. Which function is used to generate a random floating number in the range 0 to 100?
a) random.random() b) random.randrange()
c) random.randint() d) None of these
Ans. a) random.random()
44. Which function is used to generate a random integer in a range?
a) random.random() b) random.randrange()
3
c) random.randint() d) None of these
Ans. c) random.randint()
45. Which function is used to generate a random number in a sequence of values where two
values given along with a step value?
a) random.random() b) random.randrange()
c) random.randint() d) None of these
Ans. b) random.randrange()
46. Which module needs to be imported to use mean() function?
a) math b) random c) numpy d) statistics
Ans. d) statistics
47. Which of the following does not represent a complex number?
a) k=2+3j b) k=complex(2,3) c) k=2+3i d) k=4+3j
Ans. c) k=2+3i
48. Which of the following is an empty/null statement in Python?
a) empty b) Null c) Pass d) either a or b
Ans. c) Pass
49. Any single executable statement in python is called _____________statement.
a) simple b) complex c) compound d) None of these
Ans. a) simple
50. A ________________ statement represents a group of statements executed as a unit.
a) simple b) complex c) compound d) None of these
Ans. c) compound
51. A group of consecutive statements having same indentation level is known as __________.
a) statement b) comment c) expression d) block
Ans. d) block
52. Which of the following loop is/are an entry-controlled loop in python?
a) while loop b) for loop c) both a and b d) None of these
Ans. c) both a and b
53. Which of the following is a conditional loop?
a) while loop b) for loop c) both a and b d) None of these
Ans. a) while loop
54. Which of the following is a counting loop?
a) while loop b) for loop c) both a and b d) None of these
Ans. b) for loop
55. Which of the following is not a decision-making statement?
a) if-elif b) for c) if-else d) if
Ans. b) for
56. Which of the following is used to iterate itself over a range of values or a sequence?
a) if b) while c) for d) All of these
Ans. c) for
57. Which of the following is a valid keyword in Python?
a) IF b) If c) if d) All are valid
Ans. c) if
58. Which of the following is/are the element(s) of a while loop?
a) Initialization Expression b) Test Expression
c) Update Expression d) All of these
Ans. d) All of these
59. Which of the following statement skips the rest of the loop statements and causes the next
iteration of the loop to take place?
a) break b) continue c) Either a or b d) None of these
4
Ans. b) continue
60. Which of the following statement skips the rest of the loop and jumps over to the statement
following the loop?
a) break b) continue c) Either a or b d) None of these
Ans. a) break
61. In which condition the loop-else suite executes?
a) Normal termination of loop b) Forceful termination of loop
c) Either a or b d) None of these
Ans. a) Normal termination of loop
62. It is the set of programs that enables your computers hardware device and application
software to work together.
a) Management b) Processing c) Utility d) System Software
Ans. d) System Software
63. To perform calculations on store data computers use the _______________ number system.
a) Decimal b) Hexadecimal c) Octal d) Binary
Ans. d) Binary
64. A hexadecimal can be represented by
a) Three binary bits. b) Four binary bits.
c) Six binary bits. d) Eight binary bits
Ans. b) Four binary bits
65. The most widely used code that represents each characters as a unique 8 bit code is
a) ASCII b) UNICODE c) BCD d) EBCDIC
Ans. a) ASCII
66. Which of the following operator operates on single variable?
a) NOT b) AND c) OR d) XOR
Ans. a)NOT
67. Which law is represented by X+Y=Y+X
a) Associative b) Commutative c) Idempotent d) Involution
Ans. b) Commutative
68. Predict the output:
a= ‘sajal’
type(a)
a) str b) int c) float d) complex
Ans. a) str
69. Two inputs A and B of NAND Gate have 0 as output if
a)A is 0 b) B is 0 c)Both are 0 d) Both are 1
Ans. d) Both are 1
70. Which of the following is/ are advantages of python?
a) easy to use b) object oriented c) portability d) all of these
Ans. d) all of these
71. Python of interpreters are available for operating systems
a) Windows b) Mac OS c) both a and b d) none of this
Ans. c) both a and b
72. Which of the following is/ are character set?
a) alphabets b) digits c) white species d) all of these
Ans. d) all of these
73. ____________ is a logical instructions which Python interpreter can read an execute.
a)Expression b) statement c) comment d) indentation
5
Ans. d) indentation
74. Which comments start with # symbol?
a) Double line b) multi line c) single line d) all of these
Ans. c) single line
75. These operators are used to make a decision on two conditions
a) logical b) arithmetic c) relational d) assignment
Ans. a) logical
76. In complex number, a+ib, b is represents as
a) real part b) imaginary part c) special part d) none of these
Ans. b) imaginary part
77. Which statement is a sequence of more than one statement?
a) control statement b) compound statement
c) single statement d) sequence statement
Ans. b) compound statement
78. Which function is used to generate a sequence of numbers over time?
a)range() b)len() c)limit() d)lim()
Ans. a) range()
79. Why loop are called as
a) entry control loop b) exit control loop c) both a and b d) none of these
Ans. a) entry control loop
80. A computer program is a set of instructions and are also known as
a) compounds b) statements c) blocks d) comments
Ans. b) statements
81. Which index number is used to represent last character of string?
a) -1 b) 1 c) 0 d)n-1
Ans. a)-1
82. This function converts all uppercase letters in string to lowercase letters.
a) upper() b) lower() c) isupper() d) islower()
Ans. b) lower ()
83. this method returns the length of the string
a) len() b) length() c) l() d) leng()
Ans. a) len()
84. Slice operation is perform on string with the use of
a) ; b) , c) : d) .
Ans. c):
85. Binary number system has a base of ____________.
a) sixteen b) two c) ten d) eight
Ans. b) two
86. The octal number system has a base of ____________.
a) sixteen b) two c) ten d) eight
Ans. d) eight
87. The hexadecimal number system has a base of _______________.
a) sixteen b) two c) ten d) eight
Ans. a) sixteen
88. ISCII stands for ___________________________________________________.
a) Indian Standard Code for Information Interchange.
b) Indian Software Code for Information Interchange.
c) Indonesian Standard Code for Information Initialization.
d) Indian Stable Code for Information Interchange.
Ans. a) Indian Standard Code for Information Interchange.
6
89. The binary equivalent of the decimal number 10 is ___________.
a) 0010 b) 10 c) 1010 d) 0001
Ans. c) 1010
90. The binary equivalent of the octal Number 13.54 is ______________.
a) 1101.0011 b) 1001.1110 c) 1101.1110 d) 1011.1011
Ans. d) 1011.1011
91. The octal equivalent of 111 010 is ______.
a) 81 b) 82 c) 72 d) 64
Ans. c) 72
92. The input hexadecimal representation of 1110 is ____.
a) A b) C c) G d) E
Ans. d) E
93. Which of the following is not a binary number ?
a) 0010 b) 1000 c) 1010 d) 11E
Ans. d) 11E
94. The decimal equivalent of the binary number 111010 is ____________.
a) (64)10 b) (38)10 c) (58)10 d) (48)10
Ans. c) (58)10
95. The binary equivalent of decimal number 149 is ___________________.
a) (10010101)2 b) (11001100)2
c) (11100101)2 d) (01010011)2
Ans. a) (10010101)2
96. The octal equivalent decimal number 19 is ________.
a) (25)8 b) (23)8 c) (28)8 d) (27)8
Ans. b) (23)8
97. The binary equivalent of hexadecimal number (ABA)16 is __________________.
a) (101010111010)2 b) (111100001100)2
c) (011001111001)2 d) (101011000101)2
Ans. a) (101010111010)2
98. The hexadecimal equivalent binary number (10011011101) is ___________.
a) (5BD)16 b) (4DD)16 c) (5DD)16 d) (4BD)16
Ans. b) (4DD)16
99. The octal equivalent of binary number (1100101) is __________.
a) (178)8 b) (187)8 c) (177)8 d) (145)8
Ans. d) (145)8
Assertion and Reasoning based questions:
i) Both A and R are True and R is the correct explanation of A.
ii) Both A and R are True and R is not the correct explanation of A.
iii) A is True but R is False.
iv) A is False but R is True.
100. Assertion(A): A computer is an electronic device which is versatile in nature and can store,
process and retrieve data.
Reasoning(R): Usually computer can perform a variety of tasks which make life more
comfortable.
Ans. i) Both A and R are True and R is the correct explanation of A.
101. Assertion(A): Data is stored inside RAM for future retrieval.
Reasoning(R): Secondary memory holds data permanently.
Ans. iv) A is False but R is True.
7
102. Assertion(A): Cache memory is an extremely fast memory that is placed between CPU and
RAM.
Reasoning(R): Cache memory temporarily stores frequently used instructions and data for
quicker processing by the Central Processing Unit(CPU) of a computer.
Ans. i) Both A and R are True and R is the correct explanation of A.
103. Assertion(A): Python is the fastest language.
Reasoning(R): Python is an interpreted language.
Ans. iv) A is False but R is True.
104. Assertion(A): Python is a dynamically-typed language.
Reasoning(R): Python interpreter assigns variables a data type at runtime based on the
variable’s value at that time.
Ans. i) Both A and R are True and R is the correct explanation of A.
105. Assertion(A): Python is not a cross platform language.
Reasoning(R): Python code can run on variety of platforms such as windows, macintosh ,
apple etc.
Ans. iv) A is False but R is True.
106. Assertion(A): The data type of a variable is declared as per the type of value assigned to it.
Reasoning(R): Python exhibits the feature of dynamic typing. In dynamic typing, the type of
variable is determined only during runtime.
Ans. i) Both A and R are True and R is the correct explanation of A.
107. Assertion(A): In Python, integers are zero, positive and negative whole numbers without a
fractional part.
Reasoning(R): -45,655.55, -1000, 55.89 are the integer values in Python.
Ans. iii) A is True but R is False.
108. Assertion(A): In Python, strings, lists and tuples are called sequence.
Reasoning(R): Sequence is referred to as an ordered collection of values having similar or
different data types.
Ans. i) Both A and R are True and R is the correct explanation of A.
109. Assertion(A): A set of valid characters are recognized by Python constitutes a character set.
Reasoning(R): Character set in Python is a subset of Python tokens.
Ans. iii) A is True but R is False.
110. Assertion(A): “Rollnumbers” and “rollnumbers” are same identifiers in Python.
Reasoning(R): Python is case sensitive language, i.e., it treats uppercase and lowercase
letters differently.
Ans. iv) A is False but R is True.
111. Assertion(A): Floor division(//) operator in Python is different from division operator.
Reasoning(R): Consider the given two statements:
>>> 10//3 will give the output as 3.
On the other hand,
>>> 10/3 will give the output as 3.3333333333333335.
Ans. i) Both A and R are True and R is the correct explanation of A.
112. Assertion(A): In an if-else statement, the if block checks the true part whereas else checks
for the false part.
Reasoning(R): In a conditional construct, else is mandatory.
Ans. iii) A is True but R is False.
113. Assertion(A): When a Python code is unable to accept an input, it results in runtime error.
Reasoning(R): Runtime error arises due to incorrect statement that results in no output.
Ans. iii) A is True but R is False.
8
114. Assertion(A): The break and continue statements are known as jump statement.
Reasoning(R): Jump statements are only used with looping construct and not with conditional
construct.
Ans. iii) A is True but R is False.
115. Assertion(A): The range() method is used both for loop and while loop .
Reasoning(R): By default, the values for start and stop are 0(zero) and 1(one) respectively.
Ans. iv) A is False but R is True.
116. Assertion(A): Indentation is a very important factor while writing a program in Python .
Reasoning(R): Indentation refers to the spaces at the beginning of a code line. Multiple
statements with the same indent are classified as a block of code.
Ans. i) Both A and R are True and R is the correct explanation of A.
117. Assertion(A): Not all types of software are system software.
Reasoning(R): Application software are designed to carry out operations for a specific
application.
Ans. ii) Both A and R are True and R is not the correct explanation of A.
118. Assertion(A): The CPU of a computer uses registers as memory.
Reasoning(R): Registers are small data holding areas within CPU that hold data, instructions
etc. during the processing.
Ans. i) Both A and R are True and R is the correct explanation of A.
119. Assertion(A): In Python, blocks are represented through indentation.
Reasoning(R): Blocks in Python, are the compound statements.
Ans. ii) Both A and R are True and R is not the correct explanation of A.
120. Assertion(A): Python supports dynamic typing of variables.
Reasoning(R): A variable can hold values of different types at different times, in a program.
Ans. i) Both A and R are True and R is the correct explanation of A.
121. Assertion(A): Mutability means that the values can be changed in place.
Reasoning(R): Immutable types mean that their values cannot be changed in place.
Ans. i) Both A and R are True and R is the correct explanation of A.
122. Assertion(A): Type conversion can be implicit or explicit.
Reasoning(R): Only Python interpreter can force the type conversion and not the
programmer.
Ans. iii) A is True but R is False.
123. Assertion(A): The runtime errors occur during the execution of a program.
Reasoning(R): the runtime errors mainly occur due to unavailability of a resource required for
program execution.
Ans. i) Both A and R are True and R is the correct explanation of A.
2 MARKS QUESTIONS:
124. What do you mean by Memory access time in computer system?
Ans. The amount of time taken to produce data required from memory, from the start of
access until the availability of data.
125. How a compiler is different from an interpreter?
Ans. An interpreter converts an HLL program into machine language line by line and
simultaneously executes the converted line. Also, an interpreter must always be present
in the memory along with the program for its execution. If an error occurs in a line, the
line is displayed and interpreter does not proceed unless the error is rectified.
A compiler converts an HLL language into machine language in one go. If there are
errors in the program, it gives the error list along with the line numbers. Once the errors
9
are removed, error-free object code is made available and after this compiler is no more
needed in the memory.
126. What are various categories of software?
Ans. There are broadly two categories of software:
a) System Software: This type of software controls internal computer operations. The
system software can further be classified in two categories:
i) Operating system: An operating system is a program which acts as an interface
between a user and the hardware.
ii) Language processor: This program is responsible for converting an HLL code (High
Level Language Code) into machine understandable code.
b) Application Software: An application software is a set of programs necessary to carry out
operations for a specified applications.
127. Why is primary memory termed as ‘destructive write’ memory but ‘non-destructive read’
memory?
Ans. When a memory location is read from in the primary memory, the contents of the
memory word remain the same; they are not altered. Therefore a primary memory is
termed as “non-destructive read” memory since the read operation does not destruct
the contents of a memory word. When a write operation takes place, the previous
contents of the memory word are overwritten. Thus, the primary memory is termed as
“destructive write” memory as the write operation destructs the contents of a memory
word.
128. What is Register?
Ans. Registers or processor registers are small unit of data holding places. The CPU
uses registers to temporarily hold some important processing-information during the
time of processing is taking place. CPU may store some part data or some memory
address or some instruction in its processor registers.
129. Define dynamic RAM.
Ans. Dynamic RAM consists of transistor and capacitor that’s capable of storing an
electric charge. Depending on the switching action of the transistor, the capacitor either
contains no charge(0 bit) or does hold a charge(1 bit). The dynamic RAM provides
volatile storage i.e., contents are lost in the event of power failure.
130. What do you mean by memory refreshing?
Ans. The problem of a capacitor is that it starts loosing the charge over a period of
time, and can retain data for barely a thousandth of a second. Even a read-attempt also
drains out the charge. Therefore, the memory controller needs to refresh the memory
contents as many as a thousand times a second, which is called memory refreshing.
131. Define the following terms:
a) Sectors b) Tracks
Ans. a) The tracks on the disk surface are divided into invisible segments are known as
sectors.
b) Concentric circles on the magnetized surface of the magnetic disks are known as tracks.
132. What do you mean by software library?
Ans. A software library is a predefined and available to use, suite of data and
programming code in the form of prewritten code/functions/scripts/classes etc. that can
be used in the development of new software programs and applications.
Some examples of software libraries are:
Numpy(Numerical Python), SciPy(Scientific Python), Panda Library etc.
133. What are the advantages/disadvantages of working in Interactive mode in Python?
10
Ans. Interactive mode is useful for testing code. We can type the commands one by one
and get the result of error immediately for each command. Disadvantages of Interactive
mode are that it does not save commands in form of a program and also output is
sandwiched between commands.
134. What do you mean by Dynamic Typing?
Ans. A variable pointing to a value of certain type, can be made to point to a value/object
of different type. This is called Dynamic Typing. For example:
x = 10
print(x)
x = "Hello World"
print(x)
135. What is the difference between keyword and identifier?
Ans. Keyword is a special word that has a special meaning and purpose. Keywords are
reserved and are a few. For example, if, elif, else etc.
Identifier is a user-defined name given to a part of a program viz. Variable, object,
function etc. Identifier are not reserved. These are defined by the user but they can
have letters, digits and a symbol underscore. They must begin with either a letter or
underscore.
136. Predict the output:
x=10
x=x+10
x=x-5
print(x)
x,y=x-2,22
print(x,y)
Ans. 15
13 22
137. Write a program to read today's date (only del part) from user. Then display how many days
are left in the current month.
Ans. day = int(input("Enter day part of today's date: "))
totalDays = int(input("Enter total number of days in this month: "))
daysLeft = totalDays - day
print(daysLeft, "days are left in current month")
138. Write a Python program that accepts radius of a circle and prints its area.
Ans. r = float(input("Enter radius of circle: "))
a = 3.14 * r * r
print("Area of circle =", a)
139. Write a program to read details like name, class, age of a student and then print the details
firstly in same line and then in separate lines. Make sure to have two blank lines in these two
different types of prints.
Ans. n = input("Enter name of student: ")
c = int(input("Enter class of student: "))
a = int(input("Enter age of student: "))
print("Name:", n, "Class:", c, "Age:", a)
print()
print()
print("Name:", n)
print("Class:", c)
print("Age:", a)
140. Write a program to input a single digit(n) and print a 3 digit number created as
<n(n + 1)(n + 2)> e.g., if you input 7, then it should print 789. Assume that the input digit
is in range 1-7.
Ans. d = int(input("Enter a digit in range 1-7: "))
n = d * 10 + d + 1
n = n * 10 + d + 2
11
print("3 digit number =", n)
141. What are Immutable and Mutable types in Python? List immutable and mutable types of
Python.
Ans. Mutable types are those whose values can be changed in place whereas Immutable
types are those that can never change their value in place.
Mutable types in Python are:
Lists, Dictionaries, Sets
Immutable types in Python are:
Integers, Floating-Point numbers, Booleans, Strings, Tuples
142. If you give the following for str1 = "Hello", why does Python report error?
str1[2] = 'p'
Ans. Python reports error because strings are immutable and hence item assignment
is not supported.
143. What are main error types? Which types are most dangerous and why?
Ans. The types of errors are:
1. Compile Time Errors (Syntax errors and Semantic Errors)
2. Runtime Errors
3. Logical Errors
Logical Errors are the most dangerous as they are hardest to prevent, find and fix.
144. What is the difference between an expression and a statement in Python?
Ans.
Expression Statement
An expression is a combination of A statement is defined as any
symbols, operators and operands. programming instruction given in
Python as per the syntax.
An expression represents some values. A statement is given to execute a
task.
The outcome of an expression is always a A statement may or may not return a
value. value as the result.
For example, 3*7+10 is an expression. print(“Hello”) is a statement.
145. What is the difference between an error and exception?
Ans. An Error is a bug in the code that causes irregular output or stops the program
from executing whereas an Exception is an irregular unexpected situation occurring
during execution on which programmer has no control.
146. How is break statement different from continue?
Ans. When the break statement gets executed, it terminates its loop completely and
control reaches to the statement immediately following the loop. The continue statement
terminates only the current iteration of the loop by skipping rest of the statements in the
body of the loop.
147. In which cases, the else clause of a loop does not get executed?
Ans.The else clause of a loop does not get executed if the loop is terminated due to the
execution of a break statement inside the loop.
148. What are jump statements? Name them.
Ans.Jump statements are used to unconditionally transfer program control to other parts
within a program. Python provides the below jump statements:
a) break
b) continue
149. What is the output produced by the following code?
x=1
if x > 3 :
if x > 4 :
print ("A", end = ' ')
else :
12
print ("B", end = ' ')
elif x < 2:
if (x != 0):
print ("C", end = ' ')
print ("D")
Ans. C D
150. What is the output of the following lines of code?
if int('zero') == 0 :
print ("zero")
elif str(0) == 'zero' :
print (0)
elif str(0) == '0' :
print (str(0))
else:
print ("none of the above")
Ans. The above lines of code will cause an error as in the line if int('zero') == 0 :, 'zero' is
given to int() function but string 'zero' doesn't have a valid numeric representation.
151. Rewrite the following code fragment using for loop:
i = 100
while (i > 0) :
print (i)
i -= 3
Ans. for i in range(100, 0, -3) :
print (i)
152. Predict the output of the following code fragments:
x = 10
y=5
for i in range(x-y * 2):
print (" % ", i)
Ans. This code generates: No Output.
153. Predict the output:
a = va = 3
b = va = 3
print (a, b)
Ans. 3 3
154. Write the output of the following code:
a=3
b = 3.0
print (a == b)
print (a is b)
Ans. True
False
155. Predict the output:
x, y = 4, 8
z = x/y*y
print(z)
Ans. 4.0
156. Write the output of the following code:
x, y, z = True, False, False
a = x or (y and z)
b = (x or y) and z
print(a, b)
Ans. True False
157. What will the following code result in?
x = 40
13
y=x+1
x = 20, y + x
print (x, y)
Ans. (20,81)41
158. Predict the output
x, y = 20, 60
y, x, y = x, y - 10, x + 10
print (x, y)
Ans. 50 30
159. Convert the following hexadecimal numbers to decimal:
a) A6
b) A13B
Ans:(a)
A6 = (10 * 161) + (6 * 160)
A6 = (10 * 16) + (6 * 1)
A6 = 160 + 6
A6 = 166 (in decimal number)
(b)
A13B= (10 * 16**3) + (1 * 16**2) + (3 * 16**1) + (11 + 16**0)
A13B = (10 * 4096) + (1 * 256) + (3 * 16) + (11 *1 )
A13B = 41275 (in decimal number)
160. Convert the following hexadecimal numbers to octal :
(a) 38 AC
(b) 7FD6
(c) ABCD
Ans: (a) Hexadecimal Number = 38AC
3 8 A C
132/16=8 4
8/16=0 8
(132)10 = (84)16
14
(b)
Division Remainder
2352/16=147 0
147/16=9 3
9/16=0 9
(2352)10 = (930)16
162. Convert the following octal numbers to binary:
(a) 7642
(b) 7015
(c) 3576
Ans :
(a) (7642)8 = (111110100010)2
Conversion table:Octal Binary
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
3 MARKS QUESTIONS:
163. What is fragmentation? How does it affect computers performance?
15
Ans. A file is fragmented when it becomes too large for a computer to store in a single
location on a disk. When this happens, computer splits the file up and stores it in
pieces. This process is known fragmentation. If we use fragmented files, it takes
computer longer to access them.
164. What is the role of CPU in mobile system?
Ans. A mobile system has to cater to a variety of operations and applications and its
CPU has to manage all these. Thus the CPU of a mobile system has many sub-
processors that help it control and manage diverse applications. The CPU of a mobile
manages all these types of applications and operations:
Manages communications while connecting to radio transceivers and SIM.
Manages audio through ADC(analog to digital converter) and DAC(digital to analog
converter).
Manages display and touch sensitive sensors and interface.
Works in tandem with memory and storage.
165. Write a program to compute simple interest and compound interest.
Ans. p = float(input("Enter principal: "))
r = float(input("Enter rate: "))
t = int(input("Enter time: "))
si = (p * r * t) / 100
ci = p * ((1 + (r / 100 ))** t) - p
print("Simple interest = ", si)
print("Compound interest = ", ci)
166. What is the difference between implicit type conversion and explicit type conversion?
Ans.
Implicit Type Conversion Explicit Type Conversion
Example: Example:
a, b = 5, 25.5 a, b = 5, 25.5
c=a+b c = int(a + b)
18
Ans. m1 = int(input("Enter first subject marks: "))
m2 = int(input("Enter second subject marks: "))
m3 = int(input("Enter third subject marks: "))
m4 = int(input("Enter fourth subject marks: "))
m5 = int(input("Enter fifth subject marks: "))
avg = (m1 + m2+ m3+ m4 + m5) / 5;
print("Average Marks =", avg)
181. Write a short program that asks for your height in centimetres and then converts your height
to feet and inches. (1 foot = 12 inches, 1 inch = 2.54 cm).
Ans. ht = int(input("Enter your height in centimeters: "))
htInInch = ht / 2.54;
feet = htInInch // 12;
inch = htInInch % 12;
print("Your height is", feet, "feet and", inch, "inches")
182. Write a program that reads a number of seconds and prints it in form : mins and seconds,
e.g., 200 seconds are printed as 3 mins and 20 seconds.
Ans.
totalSecs = int(input("Enter seconds: "))
mins = totalSecs // 60
secs = totalSecs % 60
print(mins, "minutes and", secs, "seconds")
183. Convert the following binary numbers to decimal :
(a) 1010
(b) 111010
(c) 101011111
Ans: (a)
1 0 1 0
23 0 21 0 (1010)2=(10)10
(b)
1 1 1 0 1 0
25 24 23 0 22 0 (111010)2=(60)10
(c)
1 0 1 0 1 1 1 1 1
28 0 26 0 24 23 22 21 1 (101011111)2=(351)10
184. Convert the following decimal numbers to binary :
(a) 100
(b) 145
Ans: (a)
Division Remainder
100/2=50 0
50/2=25 0
25/2=12 1
12/2=6 0
19
6/2=3 0
3/2=1 1
1/2=0 1
(100)10=(1100100)2
(b)
Division Remainder
145/2=72 1
72/2=36 0
36/2=18 0
18/2=9 0
9/2=4 1
4/2=2 0
2/2=1 0
1/2=0 1
(145)10=(10010001)2
186. Convert the following hexadecimal numbers to binary:
(a) A6
(b) A07
(c) 7AB4
Ans: (a)
A 6
1010 0110
(A6)16=(10100110)2
(b)
A 0 7
(A07)16=(101000000111)2
(c)
7 A B 4
20
0111 1010 1011 0100
(7AB4)16=(0111101010110100)2
187. Convert the following binary numbers to hexadecimal:
(a) 10011011101
(b) 1111011101011011
(c) 11010111010111
Ans :(a)
0100 1101 1101
4 D D
(10011011101)2=(4DD)16
(b)
F 7 5 B
(1111011101011011)2 = (F75B)16
(c)
0011 0101 1101 0111
3 5 D 7
(11010111010111)2 = (35D7)16
4 MARKS QUESTIONS:
188. Diana wants to buy a desktop or a laptop. She wants to use this computer for her freelancing
typing work and for watching high-quality movies. Her brother will also use this computer for
playing/creating games.
(a) She wants to open multiple such applications (as mentioned above). Which of the following
hardware must have suitable size to support this feature? Specify reason.
(i) ROM (ii) RAM (iii)Storage (iv) All of these
(b) Diana wants to use this computer on the go, i.e., she should be able to use it while
travelling. Then out of desktop/laptop, what should be her preference?
(c) If she chooses laptop, then other than RAM, CPU and Storage, what else she must
consider before finalizing it? Give reason.
(i)Software (ii) Operating System (iii) Battery (iv) All of these
Ans.
(a) (ii) RAM. The Random Access Memory (RAM) is required to run applications on a
computer. More the applications, more RAM is required.
(b) Laptop
(c) (iii) Battery. Battery is an important component of any laptop/mobile system as it
gives power for running the computer on the go.
189. Shlok is a 13 year old teenager with keen interest in reading technology blogs and
magazines. He read a headline on an article that was like, "The HP Z8 PC can be
upgraded to an Insane 3 TB RAM and 48 TB storage". Shlok asked his elder brother,
Param, his doubts and questions related to the above headline.
(a) Shlok asked the following questions:
21
i) What is TB? Explain.
(ii) Different units of data can be used to represent the size of a file, as it changes in size. Fill
in the missing units of data, using the list given :
• byte • gigabyte (GB) • megabyte (MB) •nibble
The units of data increase in size from the smallest to the largest.
Smallest bit
……………………
……………………
Kilobyte (KB)
……………………
……………………
(b) What is the difference between RAM and storage? Do we need both of these in a computer?
(c) Does operating system also use RAM ?
(d) Both Microsoft Windows and Microsoft Office are software. How are these different from
one another?
Ans.
(a) (i) TB is a memory/storage unit, which expands to Tera Byte.
1 TB is equal to 1024 GB of memory/storage.
(ii) The given units from the smallest to the largest order will be:
1. Bit 2. Nibble 3. Byte 4. Kilobyte (KB)
5. Megabyte (MB) 6. Gigabyte (GB) 7. Terabyte (TB)
(b) RAM refers to Random Access Memory, which is primary memory required to run
various applications and programs on a computer. RAM also holds data during the
execution of a program or when an application is running.
But RAM is a volatile memory and it cannot store data and information permanently. To
store data and information permanently, secondary memory is required, called storage.
Thus, both RAM and storage are required for a computer.
(c) Yes, when a computer is started (booted up), first of all OS is loaded on RAM so that it
can
run other programs and manage other resources of computer.
(d) Microsoft Windows is an operating system, which is a type of system software. An OS
gets loaded in RAM first of all. It stays in memory as long as the computer is running.
Microsoft Office is a type of application software and it gets loaded in RAM only when a
user decides to use it. It is removed from memory when its work is over (i.e., when user
closes this application).
190.(a) Identify the number conversion method listed below. What will be the number system of
the resultant number if converted using the below given method?
(i) Start by splitting the binary number into nibbles.
(ii) Calculate the value of each nibble in denary.
(iii) Read the resultant number from left to right.
(b) A register in a computer contains binary digits.
0 0 1 1 0 1 1 1
22
The contents of the register could represent a binary integer. Convert the binary integer to
denary and hexadecimal.
Denary______________________________________
Hexadecimal_________________________________
(c) The contents of the register currently represent the ASCII value 7.
Write the binary, hexadecimal and octal representation for the given ASCII character 7.
(Hint. You may refer to ASCII table)
(d) Select the correct hexadecimal value that represents the following binary number
11111010110011102:
(i) FADE16 (i) FEED16 (iii) CAFE16 (iv) FACE16
Ans.
(a) The given method represents Binary-to-Hexadecimal conversion.
The number system of the resultant number will be Hexadecimal number system.
(b) Denary/Decimal conversion:
128 64 32 16 8 4 2 1
0 0 1 1 0 1 1 1
32+16+4+2+1=55
00110112=5510
Hexadecimal conversion
0011 0111
3 7
001101112=3716
=(110111)2
Hexadecimal conversion:
16 55 remainders
16 3 7
0 3
=(37)16
Octal conversion:
8 55 remainders
8 6 7
23
0 6
=(67)8
15 10 12 14
F A C E
11111010110011102=FACE
191. Write a menu driven program that has options to accept the marks of the student in from
major subjects in Class X and display the name.Calculate the sum of the marks of all
subjects. Divide the total marks by member of subjects (i.e., 5), calculate percentage=total
marks/5 and display the percentage.
Find the grade of the student as per the following criteria :
Criteria Grade
percentage> 85 A
Let's peer review the case studies of others based on the parameters given under
"DOCUMENTATION TIPS at the end of Chapter 5 and provide a feedback to them.
Ans.
perc = total / 5
if perc >=85:
grade =’A’
elif perc >=75:
grade =‘B’
elif perc >= 50:
grade =’C’
elif perc >= 38:
grade = 'D'
else:
grade= "Reappear"
24
print("Total marks :”, total, "\t Percentage :", perc)
print("\t\t\t Grade:", grade)
Sample Run
Enter marks in subject 1: 67
Enter marks in subject 2: 56
Enter marks in subject 3: 48
Enter marks in subject 4: 67
Enter marks in subject 5: 54
Total marks: 292.0
Percentage: 58.4
Grade: C
Describe how the program would behave if the user supplied values of 5 and 15 for x and y,
and also describe the additional correction that must be made in order for the program to run
correctly,
(c) Varun is writing a program to test if an input character is a hex digit or not. The program will
test the input single-character string with a value that is used in hexadecimal numerals (i.e., in
the range ‘0’ to ‘9’ or ‘a’ to ‘f’). Varun wants to store the legal hex digits in a sequence. Which
sequence should he use for it-list or a tuple? Justify.
(d) Write a python program to implement the problem of valid hex digits mentioned in previous
part(c) using a tuple only.
Ans.
(a) The three syntax errors are highlighted in color in the corrected code below:
x=int(input("Enter value for x"))
print("The square of x is", x*x) #comma (,) missing after the string message
y = input("Enter value for y")
print("The product of x and y is", xy) if x>y: #: was missing
print("The difference is", x-y)
else: #indentation error
25
print("The difference is", y - x)
(b) The given code will input the value of y as a string as the input value is not converted
to int type:
y= input("Enter value for y")
If the above code is run with input values 5 and 15, it will give the output as:
Enter value for x5 The square of x is 25
Enter value for y15
The product of x and y is 1515151515
if x>y:
TypeError: '>' not supported between instances of 'int' and 'str'
It yielded error for comparison of x and y as now the type of x is int type and y is string
type and hence these cannot be compared.
(c) Varun should choose tuple to store the legal hex digits. This is because the program
needs to store the hex digits in a sequence only once. The sequence once created need
not be changed
or updated. And since tuple is an immutable type, it supports this property.
hex = ('0', '1', '2', '3', '4', '5', '6', '7, 8, 9', 'A', 'B', 'C', 'D', 'E', 'F')
more = 'y' (4)
print("Checking for valid hex digits")
while more=='y' or more == 'Y':
dig input("Input single character: ")
if dig.upper() in hex:
print(dig, "is a valid hex digit.")
else:
print(dig, "is NOT a valid hex digit.")
more = input("Want to check more? (y/n) :")
193. Xerox Technology deals with supply of hardware components required for the assembly of
computer systems in the Nehru Place market. They provide reliable and efficient data
storage devices to the consumers. Six storage devices in which they deal are described
below. Name the storage devices being described and also list the appropriate category of
storage(Primary or Secondary).
a) Optical media which use one spiral track; red lasers are used to read and write data on
media surface; make use of dual-layering technology to increase storage capacity.
b) Non-volatile memory chip; contents of the chip cannot be altered; it is often used to store
the start-ups routines in a computer(e.g., BIOS).
c) Optical media which uses concentric tracks to store data; this allows read and write
operations to be carried out at the same time.
d) Non-volatile memory device which uses flash memory(which consists of millions of
transistors wired in a series on a single circuit board).
Ans. Storage device Category
a) DVD Secondary Storage
b) ROM Primary Memory
c) DVD-ROM Secondary Storage
d) Solid State Memory/ Memory Card Secondary Storage
194. India sells is an India- based cargo company that deals with the export and sale of various
goods within the country and across the globe. To do business analysis of the day-to-day
transactions, they have hired a programmer to develop a computerized system for the same.
Write a Python code that accepts cost of goods sold(cogs), revenue generated, operating
cost(oc), and prints gross profit, net profit and net profit percentage. [Net profit=Revenue –
cogs – oc ]
Ans. cogs=int(input("enter cost of goods sold:"))
26
rg=int(input("enter revenue generated:"))
oc=int(input("enter operating cost:"))
gp=rg-cogs
np=gp-oc
npp=np/rg*100
print("gross profit is",gp)
print("net profit is",np)
print("net profit percentage is:",npp)
195. Gurukul Vidyapith is a reputed institution in the field of academics and extra-curricular
activities. Every year with the commencement of the new session, it hikes fee by 10% for all
the students which was manually done till date and required enormous efforts on the part of
the office staffs. To solve this problem, develop a Python program that calculates this 10%
fee hike every year automatically after obtaining the basic fee amount from the users and
displays it to the parents of the students enrolled with the institute.
Ans. amount=int(input("enter amount:"))
fee_hike=0.1*amount
total_fee=amount+fee_hike
print("fee to pay now",total_fee)
196. Write a program to perform the following tasks according to the user’s choice using menu.
a) Area of circle b) Area of rectangle
Ans.
print("1. Area of circle")
print("2. Area of rectangle")
ch=int(input("enter a choice:"))
if ch==1:
r=int(input("enter radius:"))
area=3.14*r**2
print("The area of circle is:",area)
elif ch==2:
l=int(input("enter length:"))
b=int(input("enter breadth:"))
area=l*b
print("The area of rectangle is:",area)
else:
print("invalid choice")
197. Data Type: The data that needs to be processed by a computer can be in various form.
It can be numbers with or without decimal places or it can be just a single character or a
sequence of characters. The data to be handled by the computer can also be in group. All
computer programming languages support wide variety of data that can be stored, processed
and manipulated in a computer system. Data type is a term that is used to show the kind of data
values or the type of data that is expected to be handled.
Python has five standard data types: Numbers, Strings, Lists, Tuples and Dictionaries.
Based on the above information, answer the following questions.
(i) Which data type contains only numeric value in Python?
(ii) Which term is used to show the kind of data values?
(iii) Tuples are defined by which type of bracket?
27
(iv) In Python, what are the use of data types?
Ans. i) Numbers
ii) Data type
iii) ()
iv) To identify the type of data
198. What are the four advantages or pluses of Python programming language?
Ans. Advantages of Python programming language are:
a) Easy to Use — Python is compact, programmer-friendly and very easy to use object
oriented language with very simple syntax rules.
b) Expressive Language — Python is an expressive language, it takes fewer lines of
codes to represent the same syntax.
c) Interpreted Language — Python is an interpreted language, not a compiled
language. It makes Python an easy-to-debug language and thus suitable for
beginners to advanced users.
d) Completeness — Python has a rich standard library that provides modules for most
types of required functionality like emails, web-pages, databases, GUI development,
network connections, etc..
199. How SoC is different from CPU? Why is it considered a better development? (3+1)
Ans. SoC refers to System on a Chip. An SoC consists of a central processing unit(CPU),
graphics processing unit(GPU), modem, multimedia processor, security device and signal
processor. An SoC is far more than a CPU. It not only comprises up of the smartphone’s
CPU, other functional sub-processors like GPU, display processor, video processor along
with LTE modem, and other bits of silicon that turn it into a functional ‘system’ in a phone.
An SoC offers better performance while the power consumption is comparatively less.
200. a) Write a program to input a number and print its first five multiples.
b)Write a program to input principle, rate and time then calculate interest.
(2+2)
Ans. a) n = int(input("Enter number: "))
print("First five multiples of", n, "are")
print(n, n * 2, n * 3, n * 4, n * 5)
b)
p = int(input("Enter principle amount"))
r = int(input("Enter principle amount"))
t = int(input("Enter principle amount"))
i=p*r*t/100
print(i)
5 MARKS QUESTIONS:
201. Define utility programs. What is System on a chip or SOC?
Ans. Utilities or utility programs are those application programs that assist the computer
by performing housekeeping functions like backing up disk or scanning/cleaning viruses
or arranging information etc.
Some important utilities are:
a) Text Editor: Used for creating, editing text files.
b) Backup Utility: Facilitates the backing-up of disk.
c) Compression Utility: Facilitates compression of files.
d) Disk Defragmenter: This program speeds up disk access by rearranging the files and
free space on computer.
Major components of mobile system are integrated on a single chip; it consumes less
power compared to other alternatives.
28
202. What is System Bus? Define four various types of system bus.
Ans. The system bus or the bus is an electronic pathway composed of connecting
cables
and that connects the major components of a computer system.
a) The data carrying part of system bus is called data bus.
b) The control instruction carrying part of system bus is called control bus.
c) The memory address carrying part of system bus is called address bus.
d) A separate type of bus called I/O bus connects the output, input and other external
devices to the system.
203. Are these values equal? Why/Why not? What does a cross platform language mean?
a) 20 and 20.0
b) 20 and int(20)
c) str(20) and str(20.0)
d) 'a' and "a"
Ans. a) The type of 20 is int whereas the type of 20.0 is float so they are two different
objects. Both have the same value of 20. So, as values are same equality (==) operator
return True but as objects are different is operator returns False.
b) The value and type of both 20 and int(20) are the same and both point to the same
object. so both equality (==) and is operator returns True.
c) For str(20) and str(20.0), both equality (==) and “is” operator returns False as their
values
are different and they point to two different objects.
d) For 'a' and "a", both equality (==) and is operator returns True as their values are same
and they point to the same object.
A cross platform language means it can run well on variety of platforms like Windows,
Linux/Unix, Macintosh etc.
204. Write a program that generates six random numbers in a sequence created with (start, stop,
step). Then print the mean, median and mode of the generated numbers.
Ans.import random
import statistics
start = int(input("Enter start: "))
stop = int(input("Enter stop: "))
step = int(input("Enter step: "))
a = random.randrange(start, stop, step)
b = random.randrange(start, stop, step)
c = random.randrange(start, stop, step)
d = random.randrange(start, stop, step)
e = random.randrange(start, stop, step)
f = random.randrange(start, stop, step)
print("Generated Numbers:")
print(a, b, c, d, e, f)
seq = (a, b, c, d, e, f)
mean = statistics.mean(seq)
median = statistics.median(seq)
mode = statistics.mode(seq)
print("Mean =", mean)
print("Median =", median)
print("Mode =", mode)
205. a) What do you understand by ‘Python is a free and open source language’?
b) Write a Python program to find the factors of a number.
c) What will be the output of following Python code?
x, y = 4, 8
z = x/y*y
29
print(z)
Ans. a) It means – to download Python, one need not to pay anything, because it is free.
And its source-code is also available, which can be modified/improved etc., because it is
open source.
b) x=int(input("enter a number:"))
print("The factors of",x,"are:")
for i in range(1,x+1):
if x%i==0:
print(i)
c) 4.0
206. a) Write a program to accept a number and find whether the number is a perfect number or
not.
b) Predict the output of the following code fragments:
x = 10
y=0
while x > y:
print (x, y)
x=x-1
y=y+1
Ans.
a) n=int(input("enter a number:"))
sum=0
for i in range(1,n):
if n%i==0:
sum=sum+i
if sum==n:
print("the given number is a perfect number")
else:
print("the given number is not a perfect number")
b) 10 0
9 1
8 2
7 3
6 4
207. a) Write a program to print the sum of the series 1+x1/1+x2/2+..........xn/n.
b) Predict the output:
x, y = '5', 2
z=x+y
print(z)
Ans. a) x=int(input("enter a number: "))
n=int(input("enter the limit:"))
sum=0
for i in range(1,n+1):
sum=sum+((x**i)/i)
print(sum)
b)This code produces an error in the line z = x + y as operands of addition operator
(+) are string and int, respectively which is not supported by Python.
208. a) Write a program to find the sum of the geometric series s=a+ar+ar2+ar3+ar4+........arn.
b) Find the errors in following code:
c=input(“Enter your class”)
print(“Last year you were in class”, c-1)
30
Ans. a) a=int(input("enter a number:"))
r=int(input("enter ratio:"))
n=int(input("enter the limit:"))
print("\n Series:\n")
sum=0
for i in range(1,n):
term=a*(r**i)
sum=sum+term
print("The sum of the series is:",sum)
b) The problem is that input() function returns value as a string, so the input integer
type
value is returned as string type value. And a string value cannot be subtracted from
an integer.
32
a) Not the Fastest Language — As Python is an interpreted language so its execution-
times are not that fast compared to some compiled languages.
b) Lesser Libraries than C, Java, Perl — Library collection of C, Java, Perl is better
than Python.
c) Not strong on Type-Binding — Python interpreter is not very strong on catching
'Type-Mismatch' issues.
d) Not easily convertible — Translating Python programs to other languages is difficult
due to its lack of syntax.
Named labels, whose values can be used and processed during program run, are
called variables.
****
33