
DCSMAT-DataStructures-Condititonal-iterative
Authored by ICT Academy of Kerala
Information Technology (IT)
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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:
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?
Similar Resources on Wayground
15 questions
FOS Quiz 1
Quiz
•
Professional Development
20 questions
Computer Hardware Quiz
Quiz
•
Professional Development
25 questions
General Knowledge Quiz #2
Quiz
•
Professional Development
20 questions
Computer 101
Quiz
•
Professional Development
15 questions
Web 1
Quiz
•
Professional Development
20 questions
Comparing Internet and Embedded Appliances
Quiz
•
Professional Development
20 questions
JavaScript Control Flow – MCQ Quiz (With Answers)
Quiz
•
Professional Development
15 questions
Understanding VPC Concepts
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...