Services
Discover
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 Late Objects
Exam 4: Loops
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
Given the following code snippet, what should we change to have 26 alphabet characters in the string str? String str = ""; For (char c = 'A'; c < 'Z'; c++) { Str = str + c; }
Question 42
Multiple Choice
What is the last output line of the code snippet given below? Int i = 5; While (i >= 1) { Int num = 1; For (int j = 1; j <= i; j++) { System.out.print(num + "**") ; Num = num * 2; } System.out.println() ; I = i - 1; }
Question 43
Multiple Choice
What is the output of the following code snippet? Double a = 2; Int n = 16; Double r = 1; Double b = a; Int i = n; While (i > 0) { If (i % 2 == 0) // n is even { B = b * b; I = i / 2; } Else { R = r * b; I--; } } System.out.println("r = " + r) ;