Question: Program hw OF15(1).pdf No Yes IF T>25 No Return R 2. A computer structured programming segment contains the following code. What is the value of
OF15(1).pdf No Yes IF T>25 No Return R 2. A computer structured programming segment contains the following code. What is the value of Y after the segment is executed? Y=4 B=4 Y=3*B-2 IF Y B THEN Y = Y + 2 IF Y = B THEN Y = B + 2 (A) 2 (B) 10 (C) 6 (D) 12 4. A computer program contains the following segment. What is the value of I after the segment is executed? I=0 R=1 DO WHILE (R >= 10-6) R=R/100 I-I+1 END DO (A) 1 (B) 2 (C) 3 (D) 4 S. A pomputer program contains the following segment: X=1 Y=3 DO WHILE (R >= 10-6) R=R/100 1=1+1 END DO (A) 1 (B) 2 (C) 3 (D) 4 5. A computer program contains the following segment: X=1 Z=0 FOR K = 1 TO Y X X+1 NEXT K What is the value of Y at the conclusion of this routine? (A) 0 (B) 3 (C) 6 (D) 9 6. How would the following expression be written in a computer code like
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
