NRIT_Python_Quiz02

NRIT_Python_Quiz02

University

50 Qs

quiz-placeholder

Similar activities

EPA-11-DEC-2021 On Java

EPA-11-DEC-2021 On Java

University

50 Qs

Understanding Loops in Programming

Understanding Loops in Programming

9th Grade - University

54 Qs

Array in Python

Array in Python

University

45 Qs

Technical Training Test for III BTech - VCE - CSE

Technical Training Test for III BTech - VCE - CSE

University

45 Qs

Python тест

Python тест

University

54 Qs

Quiz Python

Quiz Python

University

50 Qs

FT1 - App

FT1 - App

University

50 Qs

untitled

untitled

8th Grade - University

48 Qs

NRIT_Python_Quiz02

NRIT_Python_Quiz02

Assessment

Quiz

Computers

University

Medium

Created by

Yohoshiva Basaraboyina

Used 1+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print([1, 2, 3] + [4, 5, 6])?

[1, 2, 3, 4, 5, 6]

[5, 7, 9]

[4, 5, 6, 1, 2, 3]

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does list1.append(5) do?

Adds 5 to the end of list1

Inserts 5 at index 0

Deletes index 5

Raises an error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(len([1, [2, 3], 4]))?

3

4

5

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove an element from a list by value?

list.remove(value)

list.delete(value)

list.pop(value)

del list[value]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of list1 = [1, 2, 3] and list1 * 2?

[1, 2, 3, 1, 2, 3]

[1, 2, 3, 2]

[1, 2, 3, 1]

[2, 4, 6]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of dict1 = {'a':1, 'b':2}; print(dict1['a'])?

'a'

1

2

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you get all the keys of a dictionary?

dict.keys()

dict.values()

dict.items()

dict.get()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?