What is the return value of "SELECT".substring(0, 5)?
a. "SELECT"
b. "SELEC"
c. "SELE"
d. "ELECT"
b Note that the sustring is from index 0 to 4, which is 5 - 1 . The correct answer is B.
You might also like to view...
The following statement for(int val : myArray) cout << val << " "; is an example of a(n)
A) regular for loop. B) range-based for loop. C) nested for loop. D) infinite for loop. E) illegal statement.
Desk-checking is also called pencil-tracing, because the programmer uses a pencil and paper to follow each of the algorithm's instructions.
Answer the following statement true (T) or false (F)
Computer users today typically learn new commands for each GUI interface they use.
Answer the following statement true (T) or false (F)
COGNITIVE ASSESSMENT What is NOT an advantage of ERP?
A. complete integration of information systems across departments B. better project management C. improved customer service D. supports access control, security, version tracking of documents