Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python basics29

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

In python print is a _____

a)

Statement

b)

Function

c)

Command

d)

program

2.

print("R">"r") will display

a)

Error

b)

True

c)

False

d)

R

3.

Type casting is considered as

a)

technique to use different variables

b)

technique to display data type of the identifier

c)

technique to convert one datatype to another

d)

All of the options

4.

a=30

a=a+1

a*=2

print(a)

This code will display

a)

62

b)

60

c)

Error

d)

30

5.

a=input("Enter age")

b=input("Enter Experience")

a=a+b

print(a)

what will be the value of a if the value passed is 26 and 36

a)

62

b)

Error

c)

2636

d)

3626

6.

Sequences are a collection of values. In what way they are different from each other.

a)

They are not different

b)

Not all the sequences can be changed

c)

They are defined in a different manner

d)

Both b and c are correct.

7.

Predict the output

name-"Parv"

print("name" *3)

a)

ParvParvParv

b)

error

c)

namenamename

d)

Parv Parv Parv

8.

print(2%5)

Output ?

a)

2

b)

0

c)

0.4

d)

None

9.

Predict the output

t1=['One' , 'Two', 'Three']

print(t1[1])

a)

One

b)

1

c)

Two

d)

Error

10.

ldentify the incorrect variable

a)

_bst

b)

my name

c)

fgh75

d)

A4F5