. Consider a logical-address space of eight pages of 1024words each, mapped onto a physical memory of 32 frames.
a. How many bits are in the logical address?
b. How many bits are in the physical address?

Answers

Answer 1

Answer:

a)13 bits

b)15 bits

Explanation:

a)

It takes 10 bits to address within a 1024-word page because 1024= 2^10.

Since the logical address space is 8 = 2^3 pages,

We will add 10 bits for 1024 words

10 + 3 = 13 bits must be the logical addresses.

b)

There are 32 = 2^5 physical pages.

We will add 10 bits for 1024 words

Similarly, physical addresses are 5 + 10 = 15 bits long .


Related Questions

Trailer is only added at ___________ layer of OSI model.

a. Data link layer

b. Physical layer

c. Network layer

d. Transport layer

Answers

Answer:

a. Data link layer

Explanation:

A trailer / footer is the additional data (metadata) which is positioned at the end of the data block being stored or transferred,it  may contain information for the processing of the data block or simply placed at the end of the block.

In data transmission, the data is called the payload or body after the end of the header and before the trailer starts.

In Data link layer, it contain three parts-

Frame headerFrame dataFrame footer    

What is the binary system?

Answers

Answer:

In mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically "0" and "1". The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit.

Answer:

The binary number system is an alternative to the decimal (10-base) number system that we use every day. Binary numbers are important because using them instead of the decimal system simplifies the design of computers and related technologies. ... But if the second digit is 1, then it represents the number 2.

Explanation:

What does the following function return? double compute speed(double distance); A. a double B. distance C. an integer D. nothing

Answers

Answer:

A. a double

Explanation:

The syntax of the function is:

type name( argument_1, argument_1,...... )

{  

    statement;

}

In the above syntax "type" define the return type of the function.

for example:

int count( int n);

so, it return the integer. Because the return type is 'int'.

In the question,

double compute speed(double distance);

Here, the return type is double. So, it return double.

A ____ is a text document written in HTML.
Answer
Web browser
Web page
Web server
Web site

Answers

Answer:

Web page

Explanation:

A Web page represents content formatted in HyperText Markup Language ( HTML). Web Browsers like internet explorer,firefox or google chrome can interpret this content and display the page as specified in the markup. If we access any webpage on the browser and view its source we can see the HTML content underlying the webpage.

In half-duplex communication between two hosts, both hosts can transmit, and both hosts can receive, but hosts cannot transmit and receive simultaneously.

a) True b) False

Answers

Answer:

True: In half Duplex communication both of the hosts can transmit and receive. But can not do both job simultaneously.

when one host is sending other one can receive but can not transmit. And the receiving host waits for the transmitting host to finish transmitting, before it starts transmitting from it's end.

When one host is receiving other one can transmit.

For example- The communication system of army people. when one person talks the person in the other end has to wait till he finishes. They can not talk simultaneously.

Explanation:

Where in full duplex the both hosts can transmit and receive simultaneously, in half duplex system that's not possible.

Write the sum of products, the canonical product of sums, theminterm shorthand and the maxterm shorthand for the following:

F(A,B,C) = A'B'+ AB'C + A'B'C'

Answers

Answer:

SOP=AB'+B'C

POS=B'(A'+C)

Shorthand Minterms=m₀+m₁+m₅

Shorthand Maxterms=M₃+M₂+M₄+M₆+M₇

Explanation:

For the full explanation of this question refer to the image attached which is of the k-Map of F.As we can see in the k-map that there are only 3 ones.by making 2 pairs of 1 we get the SOP expression.

Rest of them are zero from there we will get the POS expression.

The one's in the k-map represent the Minterms and 0's represent Maxterms and the number written in the box is their respective minterm and maxterm number.Minterms are represented by m and maxterms are represented by M.

The MOVZX instruction can be used only with_____________ integers.

Answers

Answer: The MOVZX instruction can be used only with unsigned integers.

Explanation:

The MOVZX instruction allows to move a value from a smaller source to larger source ,by the method of padding it focuses on the most significant bits of the targets with zeroes . The destination for MOVZX should be a register only.  MOVZX cannot be used with any other type of integer such as signed integer etc except for that it can be used with unsigned integers only.

When a function accepts multiple arguments, does it matter in what order the arguments

are passed?

Answers

Answer:

yes, it matter in what order the arguments  are passed.

Explanation:

when we define the function in the programming, you have to call the function as well.

In the calling function, we passed the arguments.

