inst Semerte
ivengoogle.com/file/d/15EM4oyQ0-HKn21Yku2QbsPW8MFnhNZnc/view
(C) spin \( ~ R \) RANDOM 1, 6
(D) spin ΰ° RANDOM 1,8
8. Consider the following code segment, where exam and presentation are integer variables and grade is a string variable.
```
IF(fexam > 90) AND (presentation > 80))
l
grade - "A"
1
IE(lexam > 80) OR (presentation > 751)
l
grade - "B"
l
ELSE
l
IF((exam > 70) OR (presentation > 60))
l
grade - "C"
l
ELSE
l
IF(exam > 60)
l
grade - "D"
l
ELSE
l
grade - "F"
l
1
l
```
Under which of the following conditions will the value "C" be assigned to the variable grade ?
(A) When the value of exam is 70 and the value of presentation is 50
(B) When the value of exam is 70 and the value of presentation is 80
(C) When the value of exam is 80 and the value of presentation is 60
(D) When the value of exam is 80 and the value of presentation is 80
Poge 6 of 22
AP Computer Science Principles
rollyeter
CSP Eipal Exam - First Semester
Page
6
1 25
Test Bookles