Which of these commands adds a new item, "banana," to the end of the list fruits?

DCSMAT-DataStructures-Condititonal-iterative

Quiz
•
Information Technology (IT)
•
Professional Development
•
Hard
ICT Academy of Kerala
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
16 questions
JS alapok

Quiz
•
Professional Development
25 questions
Chapter-1- Introduction to Web Development

Quiz
•
Professional Development
16 questions
Python

Quiz
•
Professional Development
15 questions
2.4 Microsoft Dataverse Quiz

Quiz
•
Professional Development
20 questions
Understanding Cybersecurity's Human Element

Quiz
•
Professional Development
25 questions
Quiz Sessão 7

Quiz
•
Professional Development
15 questions
1.6 Power Fx Quiz

Quiz
•
Professional Development
15 questions
Exploring Computer Networks & The Internet

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade