Python quiz-2

Python quiz-2

University

25 Qs

quiz-placeholder

Similar activities

YAY! Fridate with ComSSA (Network 101)

YAY! Fridate with ComSSA (Network 101)

University

20 Qs

Bridge course with C

Bridge course with C

University

20 Qs

MOTD 2 DSE-C

MOTD 2 DSE-C

University

20 Qs

SUMMATIVE TEST (GRADE 8 - COMPUTER)

SUMMATIVE TEST (GRADE 8 - COMPUTER)

University

20 Qs

Quiz CSA (Final)

Quiz CSA (Final)

University

20 Qs

ICT554 - Storage Management

ICT554 - Storage Management

University

20 Qs

Text me!

Text me!

University

20 Qs

Control Structures  C#

Control Structures C#

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