In the define function, parameters in declare for taking a copy of the arguments.

for example:

int print(int value, double price, char a){

    statement;

}

//calling

print(5, 7.8, 'a');

So, in the calling function the order of the argument changed, it gives the compile error.

because 5 is the integer, so you have to store in the int parameter.

print(7.8, 5, 'a'): if we try to do that, 7.8 which is double store in the wrong integer parameter, it gives the wrong output.

similarly, if we define the array in the parameter and pass the integer in the argument on the same location. it gives the compile error.

Therefore, the location must be the same.

Which of the following is the correctsyntax for commenting in Java?# Enter CommentsHere/* EnterComments Here*/** Enter CommentsHere **

Answers

Answer:

/* EnterComments Here*/

Explanation:

/* EnterComments Here*/   is the right syntax for comments in java.

we can use double farword slash (//)  for single line comment and for mutliple line we can use /* comments here */ and for documentation comment we use below syntax-

/**

*

*

*/

True or False and WHY:
Constructors can have names different from theirclasses.

Answers

Answer:

False

Explanation:

Constructors have to have the same name as their classes for proper syntax, if their names are different it will result in an error. Methods contained within the class can/should have different names, it is allowed because methods require return types while constructors cannot have return types.

How to find IPaddress for DSL modem

Answers

Explanation:

The DSL modem has it's own IP address. We can use the windows command prompt tool to find the IP address for the DSL modem.

Below are the steps to find IP address for DSL modem:-

1. At first we need to hit the Windows Start button

2. Then type "cmd" in the Search box and press the Enter key to open the command prompt.

3. At the command prompt, type "ipconfig /all" and press the Enter key to run the command.

4. Focus on the Default Gateway value. The IP address mentioned for the Default Gateway is actually  the IP address for the DSL modem.

How to write a Cprogram to print all the prime numbers between 1and n where n is the value supplied by the users.

Answers

Answer:

#include <stdio.h>

int main()

{

   int i, j, n, prime;

   printf("Enter till where we want to find prime number: ");

   scanf("%d", &n);

   for(i=2; i<=n; i++)

   {

       prime = 1;  

       for(j=2; j<=i/2; j++)

       {

         

           if(i%j==0)

           {

               prime = 0;

               break;

           }

       }

       if(prime==1)

       {

           printf("%d, ", i);

       }

   }

   return 0;

Explanation:

A number  which is divisible by 1 and itself is called prime number. Here in the program we start by taking number from 1 to n , where n is the last number till which we are required to find prime numbers. Then we start the loop by taking two for loops one for running the numbers from 1 to n and the inner for loop to check whether the number is divisible other than 1 and itself. We take the current number as prime =1. If the number is still not divisible by number other than 1 and itself we consider that number to be prime and print it.

-Give a definition of the critical section problem and explain the purpose of the entry and exit code blocks

Answers

Answer: In operating system a code segment which accesses  some shared variables or resources one at a time atomically such other no other code or process is accessing that resource or variable at the same time.

Entry section code block allows the access to the shared resource or variable and exit section code signals the termination from access to the shared resource or variable.

Explanation:

Entry and exit section codes needs to check certain properties before allowing the access and removal of access to a particular code segment.

These conditions are:

1. Bounded waiting.

2. Mutual exclusion.

3. checking thread execution status to allows other threads to enter the critical section (CS).

The height of building A is 210 m and the height of building B is 350 m. The two are 240 m away from each other. How long should a ladder be for a person to go from the top of A to the top of B.

Answers

Answer:

The length of the ladder should be 277.85 meters long

Explanation:

Great question, it is always good to ask away and get rid of any doubts that you may be having.

I have created an illustration and attached it as a photo below to better help you understand the situation. As seen on the illustration the difference in height of Building B from Building A is,

[tex]350m-210m = 140m[/tex]

Now that we have the difference we need to find the length of the ladder which is the hypotenuse between the two buildings. We can calculate this by using the Pythagorean theorem which is the following

[tex]h^{2} = a^{2} +b^{2}[/tex]

Now we can plug in the values and solve for the hypotenuse (h)

[tex]h^{2} = 240^{2} +140^{2}[/tex]

[tex]h^{2} = 57,600 +19,600[/tex]

[tex]h^{2} = 77,200[/tex] ... square root of 77,200

[tex]h = 277.85m[/tex] .... rounded up

Therefore, the length of the ladder should be 277.85 meters long

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

An abstract method ____.

is any method inthe abstract class
cannot beinherited
has nobody
is found in asubclass and overrides methods in a superclass using the reservedword abstract

Answers

Answer:

has no body.

Explanation:

An abstract method is a method which has no body.

It is contained in a class which is marked as abstract.

The implementation of such method is specified in a subclass.

For example:

//abstract class

abstract class myClass{

  /* Abstract method */  

  public abstract void mymethod(int a, int b);

}

//Concrete class extending abstract class

class Concrete extends myClass{

  public void mymethod(int a, int b){

return a+b;

  }

}

Which would be the best user error message?

A) Invalid Parameter
B) You must type a user name to continue.
C) You enter a user name to continue.
D) Gotcha! Type in a your user name.
E) Point the cursor on the user name and type one, please.

