You are on page 1of 3

DAV PUBLIC SCHOOL, HCL, RUPNARAINPUR

COMPARTMENTAL EXAMINATION: 2019 – 2020


SUB: COMPUTER SCIENCE F.M: 35
CLASS: XI TIME: 1 Hr.

• All question are compulsory

Choose the correct option:


1. Python is a/an_______________ language. 1
A. Compiled B. Interpreted C. Compiled & Interpreted D. None of these
2. Single line comment in python begin with __________ symbol 1
A. % B. “ C.“’ D. #
3. Software that level converts a high language into machine understandable form is 1
A. Language Processor B. RAM C. utility Software D. None of these
4. 1 kilo byte = ________ 1
A. 1024 byte B. 1024 megabyte C. 8 byte D. 1024 Giga byte
5. ___________ is called volatile Memory 1
A. ROM B. RAM C. Secondary memory D. Pen drive
6. The fundamental building block of a python program is known as 1
A. Identifier B. Constant C. Punctuator D. Tokens
7. Convert (43)10 to Binary 1
A. (101011)2 B. (110011)2 C. (11101)2 D. (001100)2
8. Convert(423)10 to Hexadecimal 1
A. (1A7)16 B. (7A1)16 C. (A17)16 D. (A71)16
9. _________refers to storing and accessing data and programs over the Internet instead 1
of computer’s hard drive
A. Cloud computing B. Parallel computing C. FCFS D. None of these
10. What will be the output of the following code 1
Str1=’Computer Science’
Str2 =Str1(3:7)
Strlen1=len(str2)
print(strlen1)
A. 4 B. 16 C. 13 D.3
11. What is the use of append() function in list 1
A. It adds an item to the end of list.
B. It adds an item at the beginning of the list.
C. It adds an item anywhere in the list.
D. All of these.
12. The number of tuples in a relation is called______ 1
A. Degree B. Attribute C. Cardinality D. Record
13. What will be the attribute of the following snippet? 1
x,y=2,6
x/y=y,x+2
print(x,y)
A. 66 B. 44 C. 46 D. 64

Page 1 of 3
14. Unauthorized monitoring of other people’s communication 1
is called ________
A. Phising B. Pharming C. Evasdropping D. DOS
15. Which of the following is correct syntax of string slicing 1
A. stringname[start:end] B. stringname[start:step]
C. stringname[step:end] D. stringname[step:start]
16. Which of the following is not a loop statement in python 1
A. do-while B. while C. for D. All of these
17. A graphical representation of an algorithm to solve a given problem 1
is known as
A. Pie chart B. Flow Chart C. Bar chart D. Column Chart
18. To create an empty dictionary we use 1
A. d1={ } B. d1=[ ] C. d1=( ) D. All of these
19. Python takes ________ indented pace at the function declaration statement by default 1
A. 5 B. 4 C. 6 D. 3
20. Which of the following is not a python legal string operation 1
A. ‘abc’+’abc’ B. ‘abc’* 3 C. ‘abc’+3 D.’abc’.lower()
21. How many times the word ‘python’ printed in the following code. 1
S=’ I Love python’
for ch in S[3:8]:
print(‘pyhton’)
A. 11 B. 8 C. 3 D. 5
22. Which method removes all the trailing white spaces from the right of the string. 1
A. tolower() B. upper() C. lstrip() D. rstrip()
23. Which data model uses table 1
A. Relational B. Network C. Hierarchical D. None of these
24. Throughput=_________ 1
A. No of job completed/time taken B. No of job completed+time taken
C. No of job completed*time taken D . None of these
25. _______statement abandons the current iteration of the loop by skipping over the rest 1
of the statements in the loop body
A. continue B. break C. if-else D. None of these
26. ________ refers to some contradictory or unusual situation which can be encountered 1
unexpectedly while executing a program.
A. Error B. Exception C. Debug D. None of these
27. Mutable data types are 1
A. List B. Dictionaries C. Tuple D. Both A and B
28. Which of the following sorting methods will be the best if the number of swapping 1
done, is the only measure of efficiently considering the fact that the sequence size is
not very large?
A. Bubble sort B. Insertion sort C. Selection sort D. None of these
29. In __________ sort , each successive element is picked & inserted a an appropriate 1
position in the previously sorted array.
A. Insertion B. Bubble C. Selection D. Both A & B
30. This function returns true if a tuple is having at least one item. 1
A. any( ) B. count() C. len( ) D. min( )

Page 2 of 3
31. Grant and Revoke are ________ commands 1
A. DDL B. DML C. DCL D.TCL
32. VARCHAR data type can store maximum of _________ characters 1
A. 65,535 B. 66,535 C. 65,635 D. 65,536
33. _________ is known as range operators in my sql. 1
A. IN B. DISTINCT C. IS D. BETWEEN
34. Which statement/construct is use to handle an exception in python 1
A. if-else B. try-except C. Both A& B D. None of these
35. What is the name of the IT-law that India is having in the Indian legislature 1
A. Indian technology (IT)Act , 2000 B. Digital Information Technology Act,2000
C. Information Technology (IT) Act, 2000 D. The Technology Act,2000
*****

Page 3 of 3

You might also like