Strings

0.0(0)
studied byStudied by 2 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:18 PM on 10/26/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

string, System.String

In C#, the ___ is represented as a sequence of characters. It is an object of ____ class

2
New cards

string

The string can be declared by using the keyword ___ which is an alias for the System.String object.

3
New cards

Length

The property calculates the words in the string and displays the length of the specified string.

4
New cards

Substring()

The ____ method is used to get a part of the string from a given string.

5
New cards

index, index, string

Substring accepts an integer parameter as an ____. The ____ specifies the start point of the substring. The method returns a ___

6
New cards

IndexOf(), zero

The ____ method is used to find the index of a specific character inside a string. This method provides an index in the form of an integer. It counts the index value starting from ___

7
New cards

IndexOf()

It accepts a character as a parameter and returns an integer value defining the position of the character inside the string

8
New cards

Replace()

The ____ method is used to replace a certain set of concurrent characters from a given string

9
New cards

Replace

It returns a string with characters replaced from the original string. ____ method has two overloads, it can be used to replace both strings as well as characters

10
New cards

Insert()

The ____ method is used for inserting a string at a specific index point, the index method starts with zero. This method inserts the string inside another string and returns a new modified string as the result.

11
New cards

Trim()

The ___ method is used to remove all the whitespace characters at the start and end of a string. It can be used whenever a user needs to remove extra whitespace at the start or end of a given string.

12
New cards

Concat()

A ____ method helps combine or concatenate several strings. It returns a combined string.

13
New cards

Contains(), boolean

____ method is used to determine if a particular substring is present inside a given string or not. ____ method returns a ____ value, hence if the given substring is present inside the string then it will return “true” and if it is absent then it will return “false”.

14
New cards

Equals()

The ____ method is used to validate if the two given strings are the same or not. If both the strings contain the same value then this method will return true and if they contain different value then this method will return false.

15
New cards

EndsWith()

It is used to check that the end of this string instance matches the specified string.

16
New cards

LastIndexOf()

It is used to report the zero-based index position of the last occurrence of a specified character within String.

17
New cards

Remove()

It is used to return a new string in which all the characters in the current instance, beginning at a specified position and continuing through the last position, have been deleted

18
New cards

Split()

It is used to split a string into substrings that are based on the characters in an array

19
New cards

StartsWith()

It is used to check whether the beginning of this string instance matches the specified string.

20
New cards

ToLower()

It is used to convert string into lowercase

21
New cards

ToUpper()

It is used to convert string into uppercase

22
New cards

TrimEnd()

It is used to remove all trailing occurrences of a set of characters specified in an array from the current string object.

23
New cards

TrimStart()

It is used to remove all leading occurrences of a set of characters specified in an array from the current string object.

24
New cards

Length

Substring()

IndexOf()

Replace()

Insert()

Trim()

Concat()

Contains()

Equals()

EndsWith()

StartsWith()

LastIndexOf()

Remove()

Split()

ToLower()

ToUpper()

TrimEnd()

TrimStart()

String methods:

Explore top flashcards

WY 4 Unit 4
Updated 1063d ago
flashcards Flashcards (40)
Ordlista 1
Updated 498d ago
flashcards Flashcards (30)
Bio Cell Membrane
Updated 512d ago
flashcards Flashcards (22)
AP EURO unit 1
Updated 904d ago
flashcards Flashcards (34)
Vocab 6B
Updated 1148d ago
flashcards Flashcards (23)
german final vocab
Updated 1157d ago
flashcards Flashcards (78)
WY 4 Unit 4
Updated 1063d ago
flashcards Flashcards (40)
Ordlista 1
Updated 498d ago
flashcards Flashcards (30)
Bio Cell Membrane
Updated 512d ago
flashcards Flashcards (22)
AP EURO unit 1
Updated 904d ago
flashcards Flashcards (34)
Vocab 6B
Updated 1148d ago
flashcards Flashcards (23)
german final vocab
Updated 1157d ago
flashcards Flashcards (78)