Ip Holiday Homework

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

DELHI PUBLIC SCHOOL BHOPAL

IP HOLIDAY HOMEWORK

NAME - ASHWIN CHHAWANIYA


CLASS AND SECTION - 11TH ____
SCHOLAR NUMBER - 5543
SUBJECT - INFORMATION PRACTICES (IP)

I - FIND THE ERRORS OF THE GIVEN CODE -

Q 1 - ANSWER -

Q 2 - ANSWER -
Q 3 - ANSWER -

II - GIVE THE OUTPUT OF THE GIVEN


PROGRAMS
CODE - 1.1
OUTPUT - 1.1

CODE - 1.2

OUTPUT - 1.2
CODE - 1.3

OUTPUT - 1.3
III - WRITE THE FOLLOWING GIVEN PROGRAMS

A. Enter a character and check whether the entered


character is in uppercase, lowercase or it is not a
character. [Hint: ASCII value for ‘A’=65 and ‘B’=90;
‘a’=97 and ‘z’=122’]

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

You might also like