quiz

Computer Science Quiz 3

Difficulty Level :
10 Questions

Popular Questions In Computer Science Quiz 3

Which one of the following is the default extension of a Python file?

Which of the following symbol is used in Python for single line comment?

Which of the following statement opens a binary file record.bin in write mode and writes data from a list lst1 = [1,2,3,4] on the binary file?

Which of these about a dictionary is false?

What is the output of following code:

T=(100)

print(T*2)

Identify the output of the following Python statements.

x = [[10.0, 11.0, 12.0],[13.0, 14.0, 15.0]]

y = x[1][2]

print(y)

Identify the output of the following Python statements.

x = 2

while x < 9:

print(x, end=' ')

x = x + 1

Evaluate the following expression and identify the correct answer.

16 - (4 + 2) * 5 + 2**3 * 4

Identify the output of the following Python statements.

b = 1

for a in range(1, 10, 2):

b += a + 2

print(b)

Identify the output of the following Python statements.

lst1 = [10, 15, 20, 25, 30]

lst1.insert( 3, 4)

lst1.insert( 2, 3)

print (lst1[-5])