Case 5-1

You have written the code below and you want to step through it with some actual values to make sure that it is working in practice the way you expect it to work.
?
If decGPA > 3.5 Then
            If intSatScore > 1000 Then
                        lblAdmissionsStatus.Text = "You have earned admission"
            Else
                        lblAdmissionsStatus.Text = "Retake the SAT exam"
            EndIf
Else
            If intSatScore > 1200 Then
                        lblAdmissionsStatus.Text = "You have earned probationary admission"
            Else
                        lblAdmissionStatus.Text = "You have been denied admission"
            End If
End If
Assuming that an applicant has a GPA of 3.5, what is the value of lblAdmissionsStatus.Text if the applicant's SAT score is 1200?

A. Retake the SAT exam
B. You have earned admission
C. You have earned probationary admission
D. You have been denied admission


Answer: D

Computer Science & Information Technology

You might also like to view...

Which is not one of the basic steps involved in creating a sequential file?

a. Open the file b. Create the contents of the file c. Close the file d. All of the above must be done to create a sequential file

Computer Science & Information Technology

A false outcome for the continuation test means

a. terminate the loop b. terminate the program c. continue the loop d. restart the program

Computer Science & Information Technology

Data is organized on the platter in a concentric set of rings called ________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In C#, all ________ must be declared, or reported to the compiler by program code.

a) keywords b) modifiers c) built-in data types d) variables

Computer Science & Information Technology