Python quiz-2

Python quiz-2

University

25 Qs

quiz-placeholder

Similar activities

Refresh your HTML concepts

Refresh your HTML concepts

University

21 Qs

Mid Semester Simulasi Digital

Mid Semester Simulasi Digital

12th Grade - University

20 Qs

soal pemanasan

soal pemanasan

University

20 Qs

Typing words on keyboard (musical instruments)

Typing words on keyboard (musical instruments)

KG - Professional Development

20 Qs

L73_118 Prep for Test

L73_118 Prep for Test

12th Grade - University

20 Qs

QUIZ 2 CO

QUIZ 2 CO

University

20 Qs

Intro to Visual Basic

Intro to Visual Basic

10th Grade - University

20 Qs

DBA CA 2

DBA CA 2

University

20 Qs

Python quiz-2

Python quiz-2

Assessment

Quiz

Computers

University

Medium

Created by

sreenivas pasupuleti

Used 8+ times

FREE Resource

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)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?