wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Beginners_Assessment

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

Following symbol is used to write the multiline comment in python...

a)

#

b)

//

c)

"""

d)

$

2.

Variables are..

a)

Data types

b)

Operators

c)

Storage devices

d)

Constants

3.

Which among these is not a dtype

a)

int

b)

complex

c)

regex

d)

float

4.

Dtype of an input statement is always..

a)

Sensor

b)

int

c)

str

d)

password

5.

** operator returns

a)

Home

b)

Quotient

c)

Remainder

d)

Exponential

6.

Result of this mnemonic : "hello_world".islower()

a)

Hello World

b)

hello_world

c)

hello world

d)

True

7.

What is the datatype of following?

"16"

(a)  

8.

What is the datatype of the following?

False

(a)  

9.

What is the datatype of the following?

a = "15","16"

a)

int

b)

double

c)

tuple

d)

str

e)

Error

10.

What is the datatype of the following

b = (16)

(a)  

11.

True or False :

We can add multiple data to a list at once

a)

True

b)

False

c)

Neither True Nor False

d)

Who cares!

12.

True or False :

Tuple can be varied

a)

List can be constant

b)

True

c)

False

d)

I'm sleepy!!

13.

True or False :

Set is indexed

a)

True

b)

set is a game

c)

False

d)

It doesn't matter

14.

True or False :

Both dictionary and set has same brackets

a)

dictionary is a book

b)

True

c)

False

d)

Depends on list

15.

The following method is used to add data to a set

a)

append

b)

extend

c)

add

d)

expand

16.

The following method is used to add data in a particular index of list

a)

extend

b)

insert

c)

append

d)

index

17.

The following method is used to delete data from a list

a)

remove

b)

del

c)

discard

d)

pop

18.

One of this is not possible with if-else

a)

if ladder

b)

nested if-else

c)

if-elif-else-elif

d)

if

19.

When multiple if conditions are true, then

a)

Only the first if will be executed

b)

All the if will be executed

c)

Else will be executed

d)

Program raises an error

20.

True or False :

while loop should always be True to get executed

a)

True

b)

False

c)

for loop is better than while loop

d)

Maybe

21.

When the following command is activated, program will skip the current iteration and go back to the top

(a)  

22.

True or False :

A function name can have numbers

a)

False

b)

A function is celebrated

c)

True

d)

Function means food!!

23.

Following braces are used to access the data

a)

()

b)

{}

c)

[]

d)

||

24.

True or False :

for loop can iterate over a string

a)

True

b)

False

c)

while loop can iterate over list

d)

range function should be used

25.

One of the following is not a part of functions

a)

return

b)

parameters

c)

kwargs

d)

lambda