Answer:
The only difference is the order of operations between the increment of the variable and the value the operator returns. So basically ++i returns the value after it is incremented, while i++ return the value before it is incremented.
Answer:
"int result= doubleIt(15);" is the correct answer for the above question
Explanation:
- The function in a c++ programming is used to perform some specific tasks for the user. If a user wants to use any function, Then there is needs to do three things, which are as follows:-
- Firstly, there is needs to give the prototype for any function,
- Then there is a needs to define the function body.
- Then there is needs to call the function
- The function can be called by the help of " data_type variable_name = function_name (argument_list);" syntax in c++.
Answer:
1. E
2. C
3. F
4. D
5. A
6. B
Explanation:
CPU: this is known as the central processing unit and it is considered to be the brain of a computer system. It is the system unit where all of the processing and logical control of a computer system takes place.
A. Decode unit: decodes instructions and data and transmits the data to other areas in an understandable format.
B. Register unit: contains many separate, smaller storage units. Modern CPUs need only a few nanoseconds to execute an instruction when all operands are in its registers.
C. Bus unit: it is used to connect all the other major components together, accepts data, and sends data through the input and output bus sections.
D. Control unit: control of the overall operations of the CPU. The component of the central processing unit (CPU) that controls the overall operation of a computer is the control unit. It comprises of circuitry that makes use of electrical signals to direct the operations of all parts of the computer system. Also, it instructs the input and output device (I/O devices) and the arithmetic logic unit how to respond to informations sent to the processor.
E. Arithmetic logic unit (ALU): performs mathematical functions on data stored in the register area.
F. Cache: small temporary memory area that separates and stores income data and instructions.