wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

introduction to python

Total questions: 30

Worksheet time: 12mins

Name
Class
Date
1.

Python is a

a)

text language

b)

database language

c)

programming language

2.

Python has a simple syntax similar to the

a)

coding language

b)

english language

c)

spanish language

3.

Code for Hello, World!

a)

print Hello, World!

b)

print("Hello, World!)

c)

print("Hello, World!")

4.

Code for

Five is greater than two!

a)

if 5 > 2:

print("Five is greater than two!")

b)

if 5 = 2:

print("Five is greater than two!")

c)

if 5 > 2: Print("Five is greater than two!")

5.

Code for

257

Hello, World!

a)

x = 257

y = "Hello, World!"


print(y)

print(x)

b)

x = 257

y = "Hello, World!"


print(x)

print(y)

c)

x = 257

y = Hello, World!


print x

print y

6.

Insert the missing part of the code below to output

_________________ "My name is ".

a)

Print

b)

PRINT

c)

print

7.

Comments in Python are written with a special character, which one?

a)

brackets

b)

hashtag

c)

coma

8.

Code for

b is greater than a

a)

a = 33

b = 200


if b > a:

print("b is greater than a")

b)

a = 33

b = 200


if b < a:

print("b is greater than a")

c)

a = 330

b = 200


if b > a:

print("b is greater than a")

9.

Python language use

a)

upper case letters

b)

lower case letters

c)

upper and lower case letters

10.

The output of the program

x = 4

x = "Sally"

print(x)

a)

four

b)

Saly

c)

Sally

11.
What do you call the characters in Scratch? 
a)
Sprite
b)
Script
c)
Scratch
d)
Sprite Scripts 
12.
What do you call the list of commands in Scratch? 
a)
Sprite
b)
Script
c)
Scratch
d)
Help
13.
Programming languages give computers instructions
a)
True
b)
False
14.
A costume is 
a)
A code block
b)
A motion 
c)
A different way a sprite looks
d)
A sound 
15.
You use _____ blocks to program Scratch
a)
Code
b)
Algorithm
c)
Sequence 
d)
Memory
16.

Which group of blocks include the "When Flag Clicked" command?

a)

Motion

b)

Looks

c)

Events

d)

Control

17.

What group of blocks controls movement of the Sprite?

a)

Control

b)

Sensing

c)

Motion

d)

Look

18.

What is the backdrop area called in Scratch?

a)

Ground

b)

Paint

c)

Area

d)

Stage

19.

Which group of blocks include the "Glide" block?

a)

Motion

b)

Looks

c)

Control

20.

Which group of blocks include the "Broadcast" block?

a)

Events

b)

Motion

c)

Control

21.

With Scratch we can make... ?

a)

Games

b)

Stories

c)

Animation

d)

All

22.

Where to find these codes?

a)
b)
c)
d)
23.

Where to find these codes?

a)
b)
c)
d)
24.

Where to find these codes?

a)
b)
c)
d)
25.
a)
b)
c)
d)
26.

How to add a sprite?

a)
b)
27.

What are those?

a)

Sprites

b)

Costumes

c)

Codes

28.

Can we change the costumes in Scratch?

a)

Yes

b)

No

29.

What is this code?

a)

Say: What is that?

b)

Think: What is that?

30.

Can we add backdrops and sprites from the internet or our device?

a)

Yes

b)

No