What is displayed when the code corresponding to the following program segment is run?
Set Y = 1
If Sort (Y − 1) == 0 Then
Write "YES"
Else
Write "NO"
End If
Q94
What is displayed when the code corresponding to the program segment below is run with the following:
a. X = 4
b. X = 0
Declare X As Integer
Input X
If X != 0 Then
Write 1/X
Write "The reciprocal of 0 is not defined."
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here