MODULE 3_Python

MODULE 3_Python

Professional Development

13 Qs

quiz-placeholder

Similar activities

C Programming

C Programming

Professional Development

10 Qs

Advance MS Excel Tips and Tricks

Advance MS Excel Tips and Tricks

Professional Development

10 Qs

Interesting Bird Facts

Interesting Bird Facts

KG - Professional Development

11 Qs

Introduction to Hyperconverged: HCI 101

Introduction to Hyperconverged: HCI 101

Professional Development

10 Qs

Streams

Streams

Professional Development

10 Qs

Python-quiz2

Python-quiz2

University - Professional Development

11 Qs

ER Model

ER Model

Professional Development

10 Qs

Software Security

Software Security

University - Professional Development

10 Qs

MODULE 3_Python

MODULE 3_Python

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Sumathi K

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods is used to add a new key-value pair to a Python dictionary?

add()

insert()

append()

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code snippet?

[‘a’, ‘b’, ‘c’]

(‘a’, ‘b’, ‘c’)

dict_keys([‘a’, ‘b’, ‘c’])

{‘a’, ‘b’, ‘c’}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code snippet?

(‘a’, 1), (‘b’, 2), (‘c’, 3)]

((‘a’, 1), (‘b’, 2), (‘c’, 3))

dict_items([(‘a’, 1), (‘b’, 2), (‘c’, 3)])

{(‘a’, 1), (‘b’, 2), (‘c’, 3)}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods is used to add an element to the end of a list in Python?

append()

add()

insert()

extend()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following Python code snippet?

[3, 4]

2, 3, 4]

[1, 2, 3]

[4, 5]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following Python code snippet do?

Prints “Hello, World!” in lowercase

Converts “Hello, World!” to uppercase and prints it

Reverses the string “Hello, World!”

Removes all whitespace characters from the string “Hello, World!

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the isupper() method return if all characters in a string are uppercase?

True

False

1

Error

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?