II Month XI B

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

2nd Monthly Examination

Class: XI
Subject: Computer Sc.(083)
Set-B

Duration: Full Mark: 35


1. Answer Any Ten of the followings: (Very Short Answers) [10X 1= 10]
a. Suppose Z = 0x1F is declared in python. What is the type of literal X is assigned?
b. Y= (23,67, 44,12,True) is declared in python, which of the correct about Y?
(a) Tuple (b) List (c) Dictionary (d) string
c. Which one of the following is not a valid declaration of dictionary?
(a) Student={‘roll’:1,’name’:’Rajib’,’address’:’Berhampur’}
(b) Student=[‘roll’:1,’name’:’Rajib’,’address’:’Berhampur’]

d. A tuple is declared as T = (23,6,45,9,20,12) . What will be the value of max(T)?


e. Suppose a string S is declared as S = “AVAILABLE”. Find the incorrect statement (s) from the
following.
a) print(S[3])
b) S[0] = ‘T’
c) print(S[:]))
d) S=”UN”+S
f. Identify the valid relational operators from the list given below.
(a) += (b) <= (c) << (d) >
g. Write the type of Python tokens (keywords and user defined identifiers) from the following: (a)
While (b) else (c) False (d) My file
h. What are the membership operators? What are the return types?
i. Given List X=[10,12,14,20,22,24,30,32,34] what is the output of print(X[1:5])
j. What is browser? Give example of any one.
k. When was the IT Act enacted in India?
2. Answer All the followings (Short Answers) [6X2=12]
a. Differentiate between Application software and System Software.
b. What is computer Virus? How it affect to a computer?
c. Evaluate the following expressions
(a) 8+4*5+5//2**3-12
(b) 5<20 or 7>90 and not 67 >50
d. Rewrite the following code after removing the syntactical errors (if any). Underline each
correction.

30=To
for K in range(0,To)
IF k%4==0:
print (K*4)
Else:
print (K+3)
e. Suppose user input is 65, what is the output? Also specify the min and max value of t when i is 2.
import random as rnd
a=int(input("Enter a number"))
for i in range(4):
t=rnd.randint(0,i)
guess=chr(a+t)
print(guess,end='')

(i)ABCC (ii) AABAA (iii) BAD (iv) FBAA


f. Find the output of following code in python:
for I in range(50):
print(I)
if I % 5 ==0:
break;
else:
print(‘over’)
3. Answer any Three of the followings [3 X 3 = 9]
a. Write a program to accept principal, time and rate and calculate simple interest.
b. Write a program to print the following pattern:
321
32
3
c. Write a program to find sum of all odd numbers within 1 to 50.
d. Write a program to find factors of a given no. for e.g. given no. is 20. Factors are 1,2,5,10,20
4. Answer any 1 of the followings [1 X 4=4]
a. Write a program to check whether a given no. is palindrome or not. A number is said to be palindrome is
the digits are reversed and you get the same number. E.g. 454
b. Write a program to accept marks in 3 subjects and print result on the following condition:
% of mark Result
35 to 49 3rd division
50 to 59 2nd division
60 or above 1st division
Otherwise fail
c. What is Identity theft? How to protect one’s Identity?
d. Write a short note on gender issues while learning computer.

You might also like