Sei sulla pagina 1di 5

Std : XI Computer Science Marks : 75

Time : 1.1/2hr
I. Choose the correct answer: (75 x 1 = 75 )
1. Read the following code: Identify the purpose of this code and choose the right
option from the following.
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip list
a. List installed packages b. list command c. Install PIP d. packages installed
2. To install matplotlib, the following function will be typed in your
command prompt. What does “-U”represents?
Python –m pip install –U pip
a. downloading pip to the latest version b. upgrading pip to the latest version
c. removing pip d. upgrading matplotlib to the latest version
3. Observe the output figure. Identify the coding for obtaining this output
a. import matplotlib.pyplot as
plt plt.plot([1,2,3],[4,5,1])
plt.show()
b. import matplotlib.pyplot
as plt plt.plot([1,2],[4,5])
plt.show()
c. import
matplotlib.pyplot as plt
plt.plot([2,3],[5,1])
plt.show()
d. import
matplotlib.pyplot as plt
plt.plot([1,3],[4,1])
plt.show()
4. Which key is used to run the module?
a.F6 b. F4 c. F3 d. F5
5. Identify the right type of chart using the following hints.
Hint 1: This chart is often used to visualize a trend in data over intervals of
time. Hint 2: The line in this type of chart is often drawn chronologically.
a.Line chart b. Bar chart c. Pie chart d. Scatter plot
6. Read the statements given below. Identify the right option from the following for
pie chart.
Statement A: To make a pie chart with Matplotlib, we can use the plt.pie() function.
Statement B: The autopct parameter allows us to display the percentage value using
the Python string formatting.
a.Statement A is correct b. Statement B is correct
c. Both the statements are correct d. Both the statements are wrong
7. Data abstraction concept allows programmers to treat code as____________.
a) Statement b) Function c) Object d) Variable
8. ADT means___________.
a) Adaptive Technology b) Advanced Technology
c) Abstract Data Types c) Advanced Data Types

9. To facilitate data abstraction, programmer need to create ___________ types of functions.


