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 04:30
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
question
Computers and Technology, 22.06.2019 05:00
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. after the loop terminates, it prints out, on a line by itself and separated by spaces, the sum of all the even integers read, the sum of all the odd integers read, a count of the number of even integers read, and a count of the number of odd integers read, all separated by at least one space. declare any variables that are needed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 3
question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
What are "open-loop" and "closed-loop" systems
Answers: 1
You know the right answer?
Java Questions Exercise on Lesson 13

What is the ASCII code for ‘A’?

What i...
Questions
question
Mathematics, 25.11.2021 14:00
question
Mathematics, 25.11.2021 14:00
question
Mathematics, 25.11.2021 14:00
Questions on the website: 13722363