define the role of cache memory in computers.

Answers

Answer 1

Answer:

Cache memory is relatively small in size as compared to the main memory. The cache memory stores programs, variables which are frequently used by the processor.

Explanation:

The cache memory is placed very close to the processor so that the programs and variables can be accessed very quickly as and when required by the processor. The size of the cache memory is small and also cost more. There is also a secondary cache in many systems which enables to store more programs which cannot be store in the primary cache.


Related Questions

Which of the following statements isNOT true about abstract data types (ADTs)?A list is anexample of an ADT.ADTs hide theimplementation details of operations from users.Java provides allthe ADTs you need, therefore you do not need to create any newones.An ADT is anabstraction of a commonly appearing data structure.

Answers

Answer:

Java provide all the ADTs you need,therefore you do not need to create any newones.

This statement is not true.

Explanation:

ADTs are those data types which we use but we didn't know their inner working that is how it is working what is happening inside.It is commonly used for Data Structures for example:- In stack we use push and pop operations to insert and to delete element from a stack respectively but we didn't know how it is happening inside.How the stack is implemented and etc.Java provides most of the ADT's but not all.

The statement that is wrong as regards abstract data types in this question is C: Java provides all the ADTs you need, therefore you do not need to create any new ones.

The abstract datatype can be regarded as special kind of datatype, whereby the behavior of the data is been defined by a set of values as well as a set of operations.

ADTs can perform operation such as hiding of  the implementation details of operations from users. It can be regarded as an abstraction of data structure that appear more often

Examples of ADT are;

StackQueueList

Therefore, option C is correct.

Learn more at:

https://brainly.com/question/23883878?referrer=searchResults

Explain the following terms in a sentence or two in C++context.a)Orthogonalityb) Expresibilityc) Language domain andparadigmd)Portability

Answers

Answer:

a)Orthogonality

IBM C++ implements compatibility characteristics at the C 99 language stage and with GNU C language extensions to maintain compatibility as a super-set of C. IBM C++ also promotes a subset of C++ GNU extensions. Like the IBM C language extensions, the orthogonal and non-orthogonal language functions of the C++ extensions.

b) Expresibility

Expresibility relates to what can be said in the language of regular expression, most lex generators enable sets of letters, Kleene star(Vˣ) and plus, and alternation. Consider what happens if you have C++ with embedded assembly code: the C++ code is likely to belexer under one set of rules, and the management of lexical mode indicates how control can be transferred from one mode to another.

c) Language domain and paradigm

C++ is a programming language that promotes multiple paradigms, including classes, overloaded features, templates, modules, and more.

Using C++ wealthy collection of over-loadable operators as a domain-specific language, a category representing a matrix could overload multiplication(*) and other arithmetic operators, enabling implementation codes to be handled similarly to the numerical sort.

d) Portability

C++ includes the entire variety from low-level to high-level programming, making it ideal for composing portable software, but in embedded systems engineering code portability is often overlooked. With software becoming increasingly complicated, and hardware becoming increasingly interchangeable, this supervision becomes a issue when software has to be transported to a new platform.

Which window control button appears only when a window is maximized? ()
Maximize

Minimize

Restore

Close

Answers

Answer:

Restore

Explanation:

When the window is in minimized mode we get minimize, maximize, close buttons there.

When the window is in maximized mode we get minimize, restore, close buttons there.

Which ofthe following sentence beginnings would be best to use in apersuasive request?

a- We think it would begood if you . . .

b- We need you to give . ..

c- Will you please . . .?

d- It would be appreciatedif you....

Answers

Answer:

d- It would be appreciated if you...

Explanation:

Persuasive request

It is a request to change one's belief,attitude by the help of the written submission like letter etc.

There are three components-

Opening-Start with something different like quotes or greeting etc.

Body-It include main thing to focus on it.

Closing-It is the reminder of the appeal.

b We need you to give  ..  c- Will you please . . .? These two are directly going for the change(body),we will eliminate these.

a- We think it would be good if you . . . ,it is also approaching the result and we are using 'WE' so we can also eliminate this.

d- It would be appreciated if you....,In this we are starting with greeting. So it is a persuasive request.

