Python_Quiz_1

Python_Quiz_1

University

10 Qs

quiz-placeholder

Similar activities

Python Programming Competition

Python Programming Competition

University

12 Qs

Mastering Python Control Flow

Mastering Python Control Flow

University

15 Qs

COC (Code Of Challange)

COC (Code Of Challange)

11th Grade - University

15 Qs

OOP-Q1

OOP-Q1

University

10 Qs

Python-Quiz1

Python-Quiz1

University

12 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

10th Grade - University

15 Qs

Python_MCQ_2

Python_MCQ_2

University

15 Qs

PYTHON APTITUDE

PYTHON APTITUDE

University

12 Qs

Python_Quiz_1

Python_Quiz_1

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Dinesh Kushwaha

Used 22+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following Python code?

[‘ab’, ‘cd’]

[‘AB’, ‘CD’]

[None, None]

none of the mentioned

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following Python code?

1 2

1 2 3

error

none of the mentioned

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code?

a b c d e f

abcdef

i i i i i i …

error

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following Python code?

no output

i i i i i i …

a a a a a a …

a b c d e f

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code?

0 1 2 3 4 Here

0 1 2 3 4 5 Here

0 1 2 3 4

1 2 3 4 5

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code?

0 1 2

error

0 1 2 0 1 2

none of the mentioned

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?

print(list1[2:])

print(list1[:2])

print(list1[:-2])

all of the mentioned

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?