Answer the following statements true (T) or false (F)
1) The following are all valid variable names: _under_bar_, m928134, t5, j7, her_sales,
his_account_total, a, b, c, z, z2.
2) The statement cout << "a = 5;"; is a typical example of an assignment statement.
3) A valid arithmetic expression with no parentheses is evaluated from left to right.
4) The following are all invalid variable names: 3g, 87, 67h2, h22, 2h.
5) By convention, function names begin with a capital letter and all subsequent words in
the name begin with a capital letter.
1) True.
2) False. The statement is an output statement. The text a = 5; is output to the screen.
3) False. Arithmetic operators can appear in any order in an expression, so the expression is a = b+ c* d; actually evaluates from right to left because of the rules of operator precedence.
4) False. h22 is a valid variable name. The others are invalid because they each begin with a digit.
5) False. Function names begin with a lowercase letter and all subsequent words in the name begin with a capital letter.
You might also like to view...
Ed's Windows system can't connect to the network and ipconfig shows the following: What has occurred on the system?
A. The system has been assigned an invalid IP address by its DHCP server. B. The system has a manually assigned IP address. C. The system has failed to get a DHCP address and has assigned itself an address. D. The subnet mask is set incorrectly and the system cannot communicate with the gateway.
Windows is an example of ____.
A. shareware B. freeware C. closed source software D. open source software