Unit 3 progress check FRQ Computer Science

Ap Eng Unit 3 Progress Check FRQ from APStudents

Posting this since I don't see the full exam done in the subreddit.

1./ I and III only

2./ 12

3./ (int)(Math.random() * 10) + 10

4./ b >= a || a >= b

5./ II only

6./ A && (A || B)

7./ I, II, and III

8./ >=,&&,<=

9./ true only when x and y have the same value

10./ if (val < 80 || val >= 90)

11./ if y == 0 is true it doesn't evaluate x * y > 10

12./ A || (!A && !B)

13./ Prints "*" if the String s contains only non-letter characters

14./ if a < b is false it doesn't evaluate c != d

15./ x >= y || w != z

16./ always true

17./ (x < y) && (y == 5)

18./ yes no yes

19./ True only when x and y have different values

20./ not equal

Confirmed to work by me.

(a)if (rsvp){System.out.println(“attending”)}else{System.out.println(“not attending”)}(b)if (selection == 1){System.out.println(“beef”);}else if (selection == 2){System.out.println(“chicken”);}else if (selection == 3){System.out.println(“pasta”);}else{System.out.println(“fish”);}(c)if (rsvp){option1 = “Thanks for attending. You will be served”;if (selection == 1){System.out.println(“beef”);}else if (selection == 2){System.out.println(“chicken”);}else if (selection == 3)