Answers

Answer: B. You must type a username to continue.

Explanation: "you must type a username to continue" is the most suitable error message of all the options given because it is the appropriate way and user-friendly approach to the user for correcting the error as compared to other options which consist of inappropriate words ,slang language or lengthy message which is not easily understood by the user.

Briefly explain the key points(including benefits/drawbacks) about the Water Fall life-cycle
model.

Answers

Answer:

The water fall life cycle model is explained as:

The waterfall life cycle model is defined as a sequential designed process in which progress are flowing steadily downwards through the process of analysis, design, testing and maintenance. It is the process of managing the development when something is complex.

Benefits:

It is a top down approach which breaks the tasks into a series of necessary goals that can important in the development process.Easy to maintain and use this approach. It can be easy to manage each phase has specific outputs and review process.

Drawbacks:

It takes a lot of time to properly document a system.The requirements cannot be changed in any phase.Risk and uncertainty are higher in this case.

Create a Java static method named getAverageOfFours that takes an array of integers as a parameter and returns the average of the values in the array that are evenly divisible by 4. Your method must work for an int array of any size. Example: If the array contains [10, 48, 16, 99, 84, 85], the method would return 49.33333.

Answers

Answer:

public class average{

   

   public static float getAverageOfFours(int[] arr){

       

       int n = arr.length;

       float sum = 0;

       int count=0;

       for(int i=0;i<n;i++){

           if(arr[i]%4==0){

               sum = sum+arr[i];

               count++;

           }

       }

       float avg = sum/count;

       return avg;

       

   }

    public static void main(String []args){

       

        int[] array = {10, 48, 16, 99, 84, 85};

       

        float result = getAverageOfFours(array);

        System.out.println("The average is "+result);

    }

}

Explanation:

Create the function with one parameter and return type is float.

Declare the variable and store the size of array. Take a for loop for traversing in the array and and check the element is divisible by 4 or not by using if statement. If condition true take the sum and increment the count.

This process continue until the condition is true.

finally take the average and return it.

Create the main function for calling the function with pass the array as argument and also define the array.

After that print the result return by the function.

The collection of all component frequencies iscalled _____________

a. Frequency Spectrum

b. Bandwidth

c. Throughput

d. None of the given

Answers

Answer:

The answer is Frequency Spectrum.

Explanation:

The frequency spectrum is range of all component frequencies.It contains all the waves which are as following:-

Gamma Rays

X-Rays

Ultraviolet

Visible light.

Infrared

Micro wave

Radio wave

These all waves have their range of frequencies.The waves that are visible to us is only the visible light.

What is the comment marker in Python? ("character marker" means the sequence of characters that indicates the beginning of a comment.)

Answers

Answer:

The # marker is used to mark a line comment in python.

Explanation:

The line that starts with # is a comment.Python will ignore the lines that starts with #.These comments can be used to add extra information in the python code.

For example:-

Following is the python code with comments.

names=['sam','optimus','bumblebee'] #names is the list of transformers characters.

for i in names:

     print(i)  #printing the names.

There are 2 comments in the python code written above.These are ignored by python.

x=10 ;
y= 15;
mystery (x,y);
void Mystery (int one , int two )
{
int temp;
temp = one;
one = one ;
two = temp;
}
3 What are the values ofx and y after thestatements above execute? (Assume that variables are properlydeclared.)
a.

x = 10; y = 10

c.

x = 15; y = 10

b.

x = 10; y = 15

d.

x = 15; y = 15

Answers

Answer:

The answer is x=10; y=15;

There is no change in the values of the variables x and y.

Explanation:

The integer variables x and y are initialized to 10 and 15 respectively as given.

x=10 ;

y=15 ;

