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
Nat2105 [25]
3 years ago
6

Consider the following code segment: try : inputFile = open("lyrics.txt", "r") line = inputFile.readline() print(line) _________

____________ print("Error") What should be placed in the blank so that the program will print Error instead of crashing if an exception occurs while opening or reading from the file?
Computers and Technology
1 answer:
aleksandrvk [35]3 years ago
6 0

Answer:

The answer is "except IOError:"

Explanation:

It is part of the exception handling, that stands for input/ output operation fails, this exception aeries when we attempting to access an anti-existent file, in the program so, it will give the program related errors.

  • This type of error is handled in the try block, it also allows you to prepare the deal with the exceptional block.  
  • It also helps you to hide the bugs by using code, if you handle an unexpected error.
You might be interested in
Driver's ed I need help
UkoKoshka [18]
The second one I believe 
8 0
4 years ago
Read 2 more answers
_____ involves identifying and controlling the functional and physical design characteristics of products and their support docu
slamgirl [31]

Answer:

The correct answer to the following question will be Option C (Configuration management).

Explanation:

  • A method of device engineering to create and maintain continuity of the functionality, operational and physical characteristics of software with its specifications, configuration and operating details across its existence.
  • You will gain profit from:

Decreased risk of interruptions and data leaks through accessibility and keeping track of adjustments to your devices by implementing configuration management.

The remaining three solutions will not be capable of performing these functions. Therefore, the correct answer is alternative C Configuration management.

5 0
3 years ago
What are the three parts of a Function (Choose all 3)
dlinn [17]

Answer:

the answer is

name

return

void

7 0
4 years ago
To create a cover letter to send to potenial employers alone with a resume what software program should you use
Alexus [3.1K]
Microsoft word? That’s the standard program used but I don’t know if there are special resume programs you learned about.
3 0
3 years ago
What should Marcus predict will happen when he connects wire 3 to the paper clip?
Sveta_85 [38]

Answer:

C. The light bulb will light up.

Explanation:

This would occur because the electric circuit is made up of paper clip; a material that conductors electricity.

Remember, attaching wire 3 only results in case where the current is transferred to the bulb because the paper clip can conduct (accept) electric current flow.

3 0
4 years ago
Other questions:
  • A good website design combines which of the following elements? (select all that apply) powerful web server hardware components
    9·2 answers
  • Describe the difference between public and private IPv4 addresses. If a network is using private IP addresses, how can the compu
    13·1 answer
  • (Please Help)
    13·1 answer
  • In 4-bit two's complement representation, what is the binary encoding of the number -5?
    8·1 answer
  • Week 3 Discussion Requirements Modeling Requirements modeling is one of the earlier phases of software development where require
    7·2 answers
  • . A program will ""fall through"" a case section if it is missing the __________ statement.
    15·1 answer
  • You want to substitute one word with another throughout your document. What tool(s) should you use?
    9·1 answer
  • Open the same text file that you have created in Exercise-Four ( in the sample output, I have created the file name personal). W
    7·1 answer
  • Why do we use if statements?
    9·1 answer
  • help i was building my pc and i pushed the cpu into the socket really hard until there was an audible crack and it went into the
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!