Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science - Python

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What computer science concept stores information to be used later?

a)

Conditional

b)

Variable

c)

Loop

d)

Function

2.

What computer science concept does something different depending on the situation?

a)

Conditional

b)

Variable

c)

Loop

d)

Function

3.

What concept repeats whatever is inside it?

a)

Conditional

b)

Variable

c)

Loop

d)

Function

4.

What data type can hold more than one value?

a)

String

b)

Integer

c)

List

d)

Boolean

5.

What data type would store the value: 6.4?

a)

String

b)

List

c)

Boolean

d)

Float

6.

What data type would store the value: Oranges

a)

String

b)

Float

c)

Boolean

d)

Integer

7.

What data type would store the value: True

a)

Boolean

b)

String

c)

Integer

d)

Float

8.

What data value would store the value: 9?

a)

Float

b)

Integer

c)

String

d)

Boolean

9.

What keyword do you use to start a function?

a)

Function

b)

Def

c)

In

d)

Key

10.

What type of loop do you use to loop through a list?

a)

While..true

b)

Do...while

c)

For...in

d)

Forever

11.

What would you put in an if statement to see if two values are equal?

a)

++

b)

==

c)

//

d)

||

12.

What symbol is used to either add two numbers together or join two strings?

a)

-

b)

=

c)

+

d)

*

13.

What symbol is used to multiply two numbers together?

a)

+

b)

=

c)

*

d)

/

14.

What is the name of the method that is always called when a new object is created from a class?

a)

__start__

b)

__object__

c)

__method__

d)

__init__

15.

A function that can only be used by a class is called?

a)

Method

b)

Conditional

c)

Function

d)

Value