Answer: You need a temporary variable to hold the value 3
Explanation:
So, aList[0] is 3 and aList[1] is 19, if it will be as it is you litteraly say to the compiler to change aList[0] to aList[1] at this moment aList[0] is 19 and aList[1] also is 19 and if you try to change aList[1] to aList[0] it will not change its value because they are the same.
You need temp variable to keep one of the values.
Answer:
D.
Explanation:
In combinational circuits, the current output values are always the same for the same set of input values, regardless the previous values.
We say that combinational circuits have no memory, or that the circuit has no feedback from the outputs.
For sequential circuits, on the contrary, the current output values are not based in the current input values only, but on the previous output values as well.
So, the fact of having a defined set of input values at a given moment, doesn't guarantee which the output values will be.
We say that sequential circuits have memory, or that they have feedback from the outputs.
Examples of these type of circuits are R-S, J-K, D or T flip-flops.