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
Reptile [31]
4 years ago
6

What is Interrupt?and give me information about Interruptstypes and processes and works?

Computers and Technology
1 answer:
nataly862011 [7]4 years ago
6 0

Answer:

Interrupt is defined as, in computer system interrupts are the signal sent to the central processing unit by the external devices. The main function of interrupt is that, an operating system that provide multiprocessing and multitasking. The interrupt is a signal that causes the operating system to stop work on one processor and started work on another processor.

There are basically two type of interrupts:

  • Hardware interrupts - For the processor, if the signal is from external device and hardware is called hardware interrupts.
  • Software interrupts - The interrupt which is caused by the software instructions are called software interrupt.

You might be interested in
Host B is sending an email intended for the user on Host A to the email server. What protocol is being used to send the message
Lynna [10]

Answer:

I think that part A is correct option

6 0
4 years ago
How do you validate the type of text that a user enters?
enot [183]
D, is the correct choice here. 
3 0
4 years ago
Modify the guessing-game program so that the user thinks of a number that the computer must guess.
Triss [41]

Answer:

import random

import math

smaller = int(input("Enter the smaller number: "))

larger = int(input("Enter the larger number: "))

count = 0

print()

while True:

   count += 1

   myNumber = (smaller + larger) // 2

   print('%d %d' % (smaller, larger))

   print('Your number is %d' % myNumber)

   choice = input('Enter =, <, or >: ')

   if choice == '=':

       print("Hooray, I've got it in %d tries" % count)

       break

   elif smaller == larger:

       print("I'm out of guesses, and you cheated")

       break

   elif choice == '<':

       larger = myNumber - 1

   else:

       smaller = myNumber + 1

Explanation:

The code to be Modified is as indicated below:

# Modify the code below:

import random

smaller = int(input("Enter the smaller number: "))

larger = int(input("Enter the larger number: "))

myNumber = random.randint(smaller, larger)

count = 0

while True:

   count += 1

   userNumber = int(input("Enter your guess: "))

   if userNumber < myNumber:

       print("Too small")

   elif userNumber > myNumber:

       print("Too large")

   else:

       print("You've got it in", count, "tries!")

       break

Detailed Explanation:

Line 3 and 4 of the codes prompts the user to enter a smaller and larger number. Line 5 we initiate the formula for minimum number of guesses. Line 14 and 17 prints out the output  I'm out of guesses, and you cheated and Hooray, I've got it in X after validating the conditions.

7 0
3 years ago
The graph of which function has an axis of symmetry at x=-1/4​
yuradex [85]

Answer:

axis of symmetry is the x value of the vertex

for

y=ax^2+bx+c

x value of vertex=-b/2a

first one

-1/2(2)=-1/4

wow, that is right

answer is first one

f(x)=2x^2+x-1

Explanation:

3 0
3 years ago
Complete the following code to display an applet, so that the contents are contained in a rectangle around the phrase "Exercise
sertanlavr [38]

Answer:

//. Program is written in Java Programming Language

// Comments are used for explanatory purpose

// Program starts here

// import required libraries

import java.swing.JApplet;

import java.awt.*;

// Declare class as

public class DrawGraphics extends JApplet

{

//.Assume the following values for width, height and area of the shape

final int area= 150 ;

final int width = 100, height = 50;

{

//Draw a Rectangle around the applet's display area starting from 5,15

g.drawRect( 5,15, area-1, area-1 );

//Draw the current string inside the rectangle

g.drawRect( area/2 - width/2 , area/2 - height/2, width, height );

}

}

7 0
3 years ago
Other questions:
  • Why do the holes at the top of parachutes make it go slower
    12·1 answer
  • After an entry in the medical record has been written or keyed and an error is discovered, what procedure should be followed to
    7·1 answer
  • You are trying to connecting your laptop to your new 52" LED TV using an HDMI connector. When you connect everything, you immedi
    15·1 answer
  • Which of the following is NOT a factor to consider when examining extrinsic job satisfaction?
    7·1 answer
  • Text that appears slightly below the line of the other text in the document is
    5·1 answer
  • Command-based operating systems include
    7·1 answer
  • Which scenario describes unethical lab behavior?
    9·1 answer
  • Cora is writing a program to make a motorcycle racing game. If Cora wants to speed of the motorcycle to appear on the screen whe
    12·1 answer
  • Which of the following is true of functions? * 2 points A. Programs written with functions run more quickly B. Functions can hel
    15·2 answers
  • What is output by the following code? for x in range(7, 16): print(x * 2, end=" ") Group of answer choices 14 16 18 20 22 24 26
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!