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
Pam is using the Outline view in PowerPoint. She would like to reposition
erastova [34]

Answer:

Explanation:

u have just to drag it into slide 6. I think that it's like this that we do it

6 0
3 years ago
Suppose you will invest $100 per month at the beginning of the month for 40 years with interest rate
Alexeev081 [22]

Answer:

future value = 232369.1361

return % = 384.10 %

Explanation:

given data

principal = $100 per month

time = 40 year = 480 months

rate = 6.25 % yearly = 0.0625 yearly = 0.005208 monthly

to find out

total amount of capital at the end of your investment and percentage is  your total return

solution

so here future value formula is

future value = P \frac{(1+r)^{t-1}}{r} * (1+r)   ..........1

here r is rate and t is time and P is principal

so put all value

future value = 100 \frac{(1+0.005208)^{480-1}}{0.005208} * (1+0.005208)

future value = 232369.1361

so

Total capital at the end of investment-Total principle invested over the years

232369.1361 - 100 ( 12 × 40 )

184369.1361

so

Return % = \frac{184369.1361}{48000} × 100

return % = 384.10 %

5 0
3 years ago
Katie wants to use VLOOKUP for a column in a table. Which value of the mode parameter should she use to look for an exact match
Lapatulllka [165]

The exact match mode is the mode parameter that Katie should use to look for an exact match of the searched data

Further Explanation:

The VLOOKUP function in Excel helps us search for and retrieve information from a particular column in a table and lookups a value in the left-most column of the table. It has two modes of matching.

Exact matching – When you perform a range_lookup, an argument FALSE is defined to mean that there is an exact match of the return value.

  • To achieve this, select a cell in your Excel worksheet
  • Type =VLOOKUP in the type bar of the Excel sheet
  • Select the value to look up and then select the data range
  • Type the column number that you want to search and then type FALSE
  • Press enter

Learn about VLOOKUP in Excel by clicking the links below

brainly.com/question/9579933

brainly.com/question/10686097

#LearnWithBrainly

4 0
4 years ago
By default, what appears on your screen whenever a new email arrives?.
Troyanec [42]

By default, the appears on your screen whenever a new email arrives is a  Desktop Alert.

<h3>What is a Desktop Alert?</h3>

This is known to be a kind of  a notification that often shows on your desktop when a person is said to receive a new email message, a meeting request, or others.

Note that the Desktop Alerts need to be turned on by default and as such, By default, the appears on your screen whenever a new email arrives is a  Desktop Alert.

Learn more about Desktop from

brainly.com/question/7221406

#SPJ1

7 0
3 years ago
1. What does the word “processing” in data pro- cessing mean?
blsea [12.9K]

Answer:

Word processing is the process of creating and editing documents on a computer. It allows a user to create documents that mimic the format and style of a typical typewriter. It requires a computer and word processing software. A printer may also be used to create a physical copy of the document.

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • What is computer engineering?
    11·1 answer
  • If you have a long title for a table and need it to span several cells, you can use A. Merge Cells. B. Split Cells. C. Insert Co
    5·1 answer
  • You are trying to access the Wi-Fi network at a coffee shop. What protocol will this type of wireless networking most likely use
    11·1 answer
  • Friedman (1999) argues that "we are wrong to base health promotion in all societies on a Western framework for human development
    11·1 answer
  • Create a method called fixArray(int[][] array, int row, int col, int value) that sets the [row][column] to the correct value. Th
    5·1 answer
  • Given two variables , first_place_winner and second_place_winner, write some code that swaps their associated values. use any ad
    12·1 answer
  • Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master-Detail relationship with the
    10·1 answer
  • When an Item is base lined, it becomes frozen, here frozenmeans that only creating an old version can change the item
    9·1 answer
  • kieran wants to search a database quickly for information on the last time a patient came to his medical facility.The informatio
    14·2 answers
  • Write an application that displays the sizes of the files lyric1.txt and lyric2.txt in bytes as well as the ratio of their sizes
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!