Code Segment 1if (a > 0)   if (b < 0)      x = x + 5;   else...

Code Segment 1if (a > 0)   if (b < 0)      x = x + 5;   else      if (a > 5)         x = x + 4;      else         x = x + 3;else   x = x + 2; Refer to Code Segment 1. If x is currently 0, a = 5 and b = 5, what will x become after the statement shown is executed?   

Consider the following code that will assign a letter grade…

Consider the following code that will assign a letter grade of ‘A’, ‘B’, ‘C’, ‘D’, or ‘F’ depending on a student’s test score. if (score >= 90)    grade = ‘A’; if (score >= 80)    grade = ‘B’; if (score >= 70)    grade = ‘C’; if (score >= 60)    grade = ‘D’; else    grade = ‘F’;