Which of the following is an example of an error in input data?

a) a program encounters an instruction to divide by zero
b) an array subscript in a program goes out of range
c) an algorithm that converts a temperature in Celsius to Fahrenheit displays the wrong results
d) a program expects a positive number but reads -23


d.

Computer Science & Information Technology

You might also like to view...

In the following code, what values could be read into number to terminate the while loop?

``` Scanner keyboard = new Scanner(System.in); System.out.print("Enter a number: "); int number = keyboard.nextInt(); while (number < 100 || number > 500) { System.out.print("Enter another number: "); number = keyboard.nextInt(); } ``` a. Numbers less than 100 b. Numbers greater than 500 c. Numbers in the range 100 - 499 d. Numbers in the range 100 - 500

Computer Science & Information Technology

Should an organization choose a new system based on client/server architecture? Why or why not?

What will be an ideal response?

Computer Science & Information Technology

How does a digital signal compare to an analog signal??

What will be an ideal response?

Computer Science & Information Technology

When using physics in Unity, what is the biggest contributor to creating realistic behaviors for a GameObject?

What will be an ideal response?

Computer Science & Information Technology