This topic contains a solution. Click here to go to the answer

Author Question: Which of the following is a possible output for (int)(51 * Math.random())? (Read 20 times)

Evvie72

  • Hero Member
  • *****
  • Posts: 519

Question 1

Assume that the ASCII code for character c is 99 and for a is 97. What is the printout of the following code?

System.out.println("AB" + 'a' + 'c');

◦ AB196
◦ AB9799
◦ ABa99
◦ ABac

Question 2

Which of the following is a possible output for (int)(51 * Math.random())?
◦ 500
◦ 50
◦ 100
◦ 0


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Evvie72 on May 6, 2020

covalentbond

  • Sr. Member
  • ****
  • Posts: 336
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




Evvie72

  • Member
  • Posts: 519
Reply 2 on: May 6, 2020
Gracias!


tandmlomax84

  • Member
  • Posts: 323
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

Patients who have undergone chemotherapy for the treatment of cancer often complain of a lack of mental focus; memory loss; and a general diminution in abilities such as multitasking, attention span, and general mental agility.

Did you know?

Amphetamine poisoning can cause intravascular coagulation, circulatory collapse, rhabdomyolysis, ischemic colitis, acute psychosis, hyperthermia, respiratory distress syndrome, and pericarditis.

Did you know?

Asthma cases in Americans are about 75% higher today than they were in 1980.

Did you know?

Automated pill dispensing systems have alarms to alert patients when the correct dosing time has arrived. Most systems work with many varieties of medications, so patients who are taking a variety of drugs can still be in control of their dose regimen.

Did you know?

The lipid bilayer is made of phospholipids. They are arranged in a double layer because one of their ends is attracted to water while the other is repelled by water.

For a complete list of videos, visit our video library