Assume: Memory: 5 bit addresses Cache: 8 blocks All memory locations contain valid data If the memory location is 9. What is the Binary Address and cache block # If the memory location is 12. What is the Binary Address and cache block # If the memory location is 15. What is the Binary Address and cache block #

Answers

Answer 1
Answer:

Answer:

The answer to this question can be described as follows:

binary address: 01001, 01100, 01111.

Cache block: 1, 4, 7

Explanation:

Given values

Memory = 5 bit and cache = 8 blocks

Option 1)

memory location is =9

convert into binary number, so we get binary address = 01001

So, the cache block = 1

Option 2)

memory location is = 12

convert into binary number, so we get binary address = 01100

So, the cache block = 4

Option 3)

memory location is =15

convert into binary number, so we get  binary address = 01111

So, the cache block = 7


Related Questions

Which of the following statements is not true?A. A structured chart is a sequential representation of program designB. the Real-Time system is a particular case of a on-line-systemC. Batch totals are not incorporated while designing real-time applicationsD. 4GLs are used for application proto typingE. None of the above
A babysitter charges $2.50 an hour until 9:00 PM when the rate drops to$1.75 an hour (the children are in bed). Write a program that accepts astarting time and ending time in hours and minutes and calculates the totalbabysitting bill. You may assume that the starting and ending times are ina single 24-hour period. Partial hours should be appropriately prorated.
Identify a true statement about a flat file system. a. Data in a flat file system can be updated efficiently. b. Data in a flat file system may not be updated in all files consistently. c. Data duplication in a flat file system is very efficient. d. Data in a flat file system can be easily managed.
How are you going to use computer in your career/field?
Why are two-way communications necessary between the front desk and housekeeping?

Which type of error occurred in the following lines of code? >>> print(9 / 0)

Traceback (most recent call last):

File " ", line 1, in

9/0

ZeroDivisionError: division by zero
Answer choices:
reserved word error

logical error

exception

syntax error

Answers

Answer: Logical Error

The division by 0 is a logical error.

Give an example of a function from N to N that is:______.a) one-to-one but not onto
b) onto but not one-to-one
c) neither one-to-one nor onto

Answers

Answer:

Let f be a function

a) f(n) = n²

b) f(n) = n/2

c) f(n) = 0

Explanation:

a) f(n) = n²

This function is one-to-one function because the square of two different or distinct natural numbers cannot be equal.

Let a and b are two elements both belong to N i.e. a ∈ N and b ∈ N. Then:

                                f(a) = f(b) ⇒ a² = b² ⇒ a = b

The function f(n)= n² is not an onto function because not every natural number is a square of a natural number. This means that there is no other natural number that can be squared to result in that natural number.  For example 2 is a natural numbers but not a perfect square and also 24 is a natural number but not a perfect square.

b) f(n) = n/2

The above function example is an onto function because every natural number, lets say n is a natural number that belongs to N, is the image of 2n. For example:

                                f(2n) = [2n/2] = n

The above function is not one-to-one function because there are certain different natural numbers that have the same value or image. For example:

When the value of n=1, then    

                                   n/2 = [1/2] = [0.5] = 1

When the value of n=2 then

                                    n/2 = [2/2] = [1] = 1

c) f(n) = 0

The above function is neither one-to-one nor onto. In order to depict that a function is not one-to-one there should be two elements in N having same image and the above example is not one to one because every integer has the same image.  The above function example is also not an onto function because every positive integer is not an image of any natural number.

What suggestions do you have for preventing scope creep in projects?

Answers

Answer:

Scope creep is defined as the uncontrolled changes occur in the projects scope is known as scope creep. It basically occur when the project scope are not properly define and controlled.

Suggestions for preventing scope creep in projects are as follow:

  •   By using the online projects software and the software management help in prevent the scope creep in the projects.
  •   We should always focus on the projects requirements and must understand the main vision of the clients.
  •   There is no requirement of overdoing in projects rather keeping it simple and accurate according to the main requirements. otherwise, it may lead to scope creep.

As sensory input ________, our ability to detect changes in input or intensity ________.

Answers

As sensory input decreases, our ability to detect changes in input or intensity increases.

The getValue() method is overridden in two ways. Which one is correct?1.

public class Test {

public static void main(String[] args) {

A a = new A();

System.out.println(a.getValue());

}

class B {

public String getValue() {

return "Any object";

}

class A extends B {

public Object getValue() {

return "A string";

}

2.

public class Test {

public static void main(String[] args) {

A a = new A();

System.out.println(a.getValue());

}

class B {

public Object getValue() {

return "Any object";

}

class A extends B {

public String getValue() {

return "A string";

}

a.I
b.II
c.Both I and II
d.Neither

Answers

Answer:

Hi there KatiesTomato! The answer is: b. II

Explanation:

Java allows us to override a method defined in the main or Parent class by re-defining it in the child class. In the question, the first option gives us code that will throw an error because the String method getValue() in class B is being overridden by a method in class A which returns an Object which is also a String. So the compiler will throw an error that type Object is not compatible with String. Option 2 will compile successfully and return a String because the Object is allowed to be converted to a String.

. Constructors are executed when?

Answers

Answer:

 The constructor are executed when the constructor object are comes in the existence as per the general rule in the computer programming language. The constructor is the special type of the class function that basically perform the initialization of the each object in the computer science.

Then, the constructor initialized actual value of the member of an object are allocated to the given object in the system.  

Other Questions