
DCSMAT-DataStructures-Condititonal-iterative
Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
ICT Academy of Kerala
Used 2+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these commands adds a new item, "banana," to the end of the list fruits?
fruits.append("banana")
fruits.add("banana")
fruits.insert("banana")
fruits.push("banana")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional expression checks if total_sales is over $500?
total_sales == 500
total_sales < 500
total_sales > 500
total_sales != 500
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these commands removes the first item from the list 'vegetables'?
vegetables.remove(0)
vegetables.pop(0)
vegetables.delete(0)
vegetables.shift()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional expression checks if 'username' is not empty?
username == ""
username != ""
username > ""
username < ""
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop type is most suitable for iterating through each item in a list of customer names?
while loop
for loop
if statement
switch statement
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the value of "price" in the dictionary product = {"name": "apple", "price": 1.5}?
product["price"]
product(price)
product->price
product.price
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional expression correctly checks if a number x is even?
if x % 2 == 0:
if x % 2 != 0:
if x / 2 == 1:
if x * 2 == 0:
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade