Given the following program, choose the line necessary to replace the ***’s so that the program segment will ensure that an illegal operation does not occur.

```
Write “Enter a number: “
Write “The square root of that number will be displayed.”.
Input MyNumber
********************
Write “The square root of “ + MyNumber
Write “is: “ + Sqrt(MyNumber)
Else
Write “Illegal operation!”
End If
```
a. If MyNumber < 0
b. If MyNumber <= 0
c. If MyNumber >= 0
d. If MyNumber != 0


C

Computer Science & Information Technology

You might also like to view...

MC Function________writes an XML DOM tree’s data to a specified output stream with indentation and carriage returns for readability.

a) Print. b) XmlPrint. c) PrettyPrint. d) None of the above.

Computer Science & Information Technology

Write a code fragment that determines and prints the number of times the character 'z' appears in a String object called name.

What will be an ideal response?

Computer Science & Information Technology

To summarize information efficiently, you can use PowerPoint ____.

A. grids B. columns C. tables D. nexuses

Computer Science & Information Technology

The _____ was formed in 1999 to certify interoperability of wireless network products based on IEEE 802.11 specifications.?

A. ?Wi-Fi Alliance B. ?Institute of Electrical and Electronics Engineers (IEEE) C. ?World Wide Web Consortium (W3C) D. ?Wi-MAX

Computer Science & Information Technology