Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Programming

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Which has integer data type?

a)

Phone number

b)

Zip code

c)

HN

d)

Number of students in the class

2.

We can iterate over string

a)

True

b)

False

3.

Which mathematical concept is fit to text data (e.g. words in documents)

a)

Set

b)

Bag

c)

List

d)

Tuple

4.

There are 40 students in a classroom. We would like to get all students whose name starts with "A". Which looping is suitable?

a)

For loop

b)

While loop

5.

Which data type is the best to store possible outcome of tossing a dice?

a)

Tuple

b)

List

c)

Dictionary

6.

We can insert the new item into tuple

a)

True

b)

False

7.

You are in the car with traffic jammed at a junction. To cross that junction according to the traffic rules, which one is NOT applicable

a)

While loop

b)

Conditional Statement

c)

For loop

8.

You want to sampling 10 from 100 patients (One-by-One). Which one does NOT necessary in your code?

a)

For loop

b)

While loop

c)

Conditional Statement

d)

Set

9.

Given a statement "All swan are white". To falsify this statement, you need to travel around the world and find at least one non-white swan. Which one is a indispensable command in your coding?

a)

For loop

b)

While loop

c)

Conditional statement

10.

Patients visit hospital everyday. You want to count for the "new patients" for each day. Which one is not necessary?

a)

Set

b)

While loop

c)

For loop

d)

Set difference