Which of the following statements adds the number stored in the decPrice variable to the number stored in the decSubtotal variable, and then assigns the result to the decSubtotal variable?
A. decSubtotal =+ decPrice
B. decPrice =+ decSubtotal
C. decSubtotal += decPrice
D. decPrice += decSubtotal
Answer: C
You might also like to view...
Draw a network diagram similar to Figure 1-29, consisting of three computers, a switch, and a printer. Use the MAC addresses given in Table 1-9.
Assign each network device an IP address from the private address space 192.168.5.x network. You are the network administrator and may choose the host address for each device.
Fiqure 1-29
Although programmers perform the actual coding, IT managers usually assign systems analysts to work with them as part of a team.
Answer the following statement true (T) or false (F)
Tests for equality of single-precision and double-precision values and variables using the relational operator == are usually reliable.
Answer the following statement true (T) or false (F)
Loops created using the ____ method run forever unless you provide a way to terminate them.
A. while B. downto C. loop D. None of the above