Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Binder Early Objects
Quiz 5: Decisions
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 101
Multiple Choice
A company applies a discount based on the size of the order. If the order is over $50, the discount is 5%. If the order is over $100, the discount is 10%. Otherwise, there is no discount. If the integer variable order contains the size of the order, which of the following will assign the double variable discount the correct value?
Question 102
Multiple Choice
What will be printed by the statements below? Int a = 10; Int b = 20; Int count = 0; If (a > 5) { Count ++; } Else if (b > 5) { Count ++; } Else if (a > 10) { Count ++; } Else if (b > 10) { Count ++; } System.out.print (count) ;
Question 103
Multiple Choice
Which of the following conditions will correctly check if the String variable greeting is "bonjour"?
Question 104
Multiple Choice
Which of the following performs the same way as the switch statement below? switch (value) { Case 1: System.out.print ("Small") ; break; Case 10: System.out.print ("Large") ; break; Default: System.out.print ("Other") ; break; }
Question 105
Multiple Choice
Which of the following conditions tests for the user to enter the string "Hello"? String s; Scanner in = new Scanner(System.in) ; System.out.print("Enter a word: ") ; S = in.next() ;
Question 106
Multiple Choice
Which of the following conditions can be added to the code below so it will assign the larger value of two integer variables a and b to the integer variable maximum? If (/* put condition here */) { Maximum = a; } Else { Maximum = b; }