1/23
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
string, System.String
In C#, the ___ is represented as a sequence of characters. It is an object of ____ class
string
The string can be declared by using the keyword ___ which is an alias for the System.String object.
Length
The property calculates the words in the string and displays the length of the specified string.
Substring()
The ____ method is used to get a part of the string from a given string.
index, index, string
Substring accepts an integer parameter as an ____. The ____ specifies the start point of the substring. The method returns a ___
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 ___
IndexOf()
It accepts a character as a parameter and returns an integer value defining the position of the character inside the string
Replace()
The ____ method is used to replace a certain set of concurrent characters from a given string
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
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.
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.
Concat()
A ____ method helps combine or concatenate several strings. It returns a combined string.
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”.
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.
EndsWith()
It is used to check that the end of this string instance matches the specified string.
LastIndexOf()
It is used to report the zero-based index position of the last occurrence of a specified character within String.
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
Split()
It is used to split a string into substrings that are based on the characters in an array
StartsWith()
It is used to check whether the beginning of this string instance matches the specified string.
ToLower()
It is used to convert string into lowercase
ToUpper()
It is used to convert string into uppercase
TrimEnd()
It is used to remove all trailing occurrences of a set of characters specified in an array from the current string object.
TrimStart()
It is used to remove all leading occurrences of a set of characters specified in an array from the current string object.
Length
Substring()
IndexOf()
Replace()
Insert()
Trim()
Concat()
Contains()
Equals()
EndsWith()
StartsWith()
LastIndexOf()
Remove()
Split()
ToLower()
ToUpper()
TrimEnd()
TrimStart()
String methods: