Deck 23: Screen Scraping Application
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/8
Play
Full screen (f)
Deck 23: Screen Scraping Application
1
The _____property of a string returns the character located at a specific index of a string.
A) Character
B) Chars
C) CharAt
D) Char
E) Index
A) Character
B) Chars
C) CharAt
D) Char
E) Index
Chars
2
The _______method returns a string array containing substrings from the string on which it is called.
A) To Array
B) Get Substrings
C) Split
D) To Words
E) Divide
A) To Array
B) Get Substrings
C) Split
D) To Words
E) Divide
Split
3
The IndexOf method can take_____ as arguments.
A) the substring for which to search
B) the index at which to stop searching
C) the string to search
D) the number of characters to search
E) Both a and b.
A) the substring for which to search
B) the index at which to stop searching
C) the string to search
D) the number of characters to search
E) Both a and b.
Both a and b.
4
The______ method concatenates the elements in a string array, separated by a specified character.
A) Concatenate
B) Join
C) Concat
D) Merge
E) MergeArray
A) Concatenate
B) Join
C) Concat
D) Merge
E) MergeArray
Unlock Deck
Unlock for access to all 8 flashcards in this deck.
Unlock Deck
k this deck
5
The______ method locates the last occurrence of a substring in a string.
A) Substring
B) LastIndexOf
C) IndexOf
D) FindLast
E) None of the above.
A) Substring
B) LastIndexOf
C) IndexOf
D) FindLast
E) None of the above.
Unlock Deck
Unlock for access to all 8 flashcards in this deck.
Unlock Deck
k this deck
6
A string ________.
A) is only declared using the new keyword
B) is immutable
C) can dynamically resize
D) is written as a series of characters surrounded by double quotation marks
E) Both b and d.
A) is only declared using the new keyword
B) is immutable
C) can dynamically resize
D) is written as a series of characters surrounded by double quotation marks
E) Both b and d.
Unlock Deck
Unlock for access to all 8 flashcards in this deck.
Unlock Deck
k this deck
7
The Replace method takes______ as one of its arguments.
A) the original string
B) the index at which to start replacing substrings
C) a string to be inserted in place of a substring of the original string
D) the index at which to stop replacing substrings
E) All of the above.
A) the original string
B) the index at which to start replacing substrings
C) a string to be inserted in place of a substring of the original string
D) the index at which to stop replacing substrings
E) All of the above.
Unlock Deck
Unlock for access to all 8 flashcards in this deck.
Unlock Deck
k this deck
8
If the Substring method is called on a string using only one argument, the method returns ______.
A) the character at the index specified by the argument
B) a copy of the string up to the index specified by the argument
C) a copy of the string starting after the index specified by the argument
D) a copy of the string starting at the index specified by the argument
E) None of the above.
A) the character at the index specified by the argument
B) a copy of the string up to the index specified by the argument
C) a copy of the string starting after the index specified by the argument
D) a copy of the string starting at the index specified by the argument
E) None of the above.
Unlock Deck
Unlock for access to all 8 flashcards in this deck.
Unlock Deck
k this deck