DCSMAT-DataStructures-Condititonal-iterative

DCSMAT-DataStructures-Condititonal-iterative

Professional Development

20 Qs

quiz-placeholder

Similar activities

Cybersecurity Scenarios Quiz

Cybersecurity Scenarios Quiz

Professional Development

25 Qs

Mr. Kasih_Final Assessment for English Grade X

Mr. Kasih_Final Assessment for English Grade X

Professional Development

25 Qs

RAG Quiz Answers

RAG Quiz Answers

Professional Development

15 Qs

Exploring Computer Networks & The Internet

Exploring Computer Networks & The Internet

Professional Development

15 Qs

V50e Pre-Refresher Quiz

V50e Pre-Refresher Quiz

Professional Development

20 Qs

CompTIA Security+ Flash Cards (GRE-PAT)

CompTIA Security+ Flash Cards (GRE-PAT)

Professional Development

20 Qs

CompTIA Network+ Flash Cards (A-PoE)

CompTIA Network+ Flash Cards (A-PoE)

Professional Development

20 Qs

Quiz Sessão 7

Quiz Sessão 7

Professional Development

25 Qs

DCSMAT-DataStructures-Condititonal-iterative

DCSMAT-DataStructures-Condititonal-iterative

Assessment

Quiz

Information Technology (IT)

Professional Development

Practice Problem

Medium

Created by

ICT Academy of Kerala

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?