Multiple Choice
What will be displayed as a result of executing the following code? int x = 6;
String msg = "I am enjoying this class.";
String msg1 = msg.toUpperCase() ;
String msg2 = msg.toLowerCase() ;
Char ltr = msg.charAt(x) ;
Int strSize = msg.length() ;
System.out.println(msg) ;
System.out.println(msg1) ;
System.out.println(msg2) ;
System.out.println("Character at index x = " +
Ltr) ;
System.out.println("msg has " + strSize +
"characters.") ;
A) I am enjoying this class.
I AM ENJOYING THIS CLASS.
I am enjoying this class.
Character at index x = e
Msg has 24 characters.
B) I am enjoying this class.
I AM ENJOYING THIS CLASS.
I am enjoying this class.
Character at index x = e
Msg has 25 characters.
C) I am enjoying this class.
I AM ENJOYING THIS CLASS.
I am enjoying this class.
Character at index x = n
Msg has 24 characters.
D) I am enjoying this class.
I AM ENJOYING THIS CLASS.
I am enjoying this class.
Character at index x = n
Msg has 25characters.
Correct Answer:

Verified
Correct Answer:
Verified
Q33: Given the declaration double r;, which of
Q34: If x has been declared an int,
Q35: To display the output on the next
Q36: What will be displayed after the following
Q37: Which one of the following would contain
Q39: What is the result of the following
Q40: A variable's scope is the part of
Q41: In the following Java statement what value
Q42: To print "Hello, world" on the monitor,
Q43: The term _ typically refers to the