What things might a programmer do to cause a potential exception in a program?

What will be an ideal response?


The programs you write can generate many types of potential exceptions:A program might issue a command to read a file froma disk, but the file does not exist there.A program might attempt to write data to a disk, but the disk is full or unformatted.A program might ask for user input, but the user enters an invalid data type.A program might attempt to divide a value by 0.A program might try to access an array with a subscript that is too large or too small.

Computer Science & Information Technology

You might also like to view...

When creating a new report using the wizard, a user can choose any of the following summary options EXCEPT ________

A) Avg B) Max C) Count D) Sum

Computer Science & Information Technology

Which of the following kinds of backup is another name for a full backup?

A. differential B. incremental C. selective D. archival

Computer Science & Information Technology

A user has not received any new e-mails on his smartphone in the last two days. The user is able to access the internet without any problems Which of the following should the user do first?

a. Restart the smartphone b. Reconfigure the smartphone's e-mail account c. Resysnchronize the smart phone d. Update the operating system

Computer Science & Information Technology

In InDesign, you use this tool to create paths.

What will be an ideal response?

Computer Science & Information Technology