0% found this document useful (0 votes)
31 views4 pages

XIInfo Pract H Y 301

Practical paper for class xii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views4 pages

XIInfo Pract H Y 301

Practical paper for class xii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

)‫الـشـارقـة (فرع البنين‬، ‫مدرسـتنـا الثـانـويـة اإلنـجليـزية‬

OUR OWN ENGLISH HIGH SCHOOL,


SHARJAH ( BOYS’ BRANCH)

TERM1 EXAMINATION, OCT 2020


INFORMATICS PRACTICES

Name: Max Marks: 35


Class: XI Duration: 1 hrs 30min
Sec: Date: 11/10/2020

General Instructions:
(i) All questions are compulsory.
(ii) Programming language: Python
(iii) This paper consists of 4 pages.
______________________________________________________________________________
1)a) Explain IPO cycle with the help of a block diagram of computer organization. [1]

b) Differentiate between SRAM and DRAM [1]

c) Rajesh download a Puzzle game on his laptop. He was prompted with 2 options “Run” and [1]
“Save” the file. He clicked on “Run” , some files processed and launched the game . Can you
identify which of the following files helped Rajesh to launch the game.
i) Puzzle.txt
ii) Puzzle.dll
iii) Puzzle.exe

d) How ASCII-7 is different from ASCII-8? [1]

e) Name the following: [1]


i) The part of system bus that carries instructions _______
ii) Antivirus, Disk Defragment are examples of ___

2)a) Evaluate the following expression: [1]


48 % 3 ** 3//5 +2

b) Write a program to convert the time entered as minutes to Hours : Minutes format. [1]
Example :
Enter the time in minutes: 66
Hours : Minutes
1 : 6

c) Find the output of the following statements : [1]


i) print(‘Learning\nIP’)
ii) print(100+False)
Page 1 of 4
d) Find the ouutput. [1]
a,b,c=20,40,60
b+=10
c+=b
print(b,c)

e) Rewrite the following code in python after removing all syntax error(s). [2]
Underline each correction done in the code.
a,b=10=10
c=a+b
While c=<20:
print(c , End = “*”)
c+=10

3)a) Fill in the blanks to execute loop from 10 to 100 and 10 to 1 [1]
i) for I in range (___________):
print(i)
ii) for I in range(____________):
print(i)

b) Write a program to generate the following pattern. [2]


D
d a
d a n
d a n c
d a n c e

c) Convert the following code using while loop. [2]

L=[90,"Saamil",67,"Raashid",100,"Raj"]
for i in range(len(L)):
if i%2==0:
print(L[i])

d) Write the output from the following code: [1]


s = 'Indian FESTIVALS'
i=0
while i<len(s):
if (s[i].islower()):
print (s[i].upper(), end=“ “)
if (s[i].isupper()):
print s[i].lower(), end=“ “)
i + =1

e) Write a program to input any string with space and convert lowercase to uppercase and vice [2]
versa. And space must be replaced with ‘@’.

Page 2 of 4
Example : Enter the string : OOB gemsedu
Converted string: oob@GEMSEDU
4a) Write a program to accept a first name, middle name and Last name of an employee and [1]
display only the first letter of first and middle name with complete last name as shown in the
below example.
Example :
Enter Name : Raj Kumar Sharma
Output : R.K.Sharma

b) Differentiate string from a list with a good example. [2]

c) Write a program to count the number of vowels in a string. [2]


Example :
Enter a string : COVID19 IS A Pandemic
Number of vowels are : 7

d) What will be the output of the following code? [2]

str=”Hello Python”
print(str)
print(str[0])
print(str[2:8])
print(str[3:])
print(str*2)
print(str+”string”)

e) Find the output for the following code. [2]

a=”informatics4.com”
for i in range(len(a)):
if (a[i].isalpha()):
print(a[i-1],end=’’)
if (a[i].isdigit()):
print(a[i],end=’’)

5)a) Write a program to input a sequence of numbers from a user and find the largest number . [2]

Example :
Enter the elements : [5,20,100,34,78,99]
Largest Number : 100

b) Rahul has executed the following code to retrieve the position “Saahil” in the given list. Help [2]
Rahul to search the position of “Saahil”.

L=[“Abhiram”,”Aadil”,”Basheer”,”Saahil”,”Furqan”]

Output: Saahil is secured 4th position in running.

Page 3 of 4
c) Write a menu driven program to enter the price of each item in a list. If the customer pays 500 [3]
AED , then the bill should generate as shown below.

Example:

Enter the price of Item:78

Do you want to continue (y/n):y

Enter the price of Item:100

Do you want to continue (y/n):y

Enter the price of Item:67

Do you want to continue (y/n):n

************BILL*************
Number of items: 3
Item of highest price: 100
Total: 245
Balance: 255

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

Page 4 of 4

You might also like