11 Ip KV Secl Dhanpuri Hly
11 Ip KV Secl Dhanpuri Hly
KV SECL DHANPURI
INFORMATICS PRACTICES (065)
HALF YEARLY EXAMINATION 2020-21
CLASS: XI
Time: 3 Hrs Max.Mark: 70
General Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
2. Part-A has Multiple choice Question/short answer questions, to be answered in one word or one
line or one option is to be selected.
3. Part - B is Descriptive Paper which have some internal options.
(ii) Name the two modes to do programming in Python. Give any one difference 2
between them.
(iii) Differentiate between Keywords and Identifiers with the help of 2
suitable examples.
(iv) Write the corresponding Python assignment statements. 2
Assign 10 to a variable height and 20 to a variable weight
Assign the sum of height and weight to a variable total.
Q.23 Identify the following identifiers as valid/invalid in Python.
(i) Total_Marks 2
Total$Marks
1st_class
_average
(ii) What are comments? Why do we use comments in Python Programming? Explain 2
with Example.
(iii) Identify the types of following python literals? 2
23.789 “TRUE” 1232
False
(iv) Give the output of the following when num1=4,num2=3,num3=2 1
num1 = num2 + num3 print (num1)
(v) Which of the following are syntactically correct strings ? “Informatics Practices” 2
“Stay safe stay healthy’ ‘Social distancing’
“ Examination
Q.24 The following code is not giving desired output. We want to input value as 10 and
(i) obtain output as 20(10+10). Identify the error in the below code and Re-write the
code underlining each correction.
number=input(“Enter Number”) 1
changenum=number+10 print(changenum)
(ii) What will be the output given by following code? value1 =”Avoid” 1
value2 = “Crowded” print(value1,”going to”,value2,”places”)
(iv) What will be the output given by following python code statements ? 2
(i) print(17 % 5)
(ii) print(25%5 + 7 >= 9//2) (iii)print(“Hello”+”World”)
(iv)print( 6**2 > 32//2 and 5**2==25)
(v) Write a Python Program to find the smallest of three number. 3
(vii) Write a program to find the sum of first 100 natural number 3
(viii) Write a program to input date and display the date in Gregarian format: 4
Example: if input is
23/12/2020
The output is
23 rd December 2020
(ix) Write a program to input two time and display the added time. 5