Python quiz-2

Python quiz-2

University

25 Qs

quiz-placeholder

Similar activities

CN_Minor2

CN_Minor2

University

20 Qs

Information Management - QUIZ

Information Management - QUIZ

University

20 Qs

Briefing Besar PIM III

Briefing Besar PIM III

University

20 Qs

LINKEDLIST- DSA -2-3

LINKEDLIST- DSA -2-3

University

20 Qs

Midterm InfoTech2

Midterm InfoTech2

University

20 Qs

MS WORD- CHAPTER 11

MS WORD- CHAPTER 11

University

20 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

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