WorksheetsJunior Bellwork 30.09.21
Total questions: 28
Worksheet time: 56mins
Which of the following is a basic variable type in Python? (Select all that apply)
Integer
Floating Point Number
Strings
Boolean
Word
Which assignment operator will set a variable to a value without performing any modifications to the value?
=
+=
-=
/=
%=
Which of the following is a valid Python variable name? (Select all that apply)
myVar2
_myVar2
my_Var2
my Var2
2myVar
Which of the following is an example of camal case?
thisIsAnExample
thisisanexample
ThisIsAnExample
Thisisanexample
this_is_an_example
Which of the following is an example of pascal case?
thisIsAnExample
thisisanexample
ThisIsAnExample
Thisisanexample
this_is_an_example
Which of the following is an example of snake case?
thisIsAnExample
thisisanexample
ThisIsAnExample
Thisisanexample
this_is_an_example
Which assignment operator will add a value to variable?
=
+=
-=
/=
%=
Which assignment operator will divide the variable based on a value?
=
+=
-=
/=
%=
Which assignment operator will divide the variable based on a value, but utilize its reminder instead of the result?
=
+=
-=
/=
%=
list1 = [7, 4, 7, 3, 9, 10, "Jim"]
Based on the list provided, what would the value for index 4 be?
(a)
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)
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)
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)
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)
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)
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)
list1 = [7, 4, 7, 3, 9, 10]
list1.sort()
Based on the list provided, what would the value for index 3 be?
(a)
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)
What is called when you put a loop inside of a loop?
Nested loop
Cascading loop
Multiple loops
Several loops
loop-de-loop
With range(8), what will be the starting number used?
(a)
With range(3, 8), what will be the starting number used?
(a)
With range(3, 8, 2), what will be the starting number used?
(a)
With range(8), what will be the second number used?
(a)
With range(3, 8), what will be the second number used?
(a)
With range(3, 8, 2), what will be the second number used?
(a)
With range(8), what will be the last number used?
(a)
With range(3, 8), what will be the last number used?
(a)
With range(3, 8, 2), what will be the last number used?
(a)
