Search Header Logo
String Method

String Method

Assessment

Presentation

Computers

10th Grade

Practice Problem

Hard

Created by

Charlyn Warren

Used 3+ times

FREE Resource

15 Slides • 3 Questions

1

media

2

media

3

media

4

media

5

media

6

media

7

media

8

media

9

media

10

media

11

Multiple Choice

What is the outcome of applying the `string.swapcase()` method to the string "Hello World"?

1

A) HELLO WORLD

2

B) hello world

3

C) hELLO wORLD

4

D) HeLlO wOrLd

12

media

13

media

14

media

15

media

16

media

17

Open Ended

Prepare to discuss:

How can we search for all occurrences of the letter a in the string Aardvark regardless of the letter’s capitalization now that we know about string methods?

18

Multiple Choice

Exit Ticket:

What is the primary function of string methods in computer programming?

1

A) To create new strings from scratch.

2

B) To manipulate and transform existing strings.

3

C) To store strings in memory.

4

D) To display strings on the screen.

media

Show answer

Auto Play

Slide 1 / 18

SLIDE