.Compare and contrast Primary storage and Secondarystorage.?

Answers

Answer:

Primary memory is the main memory ,Secondary memory can be external devices like CD, floppy magnetic discs etc

thats it to it really those are some of the reason

What is the output of the following code segment? int n = 0; for (int k = 0; k< 2; k++) {n=n +2;} cout << n; oo 0 1 O O O

Answers

Answer:

4

Explanation:

The loop is used to execute the part of code or statement again and again until a condition is not true.

syntax of for loop:

for(initialize; condition; increment/decrement){

   statement;

}  

in the question, the value of n is zero.

then, for loop check the condition k<2, initially the value of k is zero. so, the condition is true and execute the code n = 0 +2=2

Then, k is increment by 1. so, the value of k is 1.

then, again loop run and check the condition 1<2, it true. then n = 2+2=4.

then, k is increment by 1. so, the value of k is 2.

Then, again check the condition 2<2, condition false and program terminate the loop and finally print the value 4.

Assuming deq is a deque object, the expression deq.push_front(elem) deletes the first element from deq.

True

False

Answers

Answer: False

Explanation:

This code code not deletes element from deq. This insert element at the beginning of deq. if it was deq.pop_front(elem) then it would have deleted the first element.

Therefore, it is false.

Write a C++ programthat reads in the side of a square and prints out a pattern on$

symbols representing thatsquare. The program should work for side sizes between

2 and 10. For example, ifa size of 4 is entered, the following output should be

produced:

$$$$

$$$$

$$$$

Answers

Answer:

#include<iostream>

using namespace std;

//main function

int main(){

   //initialize the variables

   int side;

   //print the message

   cout<<"Please enter the side of square: ";

   cin>>side;  //read the vale and store in the variable.

   // for loop

   for(int i=1;i<=side;i++){  //lop for rows

       for(int j=1;j<=side;j++){   //loop for column

           cout<<"$";  //print the '*'

       }

       cout<<endl;

   }

}

Explanation:

Create the main function and declare the variable side.

print the message on the screen for the user and then store value enter by the user on the variable side.

take the nested for loop for print the pattern.

nested for loop means, loop inside another loop it is used for print the pattern having rows and columns.

the first loop updates the row number and the second the loop print the character '$' in the column-wise.

in the code,

if i = 1, for loop check the condition 1 <= 5 if the value of side is assume 5.

condition is true and the program moves to the second for loop and starts to print the character '$' five times after that, print the new line.

then, the above process repeat for different rows and finally, we get the pattern in square shape.

Specialized vocabularyis known as:

o Equivocal terms

o Jargon

o Trigger words

o Biased language

Answers

Answer:

"Jargon"

Explanation:

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

Specialized vocabulary is sometimes also known as "Jargon" . These are sets of words that are used specifically and uniquely for specific sets of groups or organizations.

For example Lawyers Judges and other law enforcement officials have their own Specialized vocabulary that are better understood by other people in Law enforcement, people that are not part of Law Enforcement might have a hard time understanding.

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

____ is the encapsulation of method details within a class.

a.
Implementation hiding

b.
A calling method

c.
Instantiation

d.
An interface

Answers

Implementation hiding is the encapsulation of method details within a class. Implementation can be interpreted as those specifications which can be altered without altering the correctness of an application. Wrapping data/methods within classes (descriptions of the way all objects of this type will look/act) in combination with implementation hiding is called encapsulation. Information users need to know about behaviors should be available without dependence on implementation specifications.

After you create an array variable, you still need to ____ memory space.

a.
reserve

b.
create

c.
organize

d.
dump

Answers

Answer:

Answer is (a) reserve

Explanation:

Usually when we create an array variable, in some language the memory is allocated automatically. But in some the memory is not allocated automatically. So we need to reserve the memory space for the array.

For example in C++ dynamic memory allocation we need to allocate memory using new keyword.

What is an example of the most important role of a systems analyst in any corporation?

Answers

Answer: The system analyst is one of the most important members in any organisation. These system analyst has to analyse different data of the organisation which would help to bring out the different any new business policy changes or any kind of improvement.

