Which of the following statements is correct?

a. Integer.parseInt("12", 2);
b. Integer.parseInt(100);
c. Integer.parseInt("100");
d. Integer.parseInt(100, 16);
e. Integer.parseInt("345", 8);


c. Integer.parseInt("100");
e. Integer.parseInt("345", 8);
(A) is incorrect because 12 is not a binary number. (B) and (D) are incorrect because the first argument in the parseInt method must be a string.

Computer Science & Information Technology

You might also like to view...

Which of the following buttons is used to sort the data in one column in descending order?

A.
B.
C.
D.

Computer Science & Information Technology

To sort a report, click ________ in the Grouping & Totals group to display the Group, Sort, and Total section

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can use the Zoom slider, located at the far right of the status bar, to set the magnification level of your document.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following would NOT be considered part of document or paragraph layout?

A) Font style B) Indents C) Line spacing D) Margins

Computer Science & Information Technology