Exam 2: Console Input and Output
Exam 1: Getting Started46 Questions
Exam 2: Console Input and Output29 Questions
Exam 3: Flow of Control43 Questions
Exam 4: Defining Classes I44 Questions
Exam 5: Defining Classes Ii46 Questions
Exam 6: Arrays47 Questions
Exam 7: Inheritance43 Questions
Exam 8: Console Input and Output43 Questions
Exam 9: Exception Handling45 Questions
Exam 10: File IO46 Questions
Exam 12: Uml and Patterns22 Questions
Exam 13: Interfaces and Inner Classes32 Questions
Exam 14: Generics and the Arraylist Class31 Questions
Exam 15: Linked Data Structures43 Questions
Exam 16: Collections and Iterators44 Questions
Exam 17: Swing I37 Questions
Exam 18: Swing II31 Questions
Exam 19: Java Never Ends18 Questions
Exam 11: Recursion43 Questions
Exam 20: Applets25 Questions
Select questions type
What does the following code output?
DecimalFormat dfQuestion = new DecimalFormat("#0.##E0");
System.out.println(dfQuestion.format(12.7896987));
(Multiple Choice)
4.8/5
(40)
The class NumberFormat allows you to specify a constant representing which country's currency format should be used.To use this constant you must import:
(Multiple Choice)
4.8/5
(29)
Write a Java statement to create and initialize a Scanner object named input.
(Short Answer)
4.8/5
(31)
Valid arguments to the System.out object's println method include:
(Multiple Choice)
4.9/5
(40)
Write Java statements to apply currency formatting to the number 100.Indicate the package you need to import.
(Essay)
4.9/5
(35)
What does the following code output?
DecimalFormat percent = new DecimalFormat("0.00%");
System.out.println(percent.format(0.308));
(Multiple Choice)
4.8/5
(39)
Showing 21 - 29 of 29
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)