Explanation:

An example to know this better would be the system analyst of a telecom company. Here the role of the system analyst would be bring out the design and implementation of new telecom information system and also should be aware of previous data of the organization. The system analyst would also be responsible to bring out the new business policies based on latest telecom standards and ensure the systems conforms to the latest standards.

A painting company has determined that for every 115 square feet or wall space, one gallon of paint and eight hours of labor will be required. The company charges $.18.00 per hour for labor . Write a program that allows the user to enter the number of rooms to be painted and the price of the paint per gallon. It should also ask for the square feet of wall space in each room. The program should have methods that return the following:
* The number of gallons of paint required
* The hours of labor required
*The cost of the paint
*The labor charges
*The Total cost of the paint job

Answers

The program to calculate the total paint cost and other values is given below.

#include <iostream>

using namespace std;

int main() {  

 int rooms, laborChrg = 18;

 float paintChrg;

 float feetPerRoom[rooms];  

 float paintReq, laborHrs, paintCost, laborCost, totalCost, totalsqft=0;  

 cout<<"Enter the number of rooms to be painted "<<endl;

 cin>>rooms;  

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

 {

 cout<<"Enter the square feet in room "<<endl;

 cin>>feetPerRoom[i];  

 // shortcut operator which is equivalent to totalsqft = totalsqft +     feetPerRoom[i];

 totalsqft += feetPerRoom[i];

 }  

 cout<<"Enter the cost of the paint per gallon "<<endl;

 cin>>paintChrg;  

 laborHrs = (totalsqft/115)*8;

 laborCost = laborHrs * laborChrg;  

 paintReq = totalsqft/115;

 paintCost = paintReq * paintChrg;  

 totalCost = laborCost + paintCost;  

 cout<<"The number of gallons of paint required "<<paintReq<<endl;

 cout<<"The hours of labor required "<<laborHrs<<endl;

 cout<<"The cost of the paint is "<<paintCost<<endl;

 cout<<"The labor charges are "<<laborHrs<<endl;

 cout<<"The Total cost of the paint job is "<<totalCost<<endl;  

 return 0;

}

Explanation:

The header files for input and output are imported.

#include <iostream>

using namespace std;

All the variables are taken as float except labour charge per hour and number of rooms.

The user is asked to input the number of rooms to be painted. An array holds the square feet in each room to be painted.

cout<<"Enter the number of rooms to be painted "<<endl;

cin>>rooms;  

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

{

cout<<"Enter the square feet in room "<<endl;

cin>>feetPerRoom[i];  

totalsqft += feetPerRoom[i];

}  

The above code asks for square feet in each room and calculates the total square feet to be painted simultaneously.

All the data to be displayed is calculated based on the values of labor charge per hour and gallons of paint needed, given in the question.

laborHrs = (totalsqft/115)*8;

laborCost = laborHrs * laborChrg;

paintReq = totalsqft/115;

paintCost = paintReq * paintChrg;

totalCost = laborCost + paintCost;

All the calculated values are displayed in the mentioned order.

A final class can't be extended.

*True

*False

Answers

Answer:

The answer is True.

Explanation:

The final class cannot be extended because in java final keyword means "no modification". If it is applied to a variable or anything else then that value becomes a constant after that it cannot be modified.So in cases of class if final keyword is used it means that class cannot be extended.

Which of the following can be used to record the behavior of classes?

A) Javadoc comments

B) Nouns and verbs in the problem description

C) Polymorphism

D) UML notation

Answers

Answer:

A) Javadoc comments

Explanation:

It is used for documenting the java source code in HTML and java code documentation. The difference between multi-line comment and javadoc is that ,javadoc uses extra asterisk, For example-

/**

* This is a Javadoc

*/

It is used to record the behavior of classes.There are various tags used in this like @author,{@code},@exception and many more.

Please briefly describe your QA / testing process?

Answers

Answer: The QA/Testing process consist of the following:

1. Requirement specification

2. Reviewing the code.

3. Unit testing

4. Integration test

5. Performance testing

Explanation:

