Answer:
The output is 24
Explanation:
Given
The above code segment
Required
The output
We have (on the first line):
On the second line:
Substitute the value of each variable
Solve the inner brackets
8%3 implies that, the remainder when 8 is divided by 3.
The remainder is 2
So:
<em>Hence, the output is 24</em>
Answer:
1. When an object of the class is passed (to a function) by value as an argument.
2. When an object is constructed based on another object of the same class.
3. When compiler generates a temporary object.
Explanation:
There are two types of secondary memories.
- RAM
- ROM
RAM:
- RAM stands for random access memory .
- It is expandable.
- we can do multiple things in it.
- Its erasable.
ROM
- ROM stands for read only memory.
- It is permanent .
- We can only read in it.
- Its permanent hence not removable.
Answer:
Speakers.
Explanation: Cause they only output sound, and are devices, further more they are not used to output images, like how could speakers output images using sound? They can't.