Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Junior Bellwork 30.09.21

Total questions: 28

Worksheet time: 56mins

Name
Class
Date
1.

Which of the following is a basic variable type in Python? (Select all that apply)

a)

Integer

b)

Floating Point Number

c)

Strings

d)

Boolean

e)

Word

2.

Which assignment operator will set a variable to a value without performing any modifications to the value?

a)

=

b)

+=

c)

-=

d)

/=

e)

%=

3.

Which of the following is a valid Python variable name? (Select all that apply)

a)

myVar2

b)

_myVar2

c)

my_Var2

d)

my Var2

e)

2myVar

4.

Which of the following is an example of camal case?

a)

thisIsAnExample

b)

thisisanexample

c)

ThisIsAnExample

d)

Thisisanexample

e)

this_is_an_example

5.

Which of the following is an example of pascal case?

a)

thisIsAnExample

b)

thisisanexample

c)

ThisIsAnExample

d)

Thisisanexample

e)

this_is_an_example

6.

Which of the following is an example of snake case?

a)

thisIsAnExample

b)

thisisanexample

c)

ThisIsAnExample

d)

Thisisanexample

e)

this_is_an_example

7.

Which assignment operator will add a value to variable?

a)

=

b)

+=

c)

-=

d)

/=

e)

%=

8.

Which assignment operator will divide the variable based on a value?

a)

=

b)

+=

c)

-=

d)

/=

e)

%=

9.

Which assignment operator will divide the variable based on a value, but utilize its reminder instead of the result?

a)

=

b)

+=

c)

-=

d)

/=

e)

%=

10.

list1 = [7, 4, 7, 3, 9, 10, "Jim"]


Based on the list provided, what would the value for index 4 be?

(a)  

11.

list1 = [7, 4, 7, 3, 9, 10, "Jim"]

list1.append(20)


Based on the list provided, what would the value for index 6 be?

(a)  

12.

list1 = [7, 4, 7, 3, 9, 10, "Jim"]

list1.append(20)


Based on the list provided, what would be the index of the last item?

(a)  

13.

list1 = [7, 4, 7, 3, 9, 10, "Jim"]

list1.insert(2, "Kim")


Based on the list provided, what would the value for index 2 be?

(a)  

14.

list1 = [7, 4, 7, 3, 9, 10, "Jim"]

list1.insert(2, "Kim")


Based on the list provided, what would the value for index 3 be?

(a)  

15.

list1 = [7, 4, 7, 3, 9, 10, "Jim"]

list1.pop()


Based on the list provided, what would be the index of the last item?

(a)  

16.

list1 = [7, 4, 7, 3, 9, 10, "Jim"]

list1.pop(3)


Based on the list provided, what would the value for index 3 be?

(a)  

17.

list1 = [7, 4, 7, 3, 9, 10]

list1.sort()


Based on the list provided, what would the value for index 3 be?

(a)  

18.

list1 = [7, 4, 7, 3, 9, 10]

list1.sort(reverse = True)


Based on the list provided, what would the value for index 4 be?

(a)  

19.

What is called when you put a loop inside of a loop?

a)

Nested loop

b)

Cascading loop

c)

Multiple loops

d)

Several loops

e)

loop-de-loop

20.

With range(8), what will be the starting number used?

(a)  

21.

With range(3, 8), what will be the starting number used?

(a)  

22.

With range(3, 8, 2), what will be the starting number used?

(a)  

23.

With range(8), what will be the second number used?

(a)  

24.

With range(3, 8), what will be the second number used?

(a)  

25.

With range(3, 8, 2), what will be the second number used?

(a)  

26.

With range(8), what will be the last number used?

(a)  

27.

With range(3, 8), what will be the last number used?

(a)  

28.

With range(3, 8, 2), what will be the last number used?

(a)