wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Round-2 Quiz

Total questions: 25

Worksheet time: 50mins

Name
Class
Date
1.
Which of the following is invalid?
a)
_a = 1
b)
__a = 1
c)
__str__ = 1
d)
none of the mentioned
2.
Which of the following is not a keyword?
a)
eval
b)
assert
c)
nonlocal
d)
pass
3.
What is the type of inf?
a)
Boolean
b)
Integer
c)
Float
d)
Complex
4.
What is the output when following statement is executed ? >>>"abcd"[2:]
a)
a
b)
ab
c)
cd
d)
dc
5.

Suppose d = {“john”:40, “peter”:45}. To obtain the number of entries in dictionary which command do we use?

a)

d.size()

b)

len(d)

c)

size(d)

d)

d.len()

6.

SYNONYMS:

AUGUST

a)

Common

b)

Ridiculous

c)

Dignified

d)

Petty

7.
ANTONYMS : HOLLOW
a)
Filled
b)
Solid
c)
Strong
d)
Substantial
8.

ONE WORD SUBSTITUTON : Life history of a person written by another

a)

Biography

b)

Autobiography

c)

Memoir

d)

Bibliography

9.

IDIOMS and PHARSE: To hit the nail right on the head

a)

To do the right thing

b)

To destroy one's reputation

c)

To announce one's fixed views

d)

To teach someone a lesson

10.

SENTENCE CORRECTION:

It is highly desirable that you furnish evidence of your expenses before you submit your final accounts.

a)

It is highly desirable that you furnish evidence of your expenses

b)

It is highly desirable that you should furnish evidence of your expenses

c)

It is highly to be desired that you furnish evidences of your expenses<br />

d)

You must furnish evidence of your expenses

11.

What is the output of the following code?

a)

Salary: 12000 Salary: 8000

b)

Salary: 8000 Salary: 12000

c)

Salary: 8000 Salary: 8000

d)

Salary: 12000 Salary: 12000

12.

What is the output of the following code?

a)

6

b)

33

c)

123

d)

Error

13.

What is the output of the following function call

a)

5

b)

15

c)

(15, 5)

d)

Program Error

14.
What is the difference between r+ and w+ modes ?
a)
in w+ the pointer is initially placed at the beginning of the file and the pointer is at the end for r+
b)
in r+ the pointer is initially placed at the beginning of the file and the pointer is at the end for w+
c)
depends on the operating system
d)
Both are same
15.
How do you rename a file ?
a)
os.rename(existing_name, new_name)
b)
os.rename(fp, new_name)
c)
os.set_name(existing_name, new_name)
d)
None of the Above
16.

What is the output of the following addition (+) operator

a)

[10, 20]

[30, 40]

b)

[10, 20]

[10, 20, 30, 40]

c)

[10, 20, 30, 40]

[10, 20, 30, 40]

d)

[ 30, 40]

[10, 20, 30, 40]

17.
print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))
a)
True True False True
b)
False True True True
c)
True True False True
d)
True True False False
18.
When sub class declares a method that has the same type arguments as a method declared by one of its superclasses, it is termed as:
a)
Method overriding
b)
Method Overloading
c)
Inheritance
d)
Operator Overriding
19.
Method with the same name or different return type and difference in the parameters either in number or type is known as:
a)
Function Overloading
b)
Method Overriding
c)
Compile Time Overloading
d)
Operator Overriding
20.
When deriving from a private base class, the public, protected and private members of the base class become private members of the derived class.
a)
true
b)
false
c)
Can Not be used by derived class
d)
None of the Above
21.

An _______ cannot provide any code at all, can provide only the signature.

a)

Base Class

b)

Derived Class

c)

Abstract Class

d)

Interface

22.
Which of the following functions can be used to increase the size of dynamically allocated array?
a)
realloc()
b)
calloc()
c)
malloc()
d)
memadjust()
23.
In C Programming Languages, A variable declared with ____ modifier can retain its value during function calls.
a)
const
b)
extern
c)
static
d)
volatile
24.

What is the output of the following code?

a)

0

b)

Syntax Error

c)

Runtime Error

d)

65536

25.
In C Programming Languages, Which operator can turn-off a particular bit into a number.
a)
&&
b)
||
c)
^
d)
&