MCQs
Total Questions : 10
Answer: Option D. -> N
None.
Output:
$ javac Output.javac
java Output command Line 10 A b 4 N
N
Answer: Option C. -> 20
None.
Output:
$ javac Output.javac
java Output command Line 10 A b 4 N
20
Answer: Option C. -> This is a command Line
None.
Output:
$ javac Output.javac
java Output This is a command Line
This is a command Line
Answer: Option D. -> command
None.
Output:
$ javac Output.javac
java Output This is a command Line
command
Answer: Option D. -> is
None.
Output:
$ javac Output.javac
java Output This is a command Line
This
Answer: Option B. -> No
All command Line arguments are passed as a string. We must convert numerical
value to their internal forms manually.
Answer: Option A. -> Infinite
None.
Answer: Option C. -> args is an array of String.
args in an array of String.
Answer: Option C. -> String
None.
Answer: Option A. -> main().
Only main() method can be given parameters via using command line arguments.