wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming Boot Camp I-I

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is a variable in programming?

a)

A symbolic name for a value that can change

b)

A comment within the code

c)

A fixed value that cannot be changed

d)

A function that performs a specific task

2.

Name the different data types in programming.

a)

tuple

b)

integer, float, string, boolean, array, object

c)

char

d)

double

3.

What is the purpose of programming?

a)

To fly to the moon

b)

To paint a picture

c)

To instruct computers to perform specific tasks or solve problems.

d)

To bake cookies

4.

What is Python programming language known for?

a)

Complexity, speed, and security

b)

Confusion, inefficiency, and rigidity

c)

Longevity, efficiency, and popularity

d)

Simplicity, readability, and versatility

5.

What are arithmetic operators in Python?

a)

+, -, *, /, %, **, //

b)

^

c)

++

d)

&&

6.

How is addition performed in Python?

a)

Using the '-' operator

b)

Using the '+' operator

c)

Using the '/' operator

d)

Using the '*' operator

7.

How is subtraction performed in Python?

a)

Subtraction in Python is done using the '+' operator.

b)

Subtraction in Python involves using the '*' operator.

c)

Subtraction in Python is performed using the '-' operator.

d)

Subtraction in Python is achieved through the '//' operator.

8.

How is multiplication performed in Python?

a)

Using the '/' operator

b)

Using the '-' operator

c)

Using the '*' operator

d)

Using the '+' operator

9.

How is division performed in Python?

a)

Division in Python is performed using the '+' operator

b)

Division in Python is performed using the '/' operator for floating-point division and the '//' operator for integer division.

c)

Division in Python is done using the '*' operator

d)

Python does not support division operations

10.

What is the remainder operator in Python?

a)

++

b)

!

c)

%

d)

*

e)

/

11.

How is integer division performed in Python?

a)

Integer division in Python is done using the plus operator (+).

b)

Integer division in Python is performed using the asterisk operator (*).

c)

Integer division in Python is performed using the double forward slash operator (//).

d)

Integer division in Python is achieved by using the percent operator (%).

12.

What happens when you divide two integers in Python?

a)

The result will always be an integer

b)

The result will be a boolean

c)

The result will be a string

d)

The result will be a float if the division is not evenly divisible, and an integer if it is evenly divisible.

13.

What is the result of 10 % 3 in Python?

a)

2

b)

1

c)

0

d)

5

14.

What is the result of 15 // 4 in Python?

a)

3

b)

5

c)

6

d)

4

15.

What is the data type of the result of integer division in Python?

a)

boolean

b)

float

c)

integer

d)

string

16.

What is the data type of the result of remainder operator in Python?

a)

integer

b)

float

c)

string

d)

boolean

17.

What is the data type of the result of addition in Python?

a)

integer

b)

boolean

c)

list

d)

string

18.

What is the data type of the result of subtraction in Python?

a)

float

b)

bool

c)

int

d)

str

19.

What is the data type of the result of multiplication in Python?

a)

str

b)

list

c)

int or float

d)

dict

20.

What is the data type of the result of division in Python?

a)

boolean

b)

int

c)

float

d)

string