Rams Supplementary 1
HOLY ANGELS’ GIRLS MAT. HR. SEC. SCHOOL
XII STD/ COMPUTER SCIENCE
HALF YEARLY EXAMINATION – DEC.2020
Time Allowed: 3 HRS. Maximum Marks: 70
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PART – I
Note: (i) All questions are compulsory. 15 x 1 = 15
(ii) Choose the most appropriate answer from the given four alternatives
and write the option code with the corresponding answer.
1. Python files are by default saved with the extension as
(a) .Pyt (b) .txt
(c) .Pt (d) .Py
2. What is the output of the following expression?
(50>40) and (50==40)
(a) 1 (b) 0
(c) False (d) True
3. The output of the segment is
for i in range(10, 0, 2)
print (i)
(a) 10 8 6 4 2 0 (b) 10 8 6 4 2
(c) 0 2 4 6 8 10 (d) Error
4. The positive and negative index values of ‘P’ in the string Str1=”COMPUTER” are
(a) 3,-4 (b) 4,-4
(c) 3,-5 (d) 4,-5
5. Which of the following set operation includes all the elements that are in two sets
but not the one that are common to two sets?
(a) Symmetric difference (b) Difference
(c) Intersection (d) Union
6. The keys in Python, dictionary is specified by
(a) = (equal to) (b) ; (semi-colon)
(c) + (plus) (d) : (colon)
7. A variable prefixed with double underscore is becomes_____ in nature.
(a) Private (b) Public
(c) Protected (d) Static
8. Which of the following method is automatically executed when an object is
created?
(a) _ _del_ _( ) (b) _ _start_ _( )
(c) _ _init_ _( ) (d) _ _object_ _( )
Answers
Answered by
2
Answer:
I now the answer but how to write here
Similar questions