Suppose that you have the declaration:int num = 94;double x = 73.92;String str = "Programming";What is the output of the following statements?System.out.println("123456789012345678901234567890");System.out.printf("%5d%6.2f %15s%n", num, x, str);

A. 123456789012345678901234567890
   94 73.92     Programming
B. 123456789012345678901234567890
   94 73.92    Programming
C. 123456789012345678901234567890
   94  73.92    Programming
D. 123456789012345678901234567890
   94     73.92    Programming

Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following is not a best practice for cryptographic key management?

A) Keys should be transmitted and stored by secure means. B) Keys should be properly destroyed when their lifetime ends. C) Keys should be presented in clear text. D) Key values should be random, and the full spectrum of the keyspace should be used.

Computer Science & Information Technology

How much memory is reserved for the following variables in MS Visual C++?

``` int s, int *s_ptr; float q, *q_ptr;``` A. 10 B. 13 C. 16 D. 18

Computer Science & Information Technology