a) One b) Two c) Three d) Four
10. := is called as _________.
a) Equal b) Colon operator c) Assigned as d) Same.
11. ____________ offer a high level view.
a) Abstract Data Type b) Concrete Data Type
c) Primary Data Type d) None of the above.
12. Identify the constructors from the above code
a) get name (city) b) get lat (city) c) get lon (city) d) city=make city
13. Identify the selectors from the above code.
a) city b) get name (city)
c) make city (name,lat,lon) d) None of the above
14. The text which is given in __________ is optional in define a function.
a) ( ) b) { } c) [( )] d) [ ]
15. In python program functions help use to ________ a program into modules.
a) form b) slicing c) divide d) grouping
16. ________ can be passed to function in python programming language.
a) parameters b) values c) arguments d) both a and c
17. Def area (w, h):
return w h
print ( area ( 3,5 ) )
In the above program which is a parameters
a) w b) 3,5 c) h d) both a and c
18. In how many types of call a function arguments.
a) 4 b) 6 c) 8 d) 2
19. In how many methods to pass the arguments in variable length identification.
a) 8 b) 6 c) 4 d) 2
20. Every variable defined in a program has ____________.
a) File scope b) Local scope c) Function scope d) Global scope
21. How to assign the same value to the different variable if a:=5. another one variable is b.
a) b=a b) a=b c) b:=a d) b:==a
22. Disp ( ):
a:=7
Print a
Disp ( )
23. Which scope used in the above code
a) File scope b) Class scope c) Local scope d) Function scope
a:=10
Disp( )
a:=7
Print a
Disp 1 ( ):
Print a
24. Which scope used in the above code
a) Enclosed scope b) Built – in scope c) Local scope d) Global scope
Disp ( )
a:=10
Disp 1 ( ):
Print a
Disp 1 ( ):
Print a
Disp ( )
25. What is the output of the above program.
a) 5 5 b) 15 15 c) 10 10 d) 20
26. When we start the compiler or interpreter. Which scope pre – loaded into the program scope____.
a) Enclosed b) Global c) Local d) Built – in
27. A module is a part of a ___________ programs are composed of one or more independently
developed modules.
a) Code b) Set of program c) Program d) Project
28. A named blocks of code that are designed to do one specific job is called as
a) Loop b) Branching c) Function d) Block
29. Which of the following keyword is used to exit a function block?
a) define b) return c) finally d) def
30. The subscript of a string may be:
a) Positive b) Negative c) Both (a) and (b) d) Either (a) or (b)
31. We need to skip a segment or set of statements and execute another segment based on the test
condition. This is called __________
a) Programs b) Alternative c) Branching d) both b and c
32. A program statement that causes a jump of control from one part of program to other is called
__________ Structure.
a) Control b) Continue c) Both a and b d) None of these
33. How many types of control structures?
a) 1 b) 2 c) 3 d) None of these
34. Which is an example for sequential statements?
a) Name b) Address c) Phone number d) All of these
35. _________ is a simplest of all decision making statements.
a) if else b) simple if c) If elif d) Both a & b
36. if < Conditions> :
Statements – block 1
The above syntax is which statements?
a) Alternative b) if else c) Simple if d) None of these
37. _________ statements provides control to check the true as well as false block.
a) Simple b) If else c) If elif d) None of the
38. If else statement provides __________ possibilities.
a) 1 b) 4 c) 2 d) 3
39. _________ clause can be used instead of else.
a) Else b) Elif c) If d) None of these
40. A _______ is used to only help make the code look pretty.
a) Indentation b) Program c) Code d) None of these
41. A list element position of an index number beginning with ______________.
a) 0 b) 1 c) −1 d) 0 and 1
42. Accessing list element value is __________.
a) + b) − c) Both a and b d) Either a or b
43. _____________function is used to set the upper limit in a loop to read all the elements.
a) Count ( ) b) len ( ) c) index position ( ) d) append ( )
44. >> squares = [X ** 2 for X in range (1,11)]
>> print [squares [(1, 11)] what is the output in above code.
a) [1,4,9,16,25,36,49,64,81,100 ] b) [1,2,6,8,10,12,14,16,18,19,20 ]
c) [1, 3,6,9,12,15,18,21,23,25] d) [1,2,3,4,5,6,7,8,9,10]
45. Which function returns the numbers of similar elements present in the last?
a) Copy ( ) b) Count ( ) c) Sort ( ) d) Reverse ( )
46. We can create any series of values using __________function.
a) len( ) b) Count ( ) c) range ( ) d) append( )
47. The term Tuple is originated from the _________represents an abstraction of the sequence of numbers.
a) Tamil word b) Graka word c) Latin word d) English word
48. Creating a Tuple with one element is called_____.
a) single tuple b) two tuple c) singleton tuple d) declaration tuple
49. Which one is a powerful feature in python.
a) list b) tuple assignment c) sets d) dictionaries
50. To remove the dictionary you can use _________with dictionary name.
a) remove keyword b) delete keyword c) del keyword d) erase keyword
51. Which loop checked in the beginning and the body of the loop
a) if else b) if .. elif c) while, for d) do.. while
52. For i in range (2,20,2)
print ( i, end = ‘ ’ )
What is the output of the program.
a) 2,4,6,8,10 b) 2,4,6,8,10,12,14 c) 2,4,6,8,10,12,14,16,18 d) 2,4,6,8,14,16,18
53. __________ is important in loop and other control statement.
a) quote b) space c) indentation d) block
54. __________ statement in python is used to unconditionally transfer the control from one part to
another
a) if b) else if, if elif c) jump d) break, pass
55. __________ can also take values from string, list, dictionary
a) function ( ) b) loop ( ) c) statement ( ) d) range ( )
Answer the following question’s from (85-90)
while(i<=16)
for j in range (1,i):
print( j, end =’\t’)
print (end = ‘\n)
i+1
56. What type of scope used in the program
a) local b) enclosed c) global d) local
57. What type of loop used in the program
a) Entry check b) Exit check c) Both a and b d) Statement only
58. What is the function using
a) concatenation ( ) b) Append ( ) c) Repeating d) Format ( )
59. What is the output of the program
a)6,7,8,9,10,11,12,13,14,15,16
b)6,8,10,12,14,16,18
c)9,11,13,15,17
d)6,7
6,7,8
6,7,8,9
6,7,8,9,10
6,7,8,9,10,11
6,7,8,9,10,11,12
6,7,8,9,10,11,12,13
6,7,8,9,10,11,12,13,14
6,7,8,9,10,11,12,13,14,15
6,7,8,9,10,11,12,13,14,15,16
60. ___________ statement in python programming is a null statement.
a) break b) continue c) pass d) jump
61. A tuple is also known as
a) field b) table c) attribute d) row
62. ____________module in python provides a way of using operating system dependent
functionality.
a) get off b) system c) operating system d) Both b and c
63. The _________is used to print the data in dictionary format without order.
a) csv reader( ) b) Dict reader ( ) c) csv writer ( ) d) function dict ( )
64. __________method used to write all the data at once again you can writer( ).
a) write( ) b) write row ( ) c) write rows( ) d) read write( )
65. The __________components provides authorization commands to access data in python.
a) DDL b) DCL c) TCL d) DQL
66. ________is help us to uniquely identify a record in structure query language.
a) unique constraint b) default constraint c) primary key constraint d) check constraint
67. A Database Normalization was proposed by ___________.
a) Dr. Chen E codd b) Dr. Chend E codd c) Dr. Chand F codd d) Dr. Edgar F codd
68. In which data model used in IBM and main frame computers.
a) object model b) hierarchical modelc) relational model d) network database model
69. __________are also called as instances of a class or class variable.
a) object b) method c) function d) module
Set A = {‘A’, 2,4,’D’}
Set B = {‘A’, ‘B’, ‘C’, ‘D’}
Print (Set – A – Set – B) What will be the output?
a) {A,B} b) {2,4} c) {C,D} d) {A,D}
70. Match it:
a) function union ( ) - 1) &
b) Difference operator - 2) (^)
c) Intersection - 3) (-)
d) Symmetric-difference - 4) |
a) a – 4 , b – 3, c – 1 , d – 2 b) a – 2 , b – 3, c – 1 , d – 4
c) a – 3 , b – 4, c – 1 , d – 2 d) a – 4 , b – 1, c – 3 , d – 2
71. The data dictionary/repository contains:
A) all the data contained in the database
B)definitions of all the tables, columns, data domains and assumptions used in the database
C)help files for working with databases D)all of the above
72. The term for information that describes what type of data is available in a database is:
A)data dictionary B)data repository C)index data D)metadata
73. What is the benefit of using a query language rather than a nature language to get information out
of a database?
A)Query languages allow the user to pose unstructured, open ended queries
B)Query languages are more flexible than natural language
C)Query languages are more precise so there is less room for misinterpretation
D)There is no benefit of query languages over natural languages for getting information out of a
database.
74. Which of the following is not true about the Query by Example (QBE) method of accessing data in
a database?
A)Can totally replace the need to learn and use SQL
B)Easier for beginners to use than SQL C)Provides a visually-oriented tools to query the database
D)All of the options above are true.
75. Which of the following is not one of the primary tasks of a query language?
A)Change and manage the information stored in the database
B)Define the structure of the database C)Locate and retrieve data contained in the database
D)All the above are primary tasks of a query language

Potrebbero piacerti anche