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
Fudgin [204]
3 years ago
13

Code Example 8-1

Computers and Technology
1 answer:
damaskus [11]3 years ago
6 0

Answer:

Option A: FileNotFoundError

Explanation:

FileNotFoundError is an exception which is thrown when a program fail to open a specified file. The root causes of this type of error can be:

  1. The directory path to locate a target file is wrongly defined in our code due to a typo on the file name or misuse of relative directory path, such as ../ and ./ which denote two different paths.
  2. For some reasons, a target file is misplaced in a wrong directory.

Any one of the above reasons can lead to the exception to be thrown when the file doesn't exist.

You might be interested in
I need someone to help me paraphrase and make it in there own words? I struggle with this. This is the sentence
solniwko [45]

A hyperlink is a uniquely formatted word, group of words, or graphic that often shows webpage on the Internet, or file, or email, or the files with the  the same location when clicked.

<h3>How do I paraphrase a sentence?</h3>

To paraphrase rightly, one need to makes some changes to the original sentence and then use their synonyms or reformulate it.

Note that the paraphrase  form of the sentence given above is A hyperlink is a uniquely formatted word, group of words, or graphic that often shows webpage on the Internet, or file, or email, or the files with the  the same location when clicked.

Learn more about hyperlink from

brainly.com/question/17373938

#SPJ1

5 0
2 years ago
Annalise received financial aid offers from two universities. Financial Analysis for Option A Costs per Year Financial Aid Packa
lara31 [8.8K]

Answer:

Option S will save her $15500

Explanation:

Room and board, someone is provided a sum of money in return for labor. The government does not ask for this money to be returned. This is earned by the student. Also, work-study is being given to the student, the fund in return of certainly part-time employment job which he/she does in free time. And hence it is clear from the above study that, A will save $15500, and hence this is the right answer as others are taken by the universities. And also B is saving $13000, and this is not an option given.

7 0
3 years ago
Read 2 more answers
A file named numbers.txt contains an unknown number of lines, each consisting of a single positive integer. Write some code that
Reptile [31]

Answer:

  1. with(open("numbers.txt")) as file:
  2.    data = file.readlines()  
  3.    runsum = 0
  4.    largest = 0
  5.    
  6.    for x in data:
  7.        if(int(x) > largest):
  8.            largest = int(x)
  9.            runsum += largest  
  10.    
  11.    print(runsum)

Explanation:

The solution code is written in Python 3.

Firstly, open a filestream for numbers.txt (Line 1) and then use readlines method to get every row of data from the text files (Line 2).

Create a variable runsum to hold the running sum of number bigger than the maximum value read up to that iteration in a for loop (Line 3).

Use a for loop to traverse through the read data and then check if the current row of integer is bigger than the maximum value up to that point, set the current integer to largest variable and then add the largest to runsum (Line 6 - 9).

At last display the runsum to console terminal (Line 11).

8 0
4 years ago
A telephone repair technician uses a meter to measure voltage on a phone line. This meter is an example of _____.
frozen [14]
It is an example of hardware.
3 0
3 years ago
Read 2 more answers
Which window shows instructions for a lab activity?
Svetach [21]

The window that shows instructions for a lab activity is known as the Cisco Packet Tracer Activity window.

<h3>What is Packet Tracer activity?</h3>

Cisco Packet Tracer is known to be a form of a comprehensive networking technology that is made for lecture and it is also a learning tool that gives a kind of a special combination that are made up of realistic simulation and visualization experiences as well as assessment, activity authoring capabilities, and others.

Hence, The window that shows instructions for a lab activity is known as the Cisco Packet Tracer Activity window.

Learn more about computer windows from

brainly.com/question/25243683

#SPJ1

4 0
2 years ago
Other questions:
  • How can cultural hearths be described
    5·1 answer
  • What is predictive dialing?
    12·1 answer
  • when you assign a(n) ___ to a field, Access will display the value you assign, rather than the field name, in datasheets and in
    15·1 answer
  • What is wrong with the following declaration? How should it be fixed?
    11·1 answer
  • A _________________________ can use SOAP headers to carry meta information in its messages. A. Web service B. REST Service C. Co
    14·1 answer
  • Why does everyone refer to dogs as being loyal
    11·2 answers
  • Various units used to measure computer memory
    13·1 answer
  • You have heard that it is possible to improve your computer's performance by storing all related files for a particular program
    9·1 answer
  • Your job as a researcher for a college is going well. You have gained confidence and skill at pulling data and you are not makin
    13·1 answer
  • To execute a command object and store the results in a dataset, you use the Group of answer choices Fill method of a data adapte
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!