Search Header Logo

Python-Quiz1

Authored by Janany Malli

Information Technology (IT)

University

Used 37+ times

Python-Quiz1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

For the list [10,12,14,20,22,24,30,32,34] which of the following will give this output [10,20,30]

list[1:9:3]

list[0:9:2]

list[::3]

list[1::2]

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following cannot be a variable?

_init

in

ot

on

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of the following code?

abcd

a b c d

a,b,c,d

Type Error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is not a Python datastructure?

list

set

tuple

recursion

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

List is immutable

True

False

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the length of the string 'Hi\nHello'

7

8

9

10

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

sum(3,4,5,6) returns 18

True

False

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?