PWC_Python_Day2

PWC_Python_Day2

Professional Development

10 Qs

quiz-placeholder

Similar activities

TalentNext Test Day-13-Core Java Topics

TalentNext Test Day-13-Core Java Topics

Professional Development

10 Qs

Nodejs: Rate Limiting and File Upload

Nodejs: Rate Limiting and File Upload

Professional Development

10 Qs

IBEX A-ISB

IBEX A-ISB

Professional Development

10 Qs

Pre & Post Tes TQM

Pre & Post Tes TQM

Professional Development

10 Qs

Q1 Introduction to Python

Q1 Introduction to Python

Professional Development

15 Qs

Business Agility Quiz

Business Agility Quiz

Professional Development

15 Qs

Manchester Trivia

Manchester Trivia

Professional Development

14 Qs

Sherrrod Faculty Handbook

Sherrrod Faculty Handbook

Professional Development

15 Qs

PWC_Python_Day2

PWC_Python_Day2

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

CloudThat Technologies

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will be the output of the following Python code?

 [1, 4]

[1, 3, 4]

[4, 3]

[1,3]

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will be the output of the following Python code?

[1,2,3,4]

[1,2,3,4]

[1,2,3]

[1,2,3,4]

[1, 2, 3, 4]

None

Syntax error

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which of the following is a Python tuple?

{1, 2, 3}

{}

[1, 2, 3]

(1, 2, 3)

4.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

Select all the correct options to join two lists in Python

list1  =  ['a', 'b', 'c', 'd']

list2 =  ['e', 'f', 'g']

    list1+list2

extend(list1,list2)

   list1.extend(list2)

   newlist.extend(list1,list2)

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Consider the dictionary

d= {‘foo’:100, ‘bar’:200, ‘baz’:300}

What is the result of the statement?

d[‘bar’ : ’baz’]

(200,300)

  It raises an exception

[200,300]

200 300

6.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

What is the type of the following variable?

aTuple=("Orange")

print(type(aTuple))

List

Tuple

Array

Str

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will be output of the following code?

a=20

a=10

Syntax Error

Value 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?

Discover more resources for Professional Development