Sequences

Sequences

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python Training Day-3 Quiz-3

Python Training Day-3 Quiz-3

Professional Development

10 Qs

Python Basics

Python Basics

Professional Development

10 Qs

Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

Python quiz

Python quiz

University - Professional Development

10 Qs

Demo Quiz Ashv

Demo Quiz Ashv

Professional Development

7 Qs

Basic Python Data Types

Basic Python Data Types

Professional Development

8 Qs

Introduction

Introduction

Professional Development

10 Qs

Variable Scope in Python

Variable Scope in Python

1st Grade - Professional Development

15 Qs

Sequences

Sequences

Assessment

Quiz

Computers

Professional Development

Hard

Created by

LE202 VISHNUVARDHAN

Used 45+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What will be the output of the following Python statement?

>>>"a"+"bc"

a

bc

bca

abc

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Python code?

>>> str1 = 'hello'

>>> str2 = ','

>>> str3 = 'world'

>>> str1[-1:]

olleh

hello

h

o

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?

5

4

None

Error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Python code?

>>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1])

A

Daman

Error

n

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following Python code snippet?


print([i.lower() for i in "HELLO"])

[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

‘hello’

[‘hello’]

hello

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What will be the output of the following Python code snippet?

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

>>> "john" in d

True

False

None

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?

>>> d1 = {"john":40, "peter":45}

>>> d2 = {"john":466, "peter":45}

>>> d1 > d2

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?