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

Author Question: Which of the sets of statements below will add 1 to x if x is positive and subtract 1 from x if x is ... (Read 29 times)

captainjonesify

  • Hero Member
  • *****
  • Posts: 543

Question 1

Which of the following are true statements about check boxes?
◦ they may be checked or unchecked
◦ radio buttons are a special kind of check boxes
◦ they are Java components
◦ you can control whether or not they will be visible
◦ all of these

Question 2

Which of the sets of statements below will add 1 to x if x is positive and subtract 1 from x if x is negative but leave x alone if x is 0?
◦ if (x > 0) x++;
else x--;
◦ if (x > 0) x++;
else if (x < 0) x--;
◦ if (x > 0) x++;
if (x < 0) x--;
else x = 0;
◦ if (x == 0) x = 0;
else x++;
x--;
◦ x++;
x--;


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by captainjonesify on Aug 30, 2020

kthug

  • Sr. Member
  • ****
  • Posts: 332
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




captainjonesify

  • Member
  • Posts: 543
Reply 2 on: Aug 30, 2020
:D TYSM


Animal_Goddess

  • Member
  • Posts: 339
Reply 3 on: Yesterday
Excellent

 

Did you know?

In 2010, opiate painkllers, such as morphine, OxyContin®, and Vicodin®, were tied to almost 60% of drug overdose deaths.

Did you know?

This year, an estimated 1.4 million Americans will have a new or recurrent heart attack.

Did you know?

Only 12 hours after an egg cell is fertilized by a sperm cell, the egg cell starts to divide. As it continues to divide, it moves along the fallopian tube toward the uterus at about 1 inch per day.

Did you know?

The first documented use of surgical anesthesia in the United States was in Connecticut in 1844.

Did you know?

To maintain good kidney function, you should drink at least 3 quarts of water daily. Water dilutes urine and helps prevent concentrations of salts and minerals that can lead to kidney stone formation. Chronic dehydration is a major contributor to the development of kidney stones.

For a complete list of videos, visit our video library