DEVRY CIS115 WEEK 2 QUIZ

(TCOs 2 and 3) Which symbol would be used in a flowchart for the following statement?
Read score
Parallelogram
Diamond
Rectangle
Rounded rectangle
Comments:
Question 2. Question :
(TCOs 2, 3, and 8) Assume that the variables num and rate are integer variables, and dept
is a string variable. Which of the following assignment statements is invalid?
num = 23
num = rate
num = dept
None of the above
Comments:
Question 3. Question :
(TCOs 2, 3, and 8) Which is the final value of y at the of these statements?
x= 5
y= 2 * x
y=
y + 1
y = 8
y = 5
y = 11
y = 2
Comments:
Question 4. Question :
(TCOs 2 and 8) Which is a valid assignment statement for the following: Add 2 to x and store the result in z.
2 + x = z
z = x
z = x + 2
z + 2 = x
Comments:
Question 5. Question :
(TCOs 3 and 8) Evaluate the following expression using the values x = 10, y = 5, and z = 3.
x + y * z - 1
$ 44
24
5
20
Comments:
Question 6. Question :
(TCOs 2, 3, and 8) List the inputs and outputs and write the psuedocode to solve the following problem (8 points): The program will prompt the user for miles driven and the gallons of gas used. The program will calculate and display the gas mileage of the car.
Comments:

-
Rating:
5/
Solution: DEVRY CIS115 WEEK 2 QUIZ