NEW
Font size
WorksheetsTest 1: Banana Tales I
Total questions: 20
Worksheet time: 14mins
What is the programming language used in Banana Tales?
JavaScript
Python
Java
C++
What does debugging in coding refer to?
Identifying and resolving errors
Testing the code
Creating bugs intentionally
Writing new code
What does sequencing refer to in a computer program?
Random execution of code
Repeating the same code
Executing code in a specific order
Skipping code execution
What is a list in Python?
A sequence of items that can be accessed individually
A data type
A collection of numbers only
A single item
What does a method in Python represent?
A block of code that performs a specific task
A variable
A loop
All of the above
What is an argument in coding?
A data type
A loop structure
A variable name
A value passed between programs
What does a for loop in Python allow you to do?
Execute code only once
Repeat code for a specific number of times
Skip code execution
Execute code conditionally
What is the purpose of a comment in Python?
To execute code
To provide explanations in the code
To define variables
To create loops
What does the range() function do in Python?
Generate a sequence of numbers
Create a list
Check for errors in the code
Define variables
What does the len() function do in Python?
Find the length of a string
Check for errors in the code
Generate random numbers
Create a list
What does an if statement in Python allow you to do?
Execute code unconditionally
Repeat code for a specific number of times
Execute code conditionally
Skip code execution
What does a while loop in Python do?
Execute code conditionally
Repeat code for a specific number of times
Skip code execution
Execute code only once
What do Boolean Operators do in Python?
Create loops
Check for syntax errors
Combine or manipulate boolean values
Perform mathematical operations
What is a function in Python?
A data type
A loop structure
A variable
A block of code that performs a specific task
What is the purpose of the 'break' statement in Python?
Terminate the current loop
Execute code conditionally
Repeat code for a specific number of times
Skip code execution
What is the difference between '==' and 'is' operators in Python?
'==' compares values, 'is' compares memory addresses
'==' compares memory addresses, 'is' compares values
Both operators are used for mathematical operations
Both operators are used for string concatenation
What is the purpose of the 'continue' statement in Python?
End the program execution
Move to the next iteration of a loop
Execute code conditionally
Repeat code for a specific number of times
What is the purpose of the 'pass' statement in Python?
Terminate the program
Do nothing and continue
Print a message
Execute code conditionally
What is the difference between 'append()' and 'extend()' methods in Python lists?
'append()' adds a single element, 'extend()' adds multiple elements
'append()' adds multiple elements, 'extend()' adds a single element
Both methods are used for mathematical operations
Both methods are used for string concatenation
What does the 'pop()' method do in Python lists?
Inserts an element at a specific index
Removes and returns the last element
Sorts the list in ascending order
Reverses the order of elements
