1) Which symbol would be used in a flowchart for the following statement? Display sum a) Parallelogram b) Diamond c) Rectangle d) Rounded rectangle 2) Assume that the variables num and rate are integer variables and dept is a string variable. Which of the following assignment statements is invalid? a) num = 23 b) dept = 100 c) num = rate d) None of the above 3) Which is the final value of y at the of these statements? x = 10 y = x - 1 y = y + x a) y = 8 b) y = 5 c) y = 11 d) y = 19 4) Which is a valid assignment statement for the following: Add 2 to x and store the result in z a) 2 + x = z b) z = x c) z = x + 2 d) z + 2 = x 5) Evaluate the following expression. 100 MOD 5 a) 0 b) 5 c) 100 d) 20 Evaluate the following expression using the values x = 10, y = 5, and z = 3. z + x / y - 1 a) 0 b) 5.5 c) 1.6 d) 4 List the inputs and outputs and write the psuedocode to solve the following problem: The program will prompt the user for a sales amount and a discount percentage (input 10 for 10%). The program will calculate and display the amount of the sale after the discount is applied.
Get Free Quote!
447 Experts Online