1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
solong [7]
4 years ago
8

1. Mark the following statements as true or false. A. Division by zero is an exception while opening an input file that does not

exist is not an exception. B. Suppose you use the assert function to check if certain conditions are met. If the conditions are not met, then the assert function terminates the program. C. One way to handle an exception is to print an error message and exit the program. D. All exceptions need to be reported to avoid compilation errors. E. Every try block must have a catch block. F. The order in which catch blocks are listed is not important. G. If an exception is thrown in a try block, the remaining statements in that try block are executed after executing a catch block. H. In C , an exception is a value. I. The class invalid range deals with the string subscript out of range error. J. In C , any class can be considered an exception class. K. The exception class must contain at least one member. L. An exception can be caught either in the function where it occurred, or in any of the functions that led to the invocation of the method. M. When the function call stack is unwound, the function in which the exception was not caught terminates, but the memory for its local variables remains allocated.
Computers and Technology
1 answer:
Lilit [14]4 years ago
7 0

A. Division by zero is an exception while opening an input file that does not exist is not an exception.

False. The given except is not related to file operation

B. Suppose you use the assert function to check if certain conditions are met. If the conditions are not met, then the assert function terminates the program.  

True. Yes, it terminates by giving error message

C. One way to handle an exception is to print an error message and exit the program.  

True. Yes, it is one of the safe way to handle exception and stop the program smoothly

D. All exceptions need to be reported to avoid compilation errors.

False. Exceptions are related to run time.

E. Every try block must have a catch block.  

True. A “try block” needs to have catch block but “finally” is optional. There can be more than one catch block for a single “try block”.

F. The order in which catch blocks are listed is not important.

False. It is important to have a good programming skill. If you place the  “Exception class” which is the base for all the other types of exception in the top of catch list then, no other specific exception will get caught which is a very bad programming.

G. If an exception is thrown in a try block, the remaining statements in that try block are executed after executing a catch block.  

False. “Try block” will not get executed.

H. In C , an exception is a value.

True  

I. The class invalid range deals with the string subscript out of range error.

True.

J. In C , any class can be considered an exception class.  

False

K. The exception class must contain at least one member.  

ans: True

L. An exception can be caught either in the function where it occurred, or in any of the functions  

that led to the invocation of the method.  

True. But it is always better to catch exception in the same function.

M. When the function call stack is unwound, the function in which the exception was not caught terminates, but the memory for its local variables remains allocated.

True

You might be interested in
Many websites (mostly online shopping sites), monitor a person’s Internet browsing behavior, such as the websites we often visit
mamaluj [8]

Answer:

Yes, this pratice is ethical

Explanation:

You are freely choosing to go on to these websites and most websites inform you that they are doing this. Edward Snowden, told the world that goverments are spying on them. Most people did not have a problem with this. Since, most people have a way to inform themsevles about the practices on the websites(by reading the terms of serve) and people don't care about spying than this is in no way unethical practice.

7 0
3 years ago
I NEED HELP!! THIS IS 3D COMPUTER MODELING COURSE IN CONNEXUS
Papessa [141]

6. x, y, and z (x is right, z is forward, and y is up)

7. true

8. plane

9. Cartesian grid

10. They describe a location using the angle and distance from the original.

11. effects that alter the look of an object.

12. true

13. true

14. (not sure, but I would go with conceptual)

15. 3-D elements

Hope this helps! Please let me know if you need more help, or if you think my answer is incorrect. Brainliest would be MUCH appreciated. Have a great day!

Stay Brainy!

8 0
2 years ago
Your client expresses that they want their new website to have a responsivedesign with consistent coding. They are concerned wit
tresset_1 [31]

D

Explanation:

Because that's the one that works good together

5 0
3 years ago
Computer simulations can: A. accurately predict the weather a month in advance.
loris [4]
I believe the answer is A but i am not too sure :/
7 0
4 years ago
Some projectors use a connection technology called _______________ that enables long-range connectivity for uncompressed HD vide
Rzqust [24]

Answer:

HDbaseT

Explanation:

HDbaseT is  a global connectivity standard for transmitting uncompressed high definition videos, audios, power, usb, ethernet home networking and some control signals for up to 100 meters, over a category cable like Cat 5a or Cat 6 cables.

The projector uses the HDbaseT for these reasons and for the fact that it eliminates clusters in cables without affecting its performance or high quality. This gives a high quality output display from the projector.

5 0
3 years ago
Other questions:
  • How do i fix my this??
    12·2 answers
  • All java classes must contain a main method which is the first method executed when the java class is called upon.
    10·1 answer
  • What is a hobbyist for engineering
    7·1 answer
  • How do you activate caps lock on chromebook
    10·2 answers
  • Allison, a very close friend of yours, is about to give a presentation to the class. You know that she has procrastinated and is
    14·2 answers
  • Corell Inc. has an online tool that offers a wide variety of Corell shoes for direct purchase. The tool even allows customers to
    9·1 answer
  • write a loop that reads positive integers from standard input and that terminates when it reads an integers that is not positive
    11·1 answer
  • If you’re storing some personal information like Debit/Credit card numbers or Passwords etc, on different sites for running you’
    10·1 answer
  • Write a script that inputs a line of encrypted text and a distance value and outputs plaintext using a Caesar cipher. The script
    11·1 answer
  • I am having trouble with this python question. I am in a beginner level class also so any solution that isn't too complex would
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!