We start of by the requirement specification try to gather all the information accurately. Then begins the coding process where there is review of the code so that they perform their desired purpose. After modules are completed we perform unit testing of the different modules individually and also do the integration testing once all the modules are completed. At the end we perform the performance testing to take a note on their desired output and other quality parameters.

Because an AVL tree is a binary search tree, the search algorithm for an AVL tree is the same as the search algorithm for a binary search tree.

True

False

Answers

Answer:

True, Yes the search algorithm for AVL tree and the binary search tree are same.

Because in both trees, of a certain a node, the smaller elements reside in the left sub-tree and the larger elements reside in the right sub-tree.

Explanation:

So while searching an element in the AVL tree we start the search from the root node.

We compare the element to be searched with the root node.

if (element < root node), then move in left and compare with it's left child.

else move in right and compare with it's right child.

Similarly in next phase move accordingly as in the binary search tree.

Why do we need the binary system?

Answers

Answer:

We need to have binary numbers because that is how computers process data.

Explanation:

What are minimum numbers of pins required for serialcommunication? Also write

their names?

Answers

Answer:

Serial communication are connected using 2 types of connector

Explanation:

The two types of connector for serial communication are:

1. Nine pin connector.

2. Twenty five pin connector.

for 9 pin connector we have:

pin 1 = data carrier detect

pin 2= received data

pin 3= transmitted data

pin 4= data terminal ready

pin 5= signal ground

pin 6= data set ready

pin 7= request to send

pin 8= clear to send

pin 9= ring indicator

Here, the minimum number of pins can be pin 2,3 and 5 which are receive, transmit and ground signal to establish a communication without handshaking.

The minimum number of pins actually depend on the type of software we use.

Memory cache is referred to as ______. A. SRAM c. SROM b. DRAM d. DROM

Answers

Answer:

Answer is A. SRAM

Explanation:

Memory cache is called static RAM.

Write down the complete procedure for creating ExcelSheet.

Answers

Answer:

The complete procedure for creating Excel Sheet:

Excel sheets is defined as which are typically in tabs near the bottom left hand corner of the window, when a sheet gets open, it can only be viewed one at a time, however you can generated formulas and select the data from other sheets that can be used on another sheet's formula. Separated sheets are valuable for inserted separate charts and graphs, organizing the information from sheet.You are given three sheets with any new excel sheet.The default names are Sheet 1, Sheet 2, and Sheet 3 and are named on the tabs. These names can be changed accordingly by clicking on the tab name.We can also add the boundaries and label the rows.

Write matlab programs to convert the following to binarynumbers.
a) 23
b)87
c) 378
d)2388

Answers

Answer:

decimal_no = 23;

binary_no = dec2bin(decimal_no);

matlab answer=10111  /*it is a string in matlab*/

now you just have to change the values of decimal_no

On putting 87

the answer is 1010111

On putting 378

the answer is 101111010.

On putting 2388

the answer is 100101010100.

Explanation:

We have used the inbuilt function in matlab dec2bin(decimal Number) it returns the binary number as a string.

The true or false questions.
The command: egrep -l 'cis' * will show the name of all files in the current directory where the name contains the word 'cis'

Answers

Answer:

True

Explanation:

egrep command is basically used for text filtering and is an modified version of grep. using -l with egrep implies it returns the names of the matching files but does not return the line number. Following this we have the keyword here in the question it is 'cis' and * stands for the entire directory search. Therefore, the command egrep -l 'cis' * will show the names of all files in the directory with the word 'cis'.

An interface does not have ____.

A) return types

B) instance fields

C) abstract methods

D) public methods

Answers

Answer:

B - instance fields

Explanation:

Fields/variables declared within interfaces are by default final, public or static and hence will not be considered as an instance variable/field but a class variable. Although interfaces can be used to define instance methods, they will never have instance variables.

If you want a user to enter exactly 20 values, which loop would be the best to use?



1. do-while

2. while

3. for

4. infinite

5. None of these

Answers

Answer: For loop

Explanation:

Using the for loop we can get the exact number of values/outcomes we require.

