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
VikaD [51]
4 years ago
8

Use the code below to answer the following questions. Note that the catch statements in the code are not implemented, but you wi

ll not need those details. Assume filename is a String, x is an int, a is a double array and i is an int. Use the comments i1, i2, i3, e1, e2, e3, e4, e5 to answer the questions (i for instruction, e for exception handler)
try { BufferedReader infile = new BufferedReader(new FileReader(filename)); // i1
int x = Integer.parseInt(infile.readLine( )); // i2
a[++i] = (double) (1 / x); // i3
}
catch (FileNotFoundException ex) {...} // e1
catch (NumberFormatException ex) {...} // e2
catch (ArithmeticException ex) {...} // e3
catch (ArrayIndexOutOfBounds ex) {...} // e4
catch (IOException ex) {...} // e5

An exception raised by the instruction in i1 would be caught by the catch statement labeled:

a) e1
b) e2
c) e5
d) either e1 or e5
e) either e1, e4, or e5
Computers and Technology
1 answer:
anzhelika [568]4 years ago
4 0

Answer:

d) either e1 or e5

Explanation:

Here, the instruction i1 goes ahead in trying to open the given file through an input stream buffer reader. If the given file name is wrong, it will indicate that an e1 file is not found or if any other IO errors due to invalid stream, no disc in drive e5 IO exception will be drawn.

You might be interested in
With which game is the Taito Corporation associated?
gregori [183]
It is a japanese video game publisher known for publishing space invaders

4 0
3 years ago
ravi met few peoples in a party and was mixing up well those wearing expensives clothing and fair complexion . which factors are
Lady_Fox [76]

The factor that influenced Ravi's perspective towards the people can be referred to as <u>Visual perspective.</u>

<u></u>

<h3>What do you mean by Visual perspective?</h3>

Visual perception or sight can be defined as the ability to interpret the encircling surroundings via photopic vision, color vision, scotopic vision, and mesopic vision, the usage of light withinside the visible spectrum meditated through items withinside the surroundings.

It also means the ability to see the world through others' perspectives, which takes into account what and how they see it.

Thus, The factor that influenced Ravi's perspective towards the people can be referred to as <u>Visual perspective.</u>

<u></u>

Learn more about Visual perspective:

brainly.com/question/14956318

#SPJ1

<u></u>

6 0
2 years ago
Consider the following two tables where EmployeeNum is primary key in both tables. What is the result of combining the two table
Ilya [14]

Answer:

B) Employee (EmployeeNum, LastName, FirstName, WageRate, SocSecNum, DepartmentNum, Street, City, State, PostalCode)

Explanation:

3 0
3 years ago
Programmers employ the acronym ____ to mean that if your input is incorrect, your output is worthless.
Nataly [62]
The answer is GIGO or the garbage in, garbage out. It is an idea regular to software engineering and science: the nature of yield is dictated by the nature of the information. In this way, for instance, if a scientific condition is disgracefully expressed, the appropriate response is probably not going to be right. It has a tendency to be utilized when discussing information section and databases. Essentially it implies that in the event that you enter off base or wrong information then you have truly entered waste.
8 0
3 years ago
Some websites create libraries specifically of writing that is in the public domain. What if the advantage of this?
dedylja [7]

Answer:

To provide further literature on particular issues of relevance

Explanation:

Libraries are specifically meant to provide readers with more information and knowledge. In other words, they enable you gain a sound knowledge on the issues you seek to know more about either in terms of product and services of the primary goal of the website, if necessary.

5 0
3 years ago
Other questions:
  • In a digital drawing program, when an object is highlighted, boxes appear at the sides and corners. These boxes can be grabbed a
    13·1 answer
  • Implement the function unique that takes as a parameter a two-dimensional list and returns a one-dimensional list containing all
    6·1 answer
  • Generate an array x that has n=100 random numbers that are uniformly distributed over the interval [0,1) . Look up how to use th
    8·1 answer
  • Sandra wants to have her new technology up and running as soon as possible. She is looking for a tool that she can
    8·1 answer
  • Arrange the types of movies in terms of the amount of content they can hold
    14·1 answer
  • Mr. Ray is looking for a platform to launch his product. His marketing team advises him to launch the product via as it is free
    15·2 answers
  • As a student, how will you avoid those problems/case in the community?​
    14·2 answers
  • Iman manages a database for a website that reviews movies. If a new movie is going to be added to the database, what else will n
    7·2 answers
  • True or false: Quality score is an algorithm that scores each of your search ads on spelling and grammar.
    10·1 answer
  • Discuss the information justify with two examples<br>​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!