You are on page 1of 2

INDIRA GANDHI MEMORIAL HIGH SCHOOL

HALF YEARLY EXAMINATION


2022-23
CLASS: XI
TIME: 3 HRS 15 MIN. SUBJECT: INFORMATICS PRACTICES (065) F.M: 70

1. FIND THE OUTPUT OF THE FOLLOWING:


a. a, b = 2, 6 b. a =3 (2x10)
a, b, b = a + b, 2, 3     b =4
print(a, b)     print(a + b%2 + a**2)

c. a =3 d. eval('15')
   b =4      eval("6")
   print(a + b%2 + a**2)      eval(7)
    eval("5 + 8 * 6)
e. f. str=’My Blog’
str1 = "Welcome \tto my Blog"     a=’ ‘
str2 = "Welcome to\n my \tBlog”     for i in range(len(str)):
print(str1)                            a+=str[i]
print(str2)      print(a)

g. str1 = "Welcome to my Blog" h.x=5


a. print(str1[-1]) while(x<15):
b. print(str1[9]) print(x**2)
x+=3

i.i=0 j. str="hello"
while i<3: print(str[:3])
print(i)
i=i+1
else:
print(7)

2. Write a program to print the following pattern without loop. 3


*
**
***
****

3. Write a program to print first 10 even numbers in reverse order. 3


4. Write a program to enter a decimal number and convert into binary 3
number.
5. Write the output of the following: (2x5)
b = “Practice Questions of List in Python “
a=list(b)
1. print(a[1:7:2])
2. print(a[-5:])
3. print(a[:4])  
4. print(a[-2:-5:-2])
5. print(a[11:15])
6. Convert the following: (2x5)
1. (76F)16 = (?)10
2. (4D9)16 = (?)10
3. (11001010)2 = (?)10
4. (1010111)2 = (?)10
5. (220)8 = (?)2
7. Write a program to swap two numbers without using third variable. 3
8. What do you mean by EPROM and EEPROM. 3
9. Differentiate between primary memory and secondary memory. 3
10. Write a program to a number is palindrome or not. 3
11. An amount of 150000 deposited into bank paying an annual interest rate 3
of 8.5% compounded quarterly. Find the balance after 6 years.
12. Differentiate between system software and application software. 3
13. Write down a python program to read Celsius temperature and convert 3
into Fahrenheit temperature.

************************

You might also like