Because the square root of a negative number is not defined, what is the result of this statement:
System.out.println (Math.sqrt(-16));
A. Runtime error message
B. Syntax error
C. NaN
D. -4
Answer: C
You might also like to view...
Which of the following statements is false?
a. Functional-style programming lets you simply say what you want to do. It hides many details of how to perform each task. b. Typically, library code handles the how for you. As you’ll see, this can elimi-nate many errors. c. Consider the for statement in many other programming languages. Typically, you must specify all the details of counter-controlled iteration: a control variable, its initial value, how to increment it and a loop-continuation condition that uses the control variable to determine whether to continue iterating. This style of iteration is known as external iteration and is error-prone. d. Functional-style programming emphasizes mutability—it uses only opera-tions that modify variables’ values.
If a given column displays a series of ____, the information is too wide to display within the width of the column.
A. pound signs B. question marks C. exclamation points D. ampersands
________ Format Painter allows you to use it multiple times
A) Right-clicking B) Double-clicking C) Clicking while pressing Ctrl D) Clicking while pressing Alt
What type of variable is the RUBY_PLATFORM special variable?
A. integer B. float C. bignum D. string