Answer:
Polymorphism means that a variable of supertype can refer to a subtype object.
Explanation:
For example, in Python programming language, a function that accepts an iterable object uses the concept of polymorphism because that function can accept strings, lists, tuples as arguments.
Cache memory is a high-speed memory that stores the instructions and data that have been frequently accessed. It decreases the time it takes to decode the instructions stored in the instruction pipeline.
A. It decreases the time it takes to decode instructions stored in the instruction pipeline.
<u>Explanation:</u>
Whenever an instruction is invoked or some data is accessed, the CPU looks for it in the cache memory before accessing the main memory.
If the content is found in the cache memory, it accessed from there and then and hence the access time and decode time is reduced as there were no main memory lockups.
Answer:
result=0;
for (i=lo ; i<=hi; i++){
result += i;
}
Explanation:
The question says result was declared but not initialized, so using result without initializing it to 0 would throw an error as result would be undefined and you can't add a number to undefined
Another way to do it to keep everything inside the loop would be
for (i=lo ; i<=hi; i++){
if (i==lo) result= 0;
result += i;
}
but this is impractical since it would add unnecesary operations in each cycle of the loop
Answer: Primary key
Explanation: Relational databases are those databases which are commonly found in the form of tables . It works in the relation pattern for accessing the data in the database
Primary key is a major factor which is found in the relational databases for the identification of the data in the table's column.It is considered as the unique value that corresponds to the values of rows in the table of relational database.
database management system