subject

Java Questions Exercise on Lesson 13

What is the ASCII code for ‘A’?

What is the ASCII code for ‘Z’?

What is the ASCII code for ‘a’?

What is the ASCII code for ‘z’?
How many letters are in the English alphabet?

What is the ASCII code for the character ‘0’ (this is the number 0 and not the letter O)?

What is the ASCII code for the character ‘9’?

What does the following code do? char c;
for (int j = 97; j =65) ) ch = (char)(ch + 32);
System. out. print(ch);

}

Write code that will convert char a into a String.

Write code that will convert String p into a character. (p consists of just one letter.)
12. Is this legal?
char ch = ‘V’;
String sd = ch;

13-5
13. Is this legal?
char ch = ‘V’;
char x = (char)(ch + 56);
14. Is this legal?
char aa = “X”;

char k = ‘B’;
System. out. println(k + 3); //What’s printed?

char k = ‘B’;
System. out. println( (char)(k + 3) ); //What’s printed?
Write code that will insure that an uppercase version of char boy is stored in char cv.

Write code that will insure that a lowercase version of char boy is stored in char cv.

If you have a character called bv, what could you do to determine if it’s a digit?

If you have a character called bv, what could you do to determine if it’s a letter?

If you have a character called bv, what could you do to determine if it’s an uppercase character?

If you have a character called bv, what could you do to determine if it’s either a letter or a digit?

If you have a character called bv, what could you do to determine if it’s a lowercase character?
24. Describe what the following code does. for(int j = 0; j <= 127; j++)
{

char ch = (char)j;
if (Character. isWhitespace(ch) ) System. out. println(j);
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 07:00
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
question
Computers and Technology, 22.06.2019 07:30
An endless cycle of creation and response on the internet is called
Answers: 1
question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
You know the right answer?
Java Questions Exercise on Lesson 13

What is the ASCII code for ‘A’?

What i...
Questions
question
Chemistry, 27.01.2021 23:00
question
Biology, 27.01.2021 23:00
Questions on the website: 13722360