Answer:
4 bits
Explanation:
With 4 bits you can count to 15, because 2⁴=16. The maximum number you can express is always one less, i.e., 16-1=15.
In general, with n bits you can count to 2ⁿ-1.
Answer: To reuse a method means to use a code which has been done or prepared already and just we need to change some of the functionalities.
This helps a great deal of saving time as well as helps in making the code manageable.
Explanation:
This has been practiced since long that methods can be reused. for example we need to build a calculator in c. then we can simply reuse the same method just we need to change the sign of the operator. So in this process we can speed up our operations and work and also can make the code easy to understand and manage it when we have have to deal with large lines of code.
Answer:
result 1 = false;
result 2 = true;
Explanation:
result 1 = (43 < -77 && 1! = 10)
43 < -77 = false
1 != 10 = true
for any false && true logical operator, it returns false
result 1 = false;
false = 90 < -77 || -1 < 43
90 < -77 = false
-1 < 43 = true
for any false || true logical operator, it returns true
result 2 = true;