wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python_R

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

What is the Python built-in function used to display numbers and text on the screen?

a)

print

b)

input

c)

output

d)

command

2.

What is the output from the following code?

print ("hello world")

a)
Hello World
b)
hello world
c)
print hello world
3.

Which of the following code is a Python Comment?

a)

#this is a comment

b)

{ this is a comment }

c)

" this is a comment "

d)

( this is a comment )

4.

Quelle est la syntaxe correcte pour afficher "Hello World" en Python ?

a)

echo("Hello World");

b)

p("Hello World")

c)

print("Hello World")

d)

echo "Hello World"

5.

Quelle est l'extension de fichier correcte pour les fichiers Python ?

a)
b)
c)

.pyth

d)

.pt

6.

Which of the following functions is a built-in function in python?

a)

a) factorial()

b)

b) print()

c)

c) seed()

d)

d) sqrt()

7.

1==0

a)

True

b)

False

8.

What is the missing instruction?

a)

Print

b)

print

c)

(print)

d)

"Print"