NEW
Font size
WorksheetsTout Your Talent
Total questions: 80
Worksheet time: 3600secs
What is the output of the function shown below?
import math
abs(math.sqrt(25))
Error
5
5
5.0
Which of the following statements is true?
The standard exceptions are automatically imported into Python programs
All raised standard exceptions must be handled in Python
When there is a deviation from the rules of a programming language, a semantic error is thrown
If any exception is thrown in try block, else block is executed
Compare the two codes shown below and state the output if the input entered in each case is -6?
CODE 1
import math
num=int(input("Enter a number of whose factorial you want to find"))
print(math.factorial(num))
CODE 2
num=int(input("Enter a number of whose factorial you want to find"))
print(math.factorial(num))
ValueError, NameError
AttributeError, ValueError
NameError, TypeError
TypeError, ValueError
Which of the following is not a valid mode to open a file?
ab
rw
r+
w+
What is the use of truncate() method in file?
truncates the file size
deletes the content of the file
deletes the file size
none of the mentioned
6. What is an interpreter?
An interpreter does the conversion line by line as the program is run
An interpreter is the representation of the system being designed
An interpreter is a general purpose language providing very efficient execution
None of the above
What does math.sqrt(X, Y) do?
a) calculate the Xth root of Y
b) calculate the Yth root of X
c) error
d) return a tuple with the square root of X and Y
DeMorgan’s theorem states that _________
(AB)’ = A’ + B’
b) (A + B)’ = A’ * B
c) A’ + B’ = A’B’
d) (AB)’ = A’ + B
What is the order of namespaces in which Python looks for an identifier?
a)Python first searches the global namespace, then the local namespace and finally the built-in namespace
b)Python first searches the local namespace, then the global namespace and finally the built-in namespace
c)Python first searches the built-in namespace, then the global namespace and finally the local namespace
d)Python first searches the built-in namespace, then the local namespace and finally the global namespace
_____ is a string literal denoted by triple quotes for providing the specifications of certain program elements.
a)Interface
b)Modularity
c)Client
d)Docstring
Which of the following is not an advantage of using modules?
a)Provides a means of reuse of program code
b)Provides a means of dividing up tasks
c)Provides a means of reducing the size of the program
d)Provides a means of testing individual parts of the program
Is Python code compiled or interpreted?
a)Python code is only compiled
b)Python code is both compiled and interpreted
c)Python code is only interpreted
d)Python code is neither compiled nor interpreted
What is the output of the following? x = ['ab', 'cd'] print(list(map(list, x)))
a) [‘a’, ‘b’, ‘c’, ‘d’].
b) [[‘ab’], [‘cd’]].
c) [[‘a’, ‘b’], [‘c’, ‘d’]].
d) none of the mentioned
Which keyword is use for function?
a) Fun
b) Define
c) Def
d) Function
Which is the Act which provides legal framework for e-Governance in India
a.IT (amendment) Act 2008
b.Indian Penal Code
c.IT Act 2000
d.None of the above
What does e- waste stand for?
A. Environment waste
B. Electronic waste
C. Equipment waste
D. None of the above
We apply the aggregate function to a group of sets of tuples using the _______ clause.
a) group by
b) group
c) group set
d) group attribute
The term IPv4 stands for?
Internet Protocol Version 4
Internet Programming Version 4
International Programming Version 4
None of these
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
Which of the following provides the ability to query information from the database and insert tuples into, delete tuples from, and modify tuples in the database?
DML(Data Manipulation Language)
DDL(Data Definition Language)
Query
Relational Schema
According to Coulomb’s law, the electrostatic force between two charges is
inversely proportional to the product of the charges
inversely proportional to the square of the distance between the charges
directly proportional to the cube of the distance between charges
none of these
According to the modern theory of nature of light, the light has
wave nature only
particle nature only
both wave and particle (dual) nature
neither particle nature nor wave nature
The most commonly used semiconductor is
Germanium
Silicon
Carbon
Sulphur
An endoscope is used by a physician to view the internal parts of a body organ. It is based on the principle of
refraction of light
reflection of light
total internal reflection of light
dispersion of light
The physical quantities have the dimensions of [ML-1T-2] will be
Velocity
Force
Acceleration
Pressure
For proper operation of the transistor, its collector should have
Proper forward bias
Proper reverse bias
Very small size
None of the above
Which of the following is a unique property of laser?
Directional
Speed
Coherence
Wavelength
Food gets cooked faster in a pressure cooker because
water starts boiling at a lower temperature due to high pressure
water starts boiling at a higher temperature due to high pressure
water boils only at 100°C but the heat content is higher at high pressure
convection currents are set inside the cooker
It is more comfortable to wear white cloths in summer because
they reflect heat falling on them
they radiate heat transferred from the body.
they absorb perspiration.
they are soothing to the eye.
Which one of the following statements is not true about cosmic rays?
They have very high frequency.
They have very high wavelength.
They are made of highly energetic charged particles.
They originate from the sun.
Pendulum clocks become slow in summer because
days in summer are large
of the friction in the coil
the length of the pendulum increases
the weight of the pendulum changes.
The minimum height of a plane mirror to see the full size image of a person is equal to
the height of the person
half the height of the person
1/4th the height of the person
double the height of the person
Magnetic resonance imaging is based on the phenomenon of
nuclear magnetic resonance
electron spin resonance
electron paramagnetic resonance
diamagnetism of human tissues
A man is standing on a boat in still water. If he walks towards the shore, the boat will
move towards the shore
move away from the shore
remain stationary
sink
With forward bias to a p-n junction, the width of depletion layer
Decreases
Increases
Remains the same
None of the above
Newton’s law of motion gives the measure of
Force
Acceleration
Momentum
Impulse
Electric motor is a device which converts electric energy into
Potential energy
rotational energy
kinetic energy
rotational kinetic energy
In a transistor, emitter current is
slightly more than collector
slightly less than collector
equal to collector
equal to base current
It is more comfortable to wear white cloths in summer because
they reflect heat falling on them
they radiate heat transferred from the body.
they absorb perspiration.
they are soothing to the eye.
Rate of change of momentum is equal to
Acceleration
Work done
Force
Impulse
A rational number which is 50 times its own logarithm to the base 10 is
1
10
100
1000
If X and Y are two sets then
X∩(X∪Y)C equals
X
Y
Φ
None of These
∫(x−1)e−xdx is equal to
–xex+C
xex+C
–xe−x+C
xe−x+C
The solution of the differential equation dxdy=by+fax+g represents a circle when
a = b
a = -b
a = -2b
a = 2b
Distance between two parallel planes 2x+y+2z =8 and 4x +2y +4z+5 =0 is
3/2
5/2
7/2
9/2
A bag contains 5 black balls, 4 white balls and 3 red balls. If a ball is selected random wise the probability that it is black or red ball is
1/3
1/4
5/12
2/3
The third term of a G.P. is 2, and then the product of first five terms is
23
24
25
None
In a college of 300 students, every student reads 5 newspapers and every newspaper is read by 60 students. The number of newspapers is
(a) At least 30
(b) at least 20
c) exactly 25
(d) None
Differentiate x3sin2x with respect to x.
(a) 3x2 sin2x + x3sin2x
(b) 3x sinx + x3 sin2x
(c) 3x2 sin3x + x2 sin4x
(d) 3x2 sin2x + x2 sin3x
Let A be a square matrix satisfying
A2 + 5A + 5I = 0, the Inverse of A + 2I is equal to
(a) A - 2I
(b) A + 3I
(c) A - 3I
(d) Non-Existent
The number of 3 digit numbers containing the digit 7exactly once
225
220
200
210
Number of five digit integers, with sum of the digits equal to 43 are
5
10
15
35
The last digit of 9!+39966 is
1
3
4
9
The area bounded by y=2-x2 and
x + y = 0 is
7/2
9/2
9
None
If A be a matrix of order m × n and B be the matrix of order p × m then the matrix BA of order is
(a) p × n
(b) m × m
(c) n × p
(d) m × p
If A = 3i - 6j + 8k and B = i - 2j + 3k then A × B is
(a) 2i+j
(b) -2i+2j
(c) -2i-j
(d) -2i -3j
A speaks 75% truths cases and B speaks truth in 80% cases. Probability that they contradict each other in a statement, is
7/20
13/20
3/5
2/5
The difference between the maximum and minimum value of the function f(x) = 3 sin 4x - cos 6x is
(a) 3/2 (b) 5/2 (c) 3 (d) 4
3/2
5/2
3
4
The area bounded by parabola y2 = x and straight line 2y =x is
4/3
1
2/3
1/3
dxddxd (log tan 2x) is equal to
2 sec 4x
4 cosec 4x
4 sec 2x
2 cosec 2x
There are alternate acid base theories that define an acid as any species that can
donate a proton
donate an electron
accept a proton
accept an electron
Which of the following oxide is amphoteric?
SnO2
CaO
SiO2
CO2
When you test the solutions of sodium bicarbonate, sodium hydroxide, hydrochloric acid and acetic acid with universal indicator, in which case would you get a red colour?
sodium bicarbonate
hydrochloric acid
sodium hydroxide
acetic acid
The pH of a sample of pure water is 7 at room temperature. What is its pH when a pinch of solid sodium bicarbonate is dissolved in it?
very near to 7
less than 7
more than 7
exactly
If an unknown solution turns blue litmus red, then the pH of the solution is more likely to be
12
10
7
4
What will be the bond order of O2
2
3
1
0
The monomer of Neoprene is
Isoprene
Chloroprene
Hexamethylene di amine
Glyptal
In spontaneous process change in free energy is
G=0
G =-ve
G =+ve
G = -2.303
In Electrochemical cell
Anode =0
Anode =-ve
Anode =+ve
Anode =1.9782
The unit of the rate of reaction is:
mol L-1 min-1
mol-1 L min-1
Both a and b
none of these.
The speed of a chemical reaction is not affected by:
Temperature
Volume
Pressure
Catalyst
Find the number of α and β – particles emitted by 88Ra226 in changing to a stable isotope of 82Pb206
5, 4
5, 6
6, 8
3, 4
Brass is which type of crystal?
Covalent
Ionic
Metallic
None of these
A NaCl crystal is found to have CsCl structure because it might have been subjected to:
High temperature
Low temperature
High pressure
Low pressure
Find the co-ordination number of the cations and anions in the calcium fluoride structure.
(a) 4 and 4
4 and 8
8 and 4
6 and 6
The factors on which the rate of reaction
depends is:
Temperature
Presence of catalyst
Presence of light
All of these.
What is the order of reaction, if the rate
constant is 1.2 × 10 -2 mol -2
2
0
1
3
A system which can exchange only
energy but not matter with the
surrounding is known as:
closed system
open system
isolated system
none of these
Among the following which one is a
dependent variable?
Pressure
Temperature
Both a and b
Volume
Which among the following is not an
example of irreversible process?
Mixing of two gases
Rusting of iron in moist air
Expansion of gas in vacuum
None
