Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python-basics

Total questions: 14

Worksheet time: 8mins

Name
Class
Date
1.

what function do we use to output something in python ?

a)

output()

b)

print()

c)

cout()

d)

println()

2.

How many types of variables in python ?

a)

3

b)

4

c)

6

d)

5

3.

("Hello this is my name" ) what type best describes this variable ?

a)

char

b)

int

c)

String

d)

float

4.

(44.5 ) what is this variable type?

a)

int

b)

char

c)

String

d)

float

5.

(1234567) what is this variable type ?

a)

string

b)

bool

c)

int

d)

char

6.

(yes or no) , (true or false) what are these called ?

a)

int

b)

chat

c)

bool

d)

string

7.

('m') what is this variable type ?

a)

string

b)

int

c)

bool

d)

char

8.

How to make a comment in python?

a)

//

b)

/*

c)

*/

d)

#

9.

my-car="red" Will this work or will give an error?

a)

will work

b)

give an error

c)

will output blue

d)

none of the above

10.

1234=20 Will this work or give an error?

a)

will work

b)

will give an error

c)

none of the above

11.

123=10 Will python accept this or it will output an error?

a)

python will accept it

b)

python will output an error

12.

M7="hi" Will python accept this or it will output an error?

a)

python will accept this

b)

python will output an error

13.

print("my name is "+ "ahmed") will python accept this or it will result an error?

a)

python will accept it

b)

python will result an error

14.

print("the sum of the equation is " + 7) Will python accept this or it will result an error?

a)

python will accept it

b)

python will result an error