Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GOC DEMO QUIZ

Total questions: 11

Worksheet time: 8mins

Name
Class
Date
1.

Python is case sensitive or not ?

a)

Yes

b)

In some cases

c)

No

d)

Yes, except in libraries

2.

Which of the following is immutable ?

a)

Tuple

b)

List

c)

Dictionary

d)

None of the above

3.

Which of the following is/are incorrect ?

a)

"Hello World"

b)

`Hello World'

c)

"Hello World'

d)

'Hello World'

4.

Python language was created by ?

a)

Guido van Rossum

b)

Dennis Ritchie

c)

James Gosling

d)

Bjarne Stroustrup

5.

When was Python released ?

a)

1990

b)

1989

c)

1991

d)

1999

6.

type(3.14) returns?

a)

int

b)

float

c)

str

d)

bool

7.

Complete the following code (fil in the blanks '__') for checking whether a given number is even or odd:

a)

/

=

b)

//

=

c)

%

==

d)

%

=

8.

What will be the output of the following?

t = (1, 2, 3, 4)

print(len(t) + t[-1])

a)

4-1

b)

4,4

c)

8

d)

7

9.

The extension of python file is?

a)

.exe

b)

.py

c)

.python

d)

.pyt

10.

Valid variable name?

a)

myvar

b)

my_var

c)

my var

d)

1my_var

11.

BONUS QUESTION

a)

1

b)

4

c)

5

d)

infinite