Lists and operators

Lists and operators

Professional Development

15 Qs

quiz-placeholder

Similar activities

Pengetahuan di India

Pengetahuan di India

KG - Professional Development

20 Qs

Pedagogi

Pedagogi

University - Professional Development

20 Qs

Projects and Programs Management #3

Projects and Programs Management #3

University - Professional Development

10 Qs

pictogram

pictogram

Professional Development

20 Qs

OIC751 TE- CLASS TEST ON 21/8/2020

OIC751 TE- CLASS TEST ON 21/8/2020

Professional Development

10 Qs

Kuiz Kenali Ubat Anda (KUA) 2022

Kuiz Kenali Ubat Anda (KUA) 2022

KG - Professional Development

16 Qs

ROBLOX CHALLENGE

ROBLOX CHALLENGE

Professional Development

10 Qs

Thương Hiệu

Thương Hiệu

University - Professional Development

15 Qs

Lists and operators

Lists and operators

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

Aparna Gadepalli

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Logical AND operator returns true if?

Both operands are true

Either operand is true

Both operands are false

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators checks for the equality of two operands

=

==

Both

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Operands of the logic operator must be of which type?

Numeric

Boolean

String

All of the above

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

nums = list({1:'one',2:'two'})

print(nums)

Syntax error

[1,2]

['one','two']

Runtime error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid list object?

list(“Hello”)

[10, 1.235+5j, ‘python’]

[(1,2), (3,4)]

All are valid

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The list.pop() function wil'

Remove first element from the list

Remove last element from the list

  Add an element to the list

Will delete the list

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

    x = x[x for x in range of 10 if x<5]

print (x)

[1,2,3,4,5]

[]

[5,6,7,8,9]

[0,1,2,3,4]

Access all questions and much more by creating a free account

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?