Rev A CSC126
Lab2
- What are the following operations in C++ programming equal to?
- 9 / (-6) =
- (-9) / 6 =
- 9 % (-6) =
- (-9) % (6) =
- Write a program that writes out the above 1 to 4 mathematical operations and solves the equations.
- What is the following binary numbers equal to in decimal?
- 001=
- 1=
- 01=
- 110=
- 101=
3A. Write a program that calculates the decimal values for the binary numbers given above in question 3.
- What is the largest 4 bit binary number?
- For a 30 gigabyte memory how many
- Megabytes?
- Kilobytes?
- What memory does a program have to be loaded into in order to be executed from?
- In the C++ templates we have already studied which file(s) are added by executing the build command?