Day-4 IOAC - ML Python Assessment_12th-Feb-2023

Day-4 IOAC - ML Python Assessment_12th-Feb-2023

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python Test 3A

Python Test 3A

Professional Development

10 Qs

operators in python

operators in python

Professional Development

14 Qs

Python Basics - First step of Baby python

Python Basics - First step of Baby python

Professional Development

10 Qs

ML-1

ML-1

Professional Development

12 Qs

python dictionary and set

python dictionary and set

Professional Development

15 Qs

Simple Python Quiz

Simple Python Quiz

Professional Development

15 Qs

Fundamental Python

Fundamental Python

Professional Development

14 Qs

module 3-4

module 3-4

Professional Development

10 Qs

Day-4 IOAC - ML Python Assessment_12th-Feb-2023

Day-4 IOAC - ML Python Assessment_12th-Feb-2023

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

KVCH CORPORATE

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

1. What does the following Python code print out? a = [1, 2, 3]; b = [4, 5, 6]; c = a + b; print len(c)

3

4

5

6

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.  What list method adds a new item to the end of an existing list?

append()

insert()

pop()

add()

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

colors = ["red", "green", "burnt sienna", "blue"]

Output of  >>> "yellow" in colors

True

False

Syntax Error

None of the above

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following statement is not correct?

A list is mutable

A tuple is immutable.

The append() function is used to add an element.

The extend() function is used in tuple to add elements in a list

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

 Let setA={3,6,9}, setB={1,3,9}. What will be the result of the following snippet? print(setA|setB)

{3,6,9,1,3,9}

{3,9}

{1}

{1,3,6,9}

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Python code?

>>>t = (1, 2, 4, 3, 8, 9)

>>>[t[i] for i in range(0, len(t), 2)]

[2, 3, 9]

[1, 2, 4, 3, 8, 9]

[1, 4, 8]

(1, 4, 8)

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python code?

>>>t1 = (1, 2, 4, 3)

>>>t2 = (1, 2, 3, 4)

>>>t1 < t2

True

False

Error

None

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?