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 62 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
Thanks for the timely response, appreciate it


mjenn52

  • Member
  • Posts: 351
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Medication errors are more common among seriously ill patients than with those with minor conditions.

Did you know?

It is difficult to obtain enough calcium without consuming milk or other dairy foods.

Did you know?

It is believed that humans initially contracted crabs from gorillas about 3 million years ago from either sleeping in gorilla nests or eating the apes.

Did you know?

Eat fiber! A diet high in fiber can help lower cholesterol levels by as much as 10%.

Did you know?

For pediatric patients, intravenous fluids are the most commonly cited products involved in medication errors that are reported to the USP.

For a complete list of videos, visit our video library