
csa1
Authored by A A
Other
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of True AND False in Boolean logic?
True
False
Undefined
Depends on the context
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a conditional statement, what does OR do?
Returns True if at least one condition is True, otherwise False
Returns True only if all conditions are True
Returns False in all cases
Negates the logical outcome
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when an event listener is attached to a button?
It waits for an event, then executes the assigned function
It immediately executes the function
It triggers an infinite loop
It disables user interaction
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a common way to iterate through a list in Python?
Using a for loop with range(len(list))
Using a while loop until reaching the last element
Using a for loop directly over elements is the the most common way
Recursively calling the list elements
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a base case in recursion?
The condition that stops further recursive calls
The initial function call
The last recursive function before returning
A function that calls itself indefinitely
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a block of code in programming?
A single statement
A group of statements executed together, typically enclosed in curly braces {} or indentation
A part of the compiler
A separate program entirely
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the map() function do in Python?
Creates a dictionary
Finds the shortest path in a graph
Applies a given function to each item of an iterable and returns a new iterable
Converts a list into a tuple
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?