The values of variables x and y are passed as parameters to another method, as shown.

mystery (x, y);

The mystery method given in the question is used to assign the same value to both the variables. The value of both the variables hold the value of x, i.e., both the variables hold the value of 10.

void Mystery ( int one , int two )  

{  

// temporary

int temp;  

// temp initialized to value of variable one which contains the value of variable x

// temp = x or temp = 10

temp = one;

// one is initialized to the value of itself or value of x

// one = x or one = 10

one = one ;

// temp is assigned value of variable x through variable one

// temp = 10

// y is also assigned value of temp variable

// y = 10

two = temp;  

}

As shown in the above steps, the mystery method is used to assign same values to variables one and two.

The values of original variables x and y are not affected since x and y are not utilized or called inside the mystery method.

This type of passing of parameters to a method can be described as passing a copy of the values of the parameters to the method.

Value of variable x is passed into variable one while value of variable y is passed into variable two.

Hence, values of variables one and two can be changed and modified without affecting the values of original variables x and y.

Convert the following do-while loop to a while loop: char sure; do { cout << "Are you sure you want to quit? "; cin >> sure; }while (sure != 'Y' && sure != 'N');

Answers

Answer:

char sure;

   cout << "Are you sure you want to quit? ";

   cin >> sure;

   while (sure != 'Y' && sure != 'N'){

       cout << "Are you sure you want to quit? ";

       cin >> sure;

   }

Explanation:

The loop is used in the programming for executing the part of code or statement again and again until the condition is not false.

do-while is the loop statement but it has a special property, it prints the statement first then checks the condition.

So, the loop executes the statement once, if the condition is false in the starting.

In the other loops, condition checks first and then execute the statement accordingly.

To change the do-while to while, we write the statement once outside of the loop in the starting then execute the loop and put the same statement inside the loop and it runs again until the condition true.

After the above change, while loop works the same as do-while.

Data Analysis The Iris Plants Database contains 3 classes of 50 instances each, where each class refers to a type of Iris plant. Five attributes/features were collected for each plant instance. 1. Implement an algorithm to read in the Iris dataset.

Answers

Answer:

35

Explanation:

DASD stands for ____________? Direct access storage device? Direct application storage device? Diverse access storage device

Answers

Direct Access Storage Device

Answer:

Direct access storage device.

Explanation:

DASD stands for direct access storage device.

Compare and contrast the role that business users play when software is developed using Waterfall and Agile software development methodologies.

Answers

Answer: Both Agile and waterfall model are software development models to deliver a final outcome in the form of a software product. Waterfall model is sequential process with the requirements beings rigid and defined before beginning the software development.

Agile method basically  concerned with the requirements of the client. Here both testing and development is carried out at the same time.

Explanation:

More differences between the two include :

Waterfall model is easy to manage whereas in agile model as the the client requirements changes and wants more functionalities is becomes a bit more difficult to manage. the role of project manager is very crucial in waterfall model whereas the role of developers ans testers is more important in Agile model.

The statement ____ declares intList to be a vector and the component type to be int

A.
vector intList;

B.
int.vector intList;

C.
int.vector intList;

Answers

Answer: vector<int> intList

Explanation:

Using the above declaration we can declare intList to be a vector and the component type to be int.

example:

int main()

{

vector<int> intList

   intList.push_back(1);                          

   intList.push_back(2);                          

   intList.push_back(3);                        

   printList(intList);  // printing the list

}

The true or false questions.

If find is run with no -exec option, then find will not take any action on the found files and there is no output to screen.

Answers

Answer:

false

Explanation:

-exec option is not mandatory for the find command.

find will still list out the identified files even in the absence of -exec option.

For example:

find . -name test -print

will print out files with the name 'test' in the current directory. Note that there is no exec option in this example.

Same holds true for find with no additional options at all.

For example:

find .

will list out all files in the current directory.

How would a static local variable be useful?

Answers

Answer: Static local variable is a variable that is initialized as static only one time inside a function and whenever it is called in that function it will be accessible.

Explanation: Static local variables are very useful variables which are declared as static in a particular function. Static local variable is initialized only one time in a function and whenever the function in which it has been declared ,the value of the variable will be accessible by as many times it has been called in the function in which it is declared.

Using static arrays, depending on the number of servers specified by the user, a list of servers is created during program execution.

True

False

Answers

Answer:

False

Explanation:

Static arrays are stored on the stack , having fixed size and scope within functions.

Example-

               int arr[10];

