Search Header Logo

Task 05

Authored by LEIF VILLANUEVA

Computers

University

Task 05
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

myList = [1, 'hello', 23.43]

type(myList[1])

What is the correct output?

<class 'str'>

<class 'int'>

string

integer

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following gives the output as 9

5+2**2

11+1*3/4

18-3**2

Both a and c

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4+45/5%2

6

0.9

6.0

3.6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

13+5 == 6+2

True

15

False

16

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following gives the output as [2,3,2,3,4,5] If list1=[2,3] and list2=[4,5]

list1 + list2 *2

(list1*2) + list2

list2 + list1 * 2

Both b and c

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following code?

list1=[1,’a’,5.4]

list1.extend([-3,0.8])

list1

[1, 'a', 5.4, [-3, 0.8]]

[1, 'a', 5.4, -3, 0.8)

[[1, 'a', 5.4],[ -3, 0.8]]

None of the above

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following operators have the same precedence?

-x and ~x

& and |

+ and *

== and >>

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 Computers