For example:    printf(enter 20 numbers");

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

                               {

                                       scanf("%d", &number);

                                }

So, this is an implementation of for loop in C. Using it we can enter exact 20 numbers not less or more than that.

Therefore, for loop is the answer.

Final answer:

The for loop is the best choice when you want to run a loop a known amount of times. In this specific example, you can use the for loop to gather 20 pieces of user input.

Explanation:

If you want a user to enter exactly 20 values, the best loop to use would be the for loop. The for loop is specifically designed for situations where we know in advance how many times the loop needs to execute. In this case, we know the loop needs to execute exactly 20 times to accept 20 input values from the user, so using a for loop would be the most appropriate choice.

Here's an example of how you can structure a for loop in this situation:

for(int i = 0; i < 20; i++) {
 // User input code here }

This loop will run 20 times, allowing you to gather 20 pieces of user input.

Learn more about For Loop here:

https://brainly.com/question/32789432

#SPJ6

What information is stored in the file system?

Answers

Answer:

The file system store all the related files of the operating system and also their information such as  file name,location, directory hierarchy etc.

Explanation:

Basically a file system FAT(file allocation table) which contains all sorts of file present in the operating system, it can viewed s a database with index present or accessing different files from the FAT. File systems contains information from various devices such as DVDs, flashdrives.

Example Windows contain file system such as FAT,NTFS and exFAT

The Scanner.nextInt method throws an unchecked ____ if a user enters an input that is not an integer.

A) InputMismatchException

B) NumberFormatException

C) IllegalArgumentException

D) IOException

Answers

Answer:

A) Input Mismatch Exception

Explanation:

The Scanner.nextInt method throws an unchecked Input Mismatch Exception if a user enters an input that is not an integer.

The Scanner.nextInt method throws an unchecked ____ if a user enters an input that is not an integer.

A) InputMismatchException

B) NumberFormatException

C) IllegalArgumentException

D) IOException

Describe the role of the IETE.

Answers

Answer: For the growth and foster of electronics and telecommunication technology

Explanation:

IETE(The Institution of Electronics and Telecommunication Engineers) is one of the established and leading society with members all across the globe. Its primary objective is to train people and professionals in the fields of information technology, electronics and communication technology. It published standard journals, does R&D and also holds seminars for spreading and education people on the lines of latest technologies.

Thus, IETE is primarily  focused on spread and growth of electronics, IT and communication development across every continent.

The IETE focuses on advancing electronics, telecommunications, and information technology, supporting educational initiatives, and ensuring broadband access in schools. It collaborates with organizations like ISTE for educator training and technology integration. Its mission includes fostering sustainable educational transformation worldwide.

Role of the IETE

The Institute of Electronics and Telecommunication Engineers (IETE) is a prominent professional society dedicated to the advancement of electronics, telecommunications, and information technology. The primary goals of the IETE include promoting the efficient application and integration of IT in education, driving policy initiatives in educator preparation and professional development, and ensuring the availability of broadband internet for learning environments.

The International Society for Technology in Education (ISTE) works closely with organizations like IETE to set standards for PK-12 instructor training and support a transformative approach to integrating technology in educational settings. Given its strategic role within UNESCO, particularly through the UNESCO Institute for IT in Education (IITE), the IETE seeks to create sustainable changes and foster inclusive educational transformation worldwide.

The broader mission of IETE aligns with efforts in developing robust infrastructures in schools, equipping educators with necessary technological tools and strategies, and providing resources for ongoing professional growth.

prove that the dual of the exclusive-OR gate is also itscomplement

Answers

Answer:

Explanation:

The dual of a function means replace AND with OR and replace OR with AND.

XOR gate of A , B is

[tex]A \, XOR\, B = AB' + A'B[/tex]

So, Dual of A XOR B is ( replace AND with OR and OR with AND)

[tex]= (A+B')(A'+B)[/tex]

Complement of A XOR B is [tex](A XOR B) ' = (AB' + A'B) ' = ((A)' + (B')') ((A')' + (B)') = (A'+B)(A+B')[/tex] (In finding compliment AND becomes OR and OR becomes AND ).

By inter changing the above product of terms  

Complement of [tex]A XOR B = (A + B') (A' + B)[/tex]

