Deck 23: The String Section String Manipulation

ملء الشاشة (f)
exit full mode
سؤال
The syntax for the trim method is ____.

A) Trim.string
C) string.TrimMethod
B) string.Trim
D) trim(string)
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
You can use the ____ method to remove any spaces from both the beginning and end of a string.

A) Clean
C) Cut
B) CleanWhiteSpace
D) Trim
سؤال
The syntax of the Replace method is ____.

A) Replace.string(oldValue, newValue)
B) string.Replace(newValue, oldValue)
C) string.Replace(oldValue, newValue)
D) string.Replace(newValue)(oldValue)
سؤال
When processing the Insert method, the computer makes a temporary copy of the string in memory, and then inserts the characters in the copy only.
سؤال
When processing the Trim method, the computer first makes a permanent backup copy of the string in memory.
سؤال
When entering data in a text box or input box, it's not unusual for a user to inadvertently press the spacebar either before or after typing the data.
سؤال
You can use the ____ method to search a string to determine whether it contains a specific sequence of characters.

A) IndexOf
C) Location
B) Index
D) Locate
سؤال
Visual Basic provides the Replace method for replacing a sequence of characters in a string with another sequence of characters.
سؤال
The syntax of the length property is ____.

A) string.Length
C) Length.string
B) Length(string)
D) string.Len
سؤال
The startIndex argument is not optional in the IndexOf method's syntax.
سؤال
Using the Insert method to insert a value beginning with the fifth character in a string, you use a starting index of 5.
سؤال
The Trim method removes characters from the original string.
سؤال
You insert characters using the ____ method.

A) Insert
C) Input
B) InStr
D) InsertInto
سؤال
The syntax of the insert method is ____.

A) string.Insert(value,startIndex)
B) Insert(startIndex,value).string
C) string.Insert(value).startIndex
D) string.Insert(startIndex, value)
سؤال
The Trim method returns a string that excludes any leading or trailing spaces.
سؤال
The first character in a string has an index of 1.
سؤال
The Like operator evaluates to True when the string matches the pattern.
سؤال
The number of characters contained in a string is stored in the string's ____ property.

A) Size
C) Length
B) Len
D) StringLength
سؤال
If an application expects the user to enter a seven-digit phone number or a five-digit ZIP code, the application's code should verify that the user entered the required number of characters.
سؤال
Applications rarely need to manipulate (process) string data.
سؤال
Visual Basic provides the ____ method for accessing any number of characters contained in a string.

A) Portion
C) Substring
B) PartialString
D) PieceString
سؤال
The syntax for the substring method is ____.

A) Substring.string(startIndex)
B) string.Substring(startIndex[, numCharsToAccess])
C) string.Substring(numCharsToAccess,startIndex)
D) string.Substring([numCharsToAccess],startIndex)
سؤال
The syntax of the IndexOf method is ____.

A) string.IndexOf(subString[, startIndex])
B) string.IndexOf.subString
C) subString.IndexOf(string)
D) string.IndexOf(startIndex, subString)
سؤال
The ____ operator allows you to use pattern-matching characters to determine whether one string is equal to another string.

A) Similar
C) HasSimilarity
B) Comparable
D) Like
سؤال
You also can include a range of values in a character list by using a(n) ____ to separate the lowest value in the range from the highest value in the range.

A) hyphen
C) equal sign
B) apostrophe
D) plus sign
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 23: The String Section String Manipulation
1
The syntax for the trim method is ____.

A) Trim.string
C) string.TrimMethod
B) string.Trim
D) trim(string)
B
2
You can use the ____ method to remove any spaces from both the beginning and end of a string.

A) Clean
C) Cut
B) CleanWhiteSpace
D) Trim
D
3
The syntax of the Replace method is ____.

A) Replace.string(oldValue, newValue)
B) string.Replace(newValue, oldValue)
C) string.Replace(oldValue, newValue)
D) string.Replace(newValue)(oldValue)
C
4
When processing the Insert method, the computer makes a temporary copy of the string in memory, and then inserts the characters in the copy only.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
When processing the Trim method, the computer first makes a permanent backup copy of the string in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
When entering data in a text box or input box, it's not unusual for a user to inadvertently press the spacebar either before or after typing the data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
You can use the ____ method to search a string to determine whether it contains a specific sequence of characters.

A) IndexOf
C) Location
B) Index
D) Locate
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Visual Basic provides the Replace method for replacing a sequence of characters in a string with another sequence of characters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
The syntax of the length property is ____.

A) string.Length
C) Length.string
B) Length(string)
D) string.Len
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
The startIndex argument is not optional in the IndexOf method's syntax.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Using the Insert method to insert a value beginning with the fifth character in a string, you use a starting index of 5.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
The Trim method removes characters from the original string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
You insert characters using the ____ method.

A) Insert
C) Input
B) InStr
D) InsertInto
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
The syntax of the insert method is ____.

A) string.Insert(value,startIndex)
B) Insert(startIndex,value).string
C) string.Insert(value).startIndex
D) string.Insert(startIndex, value)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
The Trim method returns a string that excludes any leading or trailing spaces.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
The first character in a string has an index of 1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
The Like operator evaluates to True when the string matches the pattern.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
The number of characters contained in a string is stored in the string's ____ property.

A) Size
C) Length
B) Len
D) StringLength
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
If an application expects the user to enter a seven-digit phone number or a five-digit ZIP code, the application's code should verify that the user entered the required number of characters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Applications rarely need to manipulate (process) string data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Visual Basic provides the ____ method for accessing any number of characters contained in a string.

A) Portion
C) Substring
B) PartialString
D) PieceString
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
The syntax for the substring method is ____.

A) Substring.string(startIndex)
B) string.Substring(startIndex[, numCharsToAccess])
C) string.Substring(numCharsToAccess,startIndex)
D) string.Substring([numCharsToAccess],startIndex)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
The syntax of the IndexOf method is ____.

A) string.IndexOf(subString[, startIndex])
B) string.IndexOf.subString
C) subString.IndexOf(string)
D) string.IndexOf(startIndex, subString)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
The ____ operator allows you to use pattern-matching characters to determine whether one string is equal to another string.

A) Similar
C) HasSimilarity
B) Comparable
D) Like
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
You also can include a range of values in a character list by using a(n) ____ to separate the lowest value in the range from the highest value in the range.

A) hyphen
C) equal sign
B) apostrophe
D) plus sign
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.