Thus both processes are blocked forever the producer


Question 1. Which symbol would be used in a flowchart for the following statement?
Read customerName  Parallelogram
Diamond
Rectangle
Rounded rectangle

Question 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?  num = 23
dept = 100
num = rate
None of the above

Question 3.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

Question 4. Write a valid assignment statement for the following: Add x and
y and store the result in sum.  sum = x * y
sum = x + y
x * y = sum
x + y = sum

Question 5.Evaluate the following expression.
20 MOD 2  0
5
10
20
Question 6. Evaluate the following expression using the values x = 10, y = 5, and z = 3.
x MOD y + z  2
3
5
20
Question 7. List the inputs and outputs and write the psuedocode to solve the following problem (8 points): The program will prompt the user for three scores that represent judgesAc€?c scores for a gymnastics meet. The program will calculate and display the average score.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Thus both processes are blocked forever the producer
Reference No:- TGS01528795

Expected delivery within 24 Hours