Static arrays can't update the values given by the user at the time of execution, they are initialized with some default values.So,we can't create list of servers at the time of program execution.  

But we can create list of servers using Dynamic arrays, because size is not fixed as it stores in heap and update at the time of execution.  

Example-  

              int* arr = new int[10];

              delete[] arr;

Why we called COBOL as a professional language and not ataught language.(

Answers

Answer:

COBOL(Common Business-Oriented Language)

COBOL was designed in industries such as finance and human resources for business computer programs. COBOL uses English syntax which make it easier for ordinary business users to understand computer programming languages.

COBOL is used to develop applications for businesses. We can say it is not a taught language because we don't learn it as teaching tool ,we use it in practical applications.

Other Questions
How much more will the total cost of three adult tickets be than three children tickets? (SHOW WORK) (Table at bottom)Book ExhibitionTicket | CostAdults | $22Children | $15Seniors | $14 What is the tallest monument in the u.S.? When Anna begins dating someone, she usually falls madly in love. However, her intense emotions are short-lived, and she quickly develops a strong dislike for the other person. Additionally, Anna reports feeling very lonely and empty even though she is always meeting people. Anna is most likely suffering from _____ personality disorder. Perform the indicated operation.g(t) = 2t + 2h(t) = t^2 - 2Find (gh)(-3)A.62B.14C.16D.126 When your governor took office, 100,000 children in your state were eligible for Medicaid and 200,000 children were not. Now, thanks to a large expansion in Medicaid, 150,000 children are eligible for Medicaid and 150,000 children are not. Your governor boasts that, under her watch, the number of children without access to health care fell by one-quarter. Is this a valid statement to make? Why or why not? Read the story description and historical context for the short story "Daughter of Invention" and answer the question.Story Description:Imagine moving to a new country and trying to fit in. People at school are calling you mean names, your mother is spending her nights designing crazy contraptions, and your father is still terrified of the secret police back in the Dominican Republic. Now, imagine you have to deliver a speech in front of your whole school. In "Daughter of Invention," the narrator recalls this time in her life and her mother's last invention.Historical Context:General Rafael Trujillo became the President of the Dominican Republic in 1930. His dictatorship lasted for decades. During that time, Trujillo established a secret police force that he used to censor the press and punish (including torture and murder) those who opposed him. One of Trujillo's most heinous crimes against humanity was his order that led to the massacre of approximately 20,000 Haitians. One of Trujillo's nicknames was "Chapita."What inference can you make about the narrator of "Daughter of Invention"? She did not feel like she belonged in her new country. She did not feel safe in her home country. She was excited to deliver a speech at her new school. She was proud of her mom's innovations. Y1=x^4 is a solutionto the ode x^2y"-7xy'+16y=0 use reduction of order to find another independant solution skateboarder, starting from rest, rolls down a 13.5 m ramp. When she arrives at the bottom of the ramp her speed is 7.37 m/s. If the ramp is inclined at 29.9 o with respect to the ground, what is the component of her acceleration that is parallel to the ground? Vision is the most important sense needed when driving. Explain five specific areas of vision and how alcohol affects them. Find the value of z such that "0.9544" of the area lies between z and z. round your answer to two decimal places. Your believe that you have received an unfair grade on a paper, but you know that arguing with your professor would do little good. You leave the classroom and angrily throw the paper into the nearest trash can. Steven Lukes would call this the ________ dimension of power. Graph the line with slope -1/3 and y-intercept-3. A segment of a play can be termed a/an A 3.00 kg object is moving in the XY plane, with its x and y coordinates given by x = 5t !1 and y = 3t + 2, where x and y are in meters and t is in seconds. Find the magnitude of the net force acting on this object at t = 2.00 s. PLEASE HELP ME WITH-THIS MATH QUESTION Dr. Black is interviewing a client. The client displays only the following symptoms: he rarely responds to the doctors questions, shows no emotions, and does not make eye contact. Is Dr. Black able to make a diagnosis of schizophrenia? 1452 divided by 44 = (1452 divided by 4) divided by 11This division problem uses the method of...A. FractionsB. Repeated SubtractionC. FactorsD. The Distributive Property If C is the midpoint of segment AB and AB = 20, what is AC? Sn=7k=1[1+ (k-1)(2)] The colonization of land by animals: took place billions of years ago.was made easier by high atmospheric levels of carbon dioxide.preceded the presence of plant species on land.may have taken place independently by a variety of species descended from aquatic ancestors.