Python quiz-2

Python quiz-2

University

25 Qs

quiz-placeholder

Similar activities

Chapter 5 Mid Term Quiz - Computer System -

Chapter 5 Mid Term Quiz - Computer System -

5th Grade - University

20 Qs

Quiz_Adv

Quiz_Adv

University

20 Qs

DWDM Unit1 Quiz

DWDM Unit1 Quiz

University

21 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

DI (EM24) - Diseño de Contenidos (T8)

DI (EM24) - Diseño de Contenidos (T8)

University - Professional Development

20 Qs

IT 101 - Quiz 3

IT 101 - Quiz 3

University

20 Qs

NACOS Kahoot Session II

NACOS Kahoot Session II

University

20 Qs

Python quiz-2

Python quiz-2

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

sreenivas pasupuleti

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of print list[1:3] if list=['abcd',786,2,23,'john',70.2]

['abcd',786,2,23,'john',70.2]

abcd

[786,2,23]

None of the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function convert a string to a float in python?

int(x,[,base])

long(x,[base])

float(x)

str(x)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statement causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?

break

continue

pass

None of the above

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function checks in a string that all characters are numeric?

islower()

isnumeric()

isspace()

None

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function replaces all occurrences of old substring in string with new string?

replace (old,new [,max])

strip([chars])

swapcase()

title()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of [1,2,3]+[4,5,6]

[1,2,3,4,5,6]

[1,2,3],[4,5,6]

[5,7,9]

None

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function converts a string to a list in python?

list.index(obj)

list.insert(index,obj)

list.pop(obj=list[-1])

list.remove(obj)

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