The character escape sequence to force the cursor to go to the next line is: |
\n |
The character escape sequence to force the cursor to advance forward to the next tab setting is: |
\t |
The character escape sequence to represent a single quote is: |
\’ |
The character escape sequence to represent a double quote is: |
\" |
The character escape sequence to represent a backslash is: |
\\ |
Declare a character variable named c. |
char c; |
Write a literal representing the largest character value. |
65535 |
Write a loop that displays all possible combinations of two letters where the letters are ‘a’, or ‘b’, or ‘c’, or ‘d’, or ‘e’. The combinations should be displayed in ascending alphabetical order: aa |
for (char i=’a’; i<=’e’; i++) for (char j=’a’; j<=’e’; j++) { System.out.print(i); System.out.println(j); } |
Write the definition of a method printGrade, which has a char parameter and returns nothing. The method prints on a line by itself the message string Grade: followed by the char parameter (printed as a character) to standard output. Don’t forget to put a new line character at the end of your line. |
void printGrade(char c) { System.out.print("Grade: "+c); System.out.println(); } |
Java represents characters using |
Unicode |
With its encoding Java can work with |
65536 |
What’s the difference in UNICODE value between ‘E’ and ‘A’? (consult a table of UNICODE values): |
4 |
What’s the difference in UNICODE value between ‘e’ and ‘a’? (consult a table of UNICODE values): |
4 |
What’s the difference in UNICODE value between ‘3’ and ‘0’? (consult a table of UNICODE values): |
3 |
What’s the difference in UNICODE value between ‘6’ and ‘0’? (consult a table of UNICODE values): |
6 |
MPL 4.3 Review
Share This
Unfinished tasks keep piling up?
Let us complete them for you. Quickly and professionally.
Check Price