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.55, what is the value of lblAdmissionsStatus.Text if the applicant's SAT score is 1000?

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


Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. A Path represents the location of a file or directory. b. Path objects open files and provide file-processing capabilities. c. Class Paths is used to get a Path object representing a file or directory location. d. The static method get of class Paths converts a String representing a file’s or directory’s location into a Path object.

Computer Science & Information Technology

Presenting or generating authentication information that corroborates the binding between the entity and the identifier is the ___________ step.

A. identification B. verification C. clarification D. authentication

Computer Science & Information Technology

Which of the following is an example of ransomware that takes a computer or its data hostage in an effort to extort money from victims?

A) SpyEye B) WannaCry C) Sapphire D) Slammer

Computer Science & Information Technology

What is a component?

a. It is a subgraph in which any two vertices are connected to each other by paths, and which are connected to no additional vertices in the supergraph b. It is any subgraph of a given graph c. It is a path of edges and vertices wherein a vertex is reachable from itself d. It's a plane divided into separate parts by the planar graph

Computer Science & Information Technology