Strings

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 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

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.

7
New cards

Replace

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

8
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.

9
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.

10
New cards

concat

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

11
New cards

Contain, boolean

____ method is used to determine if a particular substring is present inside a given string or not. Contains 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”.

12
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.

13
New cards

EndsWith()

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

14
New cards

LastIndexOf()

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

15
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

16
New cards

Split()

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

17
New cards

StartsWith()

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

18
New cards

ToLower()

It is used to convert string into lowercase

19
New cards

ToUpper()

It is used to convert string into uppercase

20
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.

21
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.

22
New cards

Length

Substring()

IndexOf()

Replace()

Insert()

Trim()

Concat()

Contains()

Equals()

EndsWith()

StartsWith()

LastIndexOf()

Remove()

Split()

ToLower()

ToUpper()

TrimEnd()

TrimStart()

String methods: