(36 % 4) + (12 / (3 * 2) is the of the following expression: ) ? a. 8 b. 0 c. 11 d. 2 ANS: D are the variables in the following program segment? Write many candy bars do you want to buy?” “How Input CandyBars Set Price = 2 Set Cost = CandyBars * Price Write need to pay” + Cost “You a. CandyBars is the only variable CandyBars and Cost are the variables b. c. Price and Cost are the variables CandyBars, Price, Cost d. and are the variables ANS: D X = 6 Y = 2, and what is the value of the following expression: 4 + ( 3 ^ Y ) * ( X + 2 ) / Y 59 a. 40 b. c. 52 d. 26 ANS: B 14. Which of the following is not an integer? a. 150 b. 8.0 c. -386,529 d. 0 ANS: B 15. Which of the following is not a legitimate statement? a. Set MyVariable= “X” b. Set MyVariable = 98 c. Set MyVariable = Lizzy d. Set MyVariable = 2 * 64 + 83 ANS: C
is the of the following expression: (36 % 4) + (12 / (3 * 2) ) ? a. 8 b. 0 c. 11 d. 2 ANS: D are the variables in the following program segment? Write “How many candy bars do you want to buy?” Input CandyBars Set Price = 2 Set Cost = CandyBars * Price Write “You need to pay” + Cost a. CandyBars is the only variable b. CandyBars and Cost are the variables c. Price and Cost are the variables d. CandyBars, Price, and Cost are the variables ANS: D X = 6 and Y = 2, what is the value of the following expression: 4 + ( 3 ^ Y ) * ( X + 2 ) / Y a. 59 b. 40 c. 52 d. 26 ANS: B 14. Which of the following is not an integer? a. 150 b. 8.0 c. -386,529 d. 0 ANS: B 15. Which of the following is not a legitimate statement? a. Set MyVariable= “X” b. Set MyVariable = 98 c. Set MyVariable = Lizzy d. Set MyVariable = 2 * 64 + 83 ANS: C
test-bank-prelude-to-programming-6th-edition-venit.docx