So, Dual of A XOR B = Complement of A XOR B.

What is difference between rand() and srand() ?

Answers

Answer:

rand() function generate the random number within the range.

srand() function decide the starting point for random function or set the seed for rand() function.

Explanation:

rand() function which is used to generate the random number within the range.

srand() function is used to decide the starting point for random function.

In sort meaning, it set the seed for rand() function.

if srand() function not used, the random function generate the same output again and again because the starting point is fixed for generating the random number.

if srand() function used it change the starting point every time and random function generate the output different in every time.

Other Questions
cos^2a/(1-tana)+sin^3a/(sina-cosa)=sina+cosa Enzymes are:a. biological catalysts. b. have peptide nature (proteins).c. agents that significantly speed up the rate of biochemical reaction. d. all of the above. How many constitutional amendments are there According to the ________ theory developed by Kobasa and her colleagues, less stress will result if you perceive potentially stressful events as a challenge instead of a threat. (A) life-events (B) hardiness(C) social support(D) allostatic load x to the 2nd power + 3=12 Find the range of the following set of data.23,50, 49, 48, 49, 32, 37, 40, 41, 42, 41, 41, 43 Micah forsook idolatry to worship Jehovah. True or False? find the distance between the points (-3,2) and (0,3). Raul received a score of 77 on a history test for which the class mean was 70 with a standard deviation of 6. He received a score of 79 on a biology test for which the class mean was 70 with standard deviation 4. On which test did he do better relative to the rest of the class? The blue segment below is a diameter of O. What is the length of the radius of the circle? It takes 0.16 g of helium (He) to fill a balloon. How many grams of nitrogen (N2) would be required to fill the balloon to the same pressure, volume, and temperature? Including only the part of a quotation that supports your points makes your argument Unconvincing Objective Engaging Scholarly Jayanta is raising money for the homeless, and discovers each church group requires 2 hr of letter writing and 1 hr of follow-up calls, while each labor union needs 2 hr of letter writing and 3 hr of follow-up. She can raise $125 from each church group and $175 from each union. She has a maximum of 20 hours of letter writing and 14 hours of follow-up available each month. Determine the most profitable mixture of groups she should contact and the most money she can raise in a month. For real gases, how does a change in pressure affect the ratio of PVto nRT?A. The ratio increases as pressure increases.B. The ratio is constant at all pressures.C. The ratio decreases as pressure increases. joseph had started saving quarters,dimes,nickel and penny but is unable to give theexact change for a hamburger costing $3.50.What the greatest amount of money he could have in coins. Which sentence from The Riddle of the Rosetta Stone best supports the prediction that Jean-Franois Champollion would continue his quest to decipher the hieroglyphs for many years despite potential obstacles? By the time he was seventeen, Champollion had learned Greek, Hebrew, Arabic, Sanskrit, Persian, and other Near Eastern languages, as well as English, German, and Italian. Champollion hotly denied these suggestions, claiming that he had arrived at his new position entirely on his own. He worked on them in his spare time, even after returning to Grenoble and taking a job as a teacher. However the change came about, it provided Champollion with a new key to the puzzle of the hieroglyphs. Select the correct answer.What is the purpose of using text features in an informative essay?A. It concludes the essay in the best possible manner.B. It lists facts for the information in the essay.C. It helps make the informative essay appear more attractive.D. It helps give a clearer understanding of the essay. Which of the following is true about trust 1 Numerous practices have been developed to reduce ____________________, including reducing or eliminating tillage, managing irrigation to reduce runoff, and using terracing or contour planting.2 Foods labeled as natural are required to contain at least 50% organic ingredients.3 The genetic changes in genetically modified plants cannot spread to wild populations or affect natural biodiversity. You manage an ice cream factory that makes two flavors: Creamy Vanilla and Continental Mocha. Into each quart of Creamy Vanilla go 2 eggs and 3 cups of cream. Into each quart of Continental Mocha go 1 egg and 3 cups of cream. You have in stock 700 eggs and 1500 cups of cream. How many quarts of each flavor should you make in order to use up all the eggs and cream? HINT [See Example 5.]