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
Montano1993 [528]
3 years ago
15

When a user process is running and an instruction is executed that requests a file-open operation, which of the following event

will occur? (A) Supervisor call (B) Trap (C) I/O interrupt (D) Fault (E) None of the above
Computers and Technology
1 answer:
Anna11 [10]3 years ago
7 0

Answer:e

Explanation:

Because it will automatically work

You might be interested in
Which disclosure paradigm has as its assumptions that 1) an attacker will learn little or nothing from disclosure; 2) Disclosure
nekit [7.7K]

The  disclosure paradigm has as its assumptions that an attacker will learn little or nothing from disclosure is known as Open source.

<h3>What is open source?</h3>

An  Open source is known to be a term that connote that is said to be an Open source software set up to be publicly used by people.

Therefore, The  disclosure paradigm has as its assumptions that an attacker will learn little or nothing from disclosure is known as Open source.

Learn more about Open source from

brainly.com/question/6065176

#SPJ1

3 0
2 years ago
You are building a system for a Housing Society, such as Bahria Town. You are supposed to design a very
Rudiy27

Answer:

122e²edafetejtjthrhhrhehegegegritirutu5oydodyo6ifyifi5did5i5isi5itirusritursududtustudidtidtiisisus5us5ususrursusududtidtidtidudtidtidtidtidtursustusriruausrysrysysrusrus4sus4us4y4as4us4us4us4us4ys4u5su5su

Explanation:

tiyrygtghyyhhgghghhghnghgmjfhfhhrzjjxtxthxthxthztjtjtdjstjdtjztjztjztjtzjzhzxhztzthzrhztuzthhuthhtxxfhzthzthzttuhzthtzjztuzztuztutuztfhruryryryegegrhrhrhrhrhgfhdhdhdhdhfddhdhhfhfhjfhfhfhfhdhdhddhdhjdhjff

6 0
2 years ago
Write convert() method to cast double to int Complete the convert() method that casts the parameter from a double to an integer
alexgriva [62]

Answer:

Write convert() method to cast double to int Complete the convert() method that casts the parameter from a double to an integer and returns the result. Note that the main() method prints out the returned value of the convert() method.

Ex: If the double value is 19.9, then the output is: 19

Ex: If the double value is 3.1, then the output is: 3

Explanation:

<h3>plz bhai mera answer ko brainliest kar do.....</h3>
8 0
2 years ago
This program involves working with a set of discrete data (grades) and determining their average (arithmetic mean), median, and
Inga [223]

Answer:

#include <iostream>

#include <iomanip>

#include <cmath>

using namespace std;

// function declarations

double getAverage(int* grades, int size);

double getMedian(int* grades, int size);

int getMode(int* grades, int size);

double getSd(int* grades, int size);

int main()

{

// Declaring variables

int size, val;

// setting the precision to two decimal places

std::cout << std::setprecision(2) << std::fixed;

// Getting the input entered by the user

cout << "How many grades you wnat to enter :";

cin >> size;

// Creating array dynamically

int* grades = new int[size];

/* Getting the inputs entered by the user

* and populate those values into array

*/

for (int i = 0; i < size;)

{

while (true)

{

cout << "Enter the grade#" << i + 1 << ":";

cin >> val;

if (val < 0)

{

cout << "** Invalid.Must be greater than zero. **" << endl;

continue;

}

else

{

grades[i] = val;

i++;

break;

}

}

}

// calling the functions

double avg = getAverage(grades, size);

double median = getMedian(grades, size);

int mode = getMode(grades, size);

double sd = getSd(grades, size);

cout << "Average :" << avg << endl;

cout << "Median :" << median << endl;

cout << "Mode :" << mode << endl;

cout << "Standard Deviation :" << sd << endl;

return 0;

}

// This function calculates the average of grades

double getAverage(int* grades, int size)

{

double sum = 0.0;

// calculating the sum of res[] array elements

for (int i = 0; i < size; i++)

{

// calculating the sum

sum += grades[i];

}

// calculating the average

double avg = sum / size;

return avg;

}

// This function calculates the median of grades

double getMedian(int* grades, int size)

{

// This Logic will Sort the Array of elements in Ascending order

int temp;

int middle;

double median;

for (int i = 0; i < size; i++)

{

for (int j = i + 1; j < size; j++)

{

if (grades[i] > grades[j])

{

temp = grades[i];

grades[i] = grades[j];

grades[j] = temp;

}

}

}

if (size % 2 == 0)

{

middle = size / 2;

median = (float)(grades[middle - 1] + grades[middle]) / 2.0;

}

else

{

middle = (size + 1) / 2;

median = grades[middle];

}

return median;

}

// This function calculates the mode of grades

int getMode(int* grades, int size)

{

int counter1 = 0, counter2, modevalue;

for (int i = 0; i < size; i++)

{

counter2 = 0;

for (int j = i; j < size; j++)

{

if (*(grades + i) == *(grades + j))

{

counter2++;

}

if (counter2 > counter1)

{

counter1 = counter2;

modevalue = *(grades + i);

}

}

}

if (counter1 > 1)

return modevalue;

else

return -1;

}

// This function calculates the standard deviation of grades

double getSd(int* grades, int size)

{

int sum_of_squares = 0, standard_deviation;

double variance;

double avg = getAverage(grades, size);

/* This loop Calculating the sum of

* square of eeach element in the array

*/

for (int i = 0; i < size; i++)

{

/* Calculating the sum of square of

* each element in the array

*/

sum_of_squares += pow((grades[i] - avg), 2);

}

// calculating the variance of an array

variance = ((double)sum_of_squares / (size - 1));

// calculating the standard deviation of an array

standard_deviation = sqrt(variance);

return standard_deviation;

}

Explanation:

3 0
3 years ago
HOLISSS SOY NUEVO AQUI HABLEMOS
UkoKoshka [18]

Answer:

Welcome

Explanation:

This app is not for talking it is for educational purposes so yeah your welcome

BUT NO HATE YOU LOOK COOL MY DUDE

8 0
2 years ago
Other questions:
  • The class at the top of exception class hierarchy is ..........................
    12·1 answer
  • Define an I/O port. Which functions are performed by it?
    10·1 answer
  • A graph of an organization'snet income over the past 10 years is an example of an analogmodel.
    7·1 answer
  • A(n) ______ system is a set of programs that coordinates all the activities among computer or mobile device hardware. a. managem
    10·1 answer
  • Which of the following is false? A. The last element of an array has position number one less than the array size. B. The positi
    9·1 answer
  • Applications require you to provide the following basic elements: social security number, experience, and favorite memories. Tru
    11·1 answer
  • Write a short program using Python that will:
    10·1 answer
  • BitTorrent, a P2P protocol for file distribution, depends on a centralized resource allocation mechanism through which peers are
    8·1 answer
  • PLEASE HELP ASAP I WILL GIVE BRAINLIEST TO CORRECT ANSWER
    15·2 answers
  • Alice's public key, and sends back the number R encrypted with his private key. Alice decrypts the message and verifies that the
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!