Professional Documents
Culture Documents
Ip Holiday Homework
Ip Holiday Homework
Ip Holiday Homework
IP HOLIDAY HOMEWORK
Q 1 - ANSWER -
Q 2 - ANSWER -
Q 3 - ANSWER -
CODE - 1.2
OUTPUT - 1.2
CODE - 1.3
OUTPUT - 1.3
III - WRITE THE FOLLOWING GIVEN PROGRAMS
B. Enter three numbers from the user. Find out the largest
and smallest number out of it. (Code is on the next page)
C. Enter the value for the side or a radius to execute
menu driven proven.
1. Area of circle [Hint: Pi * R * R]
2. Area of Rectangle [Hint: Length * Breadth * Height]
IV - FILL IN THE BLACKS WITH THE
CORRECT OPTION
1. The ____________ constructs means the execution of
statement(s) depending upon a condition-test.
I. Sequence
II. Selection
III. Iteration
ANSWER - SELECTION
2. _______________ in Python is very important for compounds
statements.
I. Indentation
II. Documentation
III. Adjustment
ASNWER - INDENTATION
3. The _______________ function of Python generates a list
which is a special sequence type.
I. list()
II. Sequence()
III. Range()
ANSWER - RANGE ()
4. A __________ statement is useful in those instances where
the syntax of the language requires the presence of a
statement but logic of the program does not.
I. Vacuum
II. pass
III. Empty
ANSWER - PASS
5. Which statements allows a set of instructions to be
performed repeatedly?
I. Iteration
II. Selection
III. Sequence
ANSWER - ILERATION