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: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
You know the right answer?
Java Questions Exercise on Lesson 13

What is the ASCII code for ‘A’?

What i...
Questions
question
Mathematics, 23.09.2019 18:50