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
enyata [817]
3 years ago
13

For a data structure, such as a stack, who is responsible for throwing an exception if the stack is empty and a pop() is called:

______.A. Application User.B. Data Structure Programmer.C. No one, you don't thow an exception in this case.D. End User Programmer.
Computers and Technology
1 answer:
lubasha [3.4K]3 years ago
4 0

Answer:

D. End-User Programmer.

Explanation:

A stack data structure is used to holds data for programs. The first data to go into a stack is always the last to be extracted (First-in-Last-out). Data is read into the stack with the push function and retrieved with the pop function.

When the stack is empty, it means there are no data left to pop from it. If a pop function is issued at this time, the program conventionally throws an error, there is no need for the end-user to write an exception handler for it because the end-user programmer has done that already.

You might be interested in
Assume that isIsosceles is a bool variable, and that the variables isoCount, triangleCount, and polygonCount have all been decla
svet-max [94.6K]

Answer:

if(isIsosceles){

isoCount+=1;

triangleCount+=1;

polygonCount+=1;

}

Explanation:

Here we are checking the condition for variable "isIsosceles" using if condition. if it is true then only if block executed and it will increment mentioned variable values by 1

4 0
4 years ago
Which property of a text element controls how the browser handles text that does not fit within the element box?
BaLLatris [955]
Margin because it is always on the end of document
6 0
4 years ago
Why does people that gets abused not report?
AleksandrR [38]
It might be because they are afraid that tge person they report will likley get into trouble or the report might not work and they will be abused more
7 0
3 years ago
The most common roof type is called a
timama [110]

Asphalt Shingles...............

8 0
3 years ago
Read 2 more answers
Suppose that a main method encounters the statement t3.join(); Suppose that thread t3's run() method has completed running. What
Slav-nsk [51]

Answer:

C. The main method proceeds to the next statement following the t3.join(); statement

Explanation:

join() method allows the thread to wait for another thread and completes its execution. If the thread object is executing, then t3.join() will make that t is terminated before the program executes the instruction. Thread provides the method which allows one thread to another complete its execution. If t is a thread object then t.join() will make that t is terminated before the next instruction. There are three overloaded functions.

join()

join(long mills)

join(long millis, int Nanos)

If multiple threads call the join() methods, then overloading allows the programmer to specify the period. Join is dependent on the OS and will wait .

8 0
4 years ago
Other questions:
  • A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-lif
    11·1 answer
  • What is DBMS software used for?
    5·1 answer
  • Quien invento el primer vehiculo con motor?
    15·2 answers
  • What are some activities that work especially well in Outline view? Check all that apply.
    5·2 answers
  • To complete this quest, answer the following questions in the submission box below. Make x an array going from 0 to 100 by steps
    15·1 answer
  • Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards
    9·1 answer
  • Which scientific tool would be primarily used by scientists?
    12·2 answers
  • True or false Encryption prevents hackers from hacking data?
    8·1 answer
  • In cell B3, insert a nested MATCH function within an INDEX function that will look up the rental price in column D using the apa
    15·1 answer
  • Commercials are short media advertising that persuades a consumer to buy/use their product/service?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!