String Manipulation Review

String Manipulation Review

11th Grade

25 Qs

quiz-placeholder

Similar activities

CORLANG Week6-7

CORLANG Week6-7

10th Grade - University

20 Qs

business 1.4 revision

business 1.4 revision

KG - Professional Development

20 Qs

Google SketchUp Tool

Google SketchUp Tool

KG - University

20 Qs

Functions in C++

Functions in C++

11th Grade

20 Qs

1.1.3 Proses Penyelesaian Masalah

1.1.3 Proses Penyelesaian Masalah

11th Grade

20 Qs

Pengetahuan Dasar Komputer

Pengetahuan Dasar Komputer

9th - 12th Grade

20 Qs

Visual Basic Assessment

Visual Basic Assessment

11th - 12th Grade

21 Qs

String Manipulation Review

String Manipulation Review

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Harmeet Kaur

Used 16+ 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

30 sec • 1 pt

What does traversing a string mean?

Reversing a string

Accessing the individual characters of a string

Counting the number of vowels in a string

Concatenating two strings

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ord() function do in Python?

Splits the string based on a delimiter

Replaces old text with new text in a string

Returns the ordinal position of a single character

Counts the number of characters in a string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the code fragment: print('Tom' + 'Jerry')?

JerryTom

Tom & Jerry

Jerry & Tom

TomJerry

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the isdigit() function do in Python?

Returns True if all the characters in the string are in capital letters

Returns True if all the characters in the string are in small letters

Returns True if the string contains only spaces

Returns True if all the characters in the string are digits

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the code fragment: print('Hello World'.upper().lower())?

hELLO wORLD

Hello World

hello world

HELLO WORLD

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the split() function in Python?

Counts the number of occurrences of a word in the string

Converts the entire string to lowercase

Converts the entire string to uppercase

Splits the string based on a delimiter and stores the result in a list

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the code fragment: print('0123456789'[3], ',', '012', '-', '234')?

3, 012, 234, 345

3, 012, 234, 012

3, 012, 234, 234

3, 012, 234

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?