If you enter 1 0, what is the output of the following code?

What will be an ideal response?


```
#include
using namespace std;

int main()
{
// Read two intergers
cout << "Enter two integers: ";
int number1, number2;
cin >> number1 >> number2;

try
{
if (number2 == 0)
throw number1;

cout << number1 << " / " << number2 << " is "
<< (number1 / number2) << endl;
}
catch (int e)
{
cout << "Exception: an integer " << e <<
" cannot be divided by zero" << endl;
}

cout << "Execution continues ..." << endl;

return 0;
}
```

Computer Science & Information Technology

You might also like to view...

Case-Based Critical Thinking QuestionsCase 5-1Stacy is in the process of organizing the files and folders on her computer. Stacy is trying to decide what kind of folders she wants to store her files in. She has some files that she wants to be able to share with others. Where should Stacy store these files?

A. Private folders because they allow you to share your files with others B. Cloud storage drives because they allow you to share your files with others C. Her Favorites folder because it allows you to share your files with others D. There is no way to make your files shareable

Computer Science & Information Technology

Match the scenario with the Word 2013 feature:

I. Print on only one side of the paper II. Add a Date completed property III. Remove personal data IV. Make a copy each time a file is saved V. Ensure that users of earlier Word versions can view all features in a Word 2013 file A. Check compatibility B. Document Inspector C. Customize document properties D. Always create backup copy E. Print options

Computer Science & Information Technology

Which of the following is the commercial organization that issues digital certificates?

A) Certificate Authority B) Commercial Authority C) Commercial Authenticity D) Certificate Authenticator

Computer Science & Information Technology

Like hubs, network switches are capable of inspecting data packets as they are received.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology