String Function Application in Python Quiz

String Function Application in Python Quiz

10th Grade

10 Qs

quiz-placeholder

Similar activities

Basic Parts of Speech EPS

Basic Parts of Speech EPS

9th - 10th Grade

10 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

Explorando Tinkercad en Secundaria

Explorando Tinkercad en Secundaria

7th Grade - University

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Python List

Python List

4th Grade - University

15 Qs

# REVIEW 1 DATA TYPES

# REVIEW 1 DATA TYPES

10th Grade

15 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

String Function Application in Python Quiz

String Function Application in Python Quiz

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

hemlata singhal

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is the correct way to extract the first three characters from a string in Python?

str[:3]

str[0:2]

str[1:3]

str[0:3]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which function is used to find the length of a string?

len()

length()

size()

count()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet? str1 = "Hello" str2 = "World" result = str1 + str2 print(result)

HelloWorld

Hello World

HelloWorld

Hello, World

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? str1 = "Python" print(str1.upper())

python

PYTHON

PyThOn

PythOn

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to find the index of the first occurrence of a substring in a string in Python?

find()

index()

search()

locate()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? str1 = "Python Programming" print(str1[7:])

Programming

Python

Program

ming

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? str1 = "Hello, World!" print(str1.replace("Hello", "Hi"))

Hi, World!

Hello, Hi!

Hi, Hi!

Hello, World!

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?