Search Header Logo

IOAC-ML-Second Assessment -29012023

Authored by KVCH CORPORATE

Professional Development

Professional Development

Used 1+ times

IOAC-ML-Second Assessment -29012023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Python tuple?

a) [1, 2, 3]

b) (1, 2, 3)

c) {1, 2, 3}

d) {}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose t = (1, 2, 4, 3), which of the following is incorrect?

a) print(t[3])

b) t[3] = 45

c) print(max(t))

d) print(len(t))

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

t=(1,2,4,3)

print(t[1:3])

a) (1, 2)

b) (1, 2, 4)

c) (2, 4)

d) (2, 4, 3)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

t=(1,2,4,3)

print(t[1:-1])

a) (1, 2)

b) (1, 2, 4)

c) (2, 4)

d) (2, 4, 3)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

d = {"john":40, "peter":45}

print(d["john"])

a) 40

b) 45

c) “john”

d) “peter”

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

t = (1, 2)

print(2 * t)

a) (1, 2, 1, 2)

b) [1, 2, 1, 2]

c) (1, 1, 2, 2)

d) [1, 1, 2, 2]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

t1 = (1, 2, 4, 3)

t2 = (1, 2, 3, 4)

print(t1 < t2)

a) True

b) False

c) Error

d) None

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?