Search Header Logo
G11- Strings

G11- Strings

Assessment

Presentation

Computers

11th Grade

Practice Problem

Easy

Created by

Sara Esam

Used 1+ times

FREE Resource

7 Slides • 2 Questions

1

Discovering string features

2

3

media

Give a real example of using Strings Features.

4

String Methods

  • Length

  • StartsWith ( )

  • EndsWith ( )

  • Contains ( )

  • ToLower( )

  • ToUpper( )

  • PadRight ( )

  • TrimStart()

5

string txt = "Hello";
String M = txt.Contains("H")? "Yes": "No" ;

Console.WriteLine(M);

Condition Calling

string txt = "Hello";

Console.WriteLine(txt.Length);
Console.WriteLine(txt.ToUpper( ));

Normal Calling

Calling the functions

6

Fill in the Blanks

7

Multiple Choice

.................................... which returns a copy of the string converted to uppercase or lowercase

1

Upper() and ToLower(),

2

ToUpper() and Lower(),

3

ToUpper() and ToLower(),

4

Upper() and Lower(),

8

Group Work

Ask the user to enter a text then convert it into UpperCase and see if it contains the letter 'a'.

9

Individual Work

Have a text then add # to the beginning of the string, then trim the beginning.

Discovering string features

Show answer

Auto Play

Slide 1 / 9

SLIDE