115,139 views
28 votes
28 votes
15 points! Introduction to Computer Science. (Picture included)

The user is told to guess a number between one and 10.
Which responses from the user could cause the program to halt with an error statement? Choose two options.

15 points! Introduction to Computer Science. (Picture included) The user is told to-example-1
User Fozle Rabbi Shafi
by
2.6k points

1 Answer

24 votes
24 votes

Answer:

2.5, two

Step-by-step explanation:

Most likely user input should be of type int, which is whole numbers, so 2.5 (double/float) and two (string) are incorrect

User Nonin
by
3.3k points