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
Aleksandr-060686 [28]
3 years ago
11

What happens if the addressed device does not respond due to a malfunction during a read operation?

Computers and Technology
1 answer:
m_a_m_a [10]3 years ago
4 0
If the read operation is implemented synchronously (this is the classic case), it will block and eventually time-out. The calling program should deal with the returned error.

If the read operation is asynchronous (as it will be in modern programming languages), the underlying library might provide an error callback, or you'll have to schedule a timeout task yourself.
You might be interested in
Did it go from a sail boat to a row boat or vise versea
Bingel [31]
A sail boat went to a row boat.
8 0
4 years ago
Assume that minutes is an int variable whose value is 0 or positive. Write an expression whose value is "undercooked" or "soft-b
e-lub [12.9K]

Answer:

import java.util.Scanner;

public class Solution {

   public static void main(String args[]) {

     Scanner scan = new Scanner(System.in);

     System.out.println("Enter your minute:");

     int minute = scan.nextInt();

     

     switch(minute){

         case 0:

         case 1:

             System.out.println("undercooked");

             break;

         case 2:

         case 3:

         case 4:

             System.out.println("soft-boiled");

             break;

         case 5:

         case 6:

         case 7:

             System.out.println("medium-boiled");

             break;

         case 8:

         case 9:

         case 10:

         case 11:

             System.out.println("hard-boiled");

             break;

         case 12:

             System.out.println("overcooked");

             break;

         default:

             if(minute > 12){

               System.out.println("overcooked");

             } else if (minute < 0){

                 System.out.println("Enter a valid minute.");

             }            

     }

   }

}

Explanation:

The first line is the import statement, which import the Scanner class for receiving user input. The next line is the class declaration which is named Solution.

The Scanner object is declared and assigned as scan. Then a prompt is displayed to the user asking the user to enter the minute. The user input is stored as minute.

Switch statement is use to categorize the user input. If the user enter 0-1, an output of undercooked is displayed. If the user enter 2-4, an output of soft-boiled is displayed. If the user enter 5-7, an output of medium-boiled is displayed. If the user enter 12 or any number above 12, an output of overcooked is displayed. Again, the user enter a number less than zero, an error message is displayed telling the user to enter a valid number.

4 0
3 years ago
Using save as creates two similar documents.
umka2103 [35]
False; creates more room to edit file type. ie: file name, and type on command
8 0
3 years ago
Read 2 more answers
Choose the types of education and iss professional is most likely to have
shutvik [7]

Answer:

A and D

Explanation:

Just took it on edgenuity

8 0
3 years ago
(Geometry: area of a regular polygon)
nata0808 [166]

Answer:

import math

n = int(input("Enter the number of sides: "))

s = float(input("Enter the length of a side: "))

area = (n * s**2) / (4 * math.tan(math.pi/n))

print("The area is: " + str(area))

Explanation:

*The code is in Python.

Import the <u>math</u> to be able to compute the <em>pi</em> and <em>tan</em>

Ask the user to enter the number of sides and the length of a side

Calculate the area using the given formula

Print the area

8 0
4 years ago
Other questions:
  • Why has unicode become the standard way of converting binary to text
    7·1 answer
  • What does the domain in an email message mean?
    8·1 answer
  • A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary to determine whether the en
    14·1 answer
  • Identify 3 ways mobile phone could be used to contact a bank apart from making a phone call to the bank
    12·1 answer
  • True or False?
    7·1 answer
  • Which of these is a requirement for developing game applications on devices running Apple’s iOS operating system?
    6·2 answers
  • Which sign or symbol will you use to lock cells for absolute cell reference?
    6·2 answers
  • Jenn wants to assign a value to the favorite car variable: favoriteCar = Toyota but gets an error message. What does she need to
    11·1 answer
  • Why are my images blocked on brainly<br><br> i just see gray and on every avatar and image
    13·2 answers
  • Chris needs to modify the default bullets that are used in a nonnumbered list in Word.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!