1
4/5/2004 ENGR 111A - Spring 2004 1 RAT 11.1 As in INDIVIDUAL you have 2 minutes to answer the following question. What is the FINAL value assigned to y in the following segment of MATLAB code? x = 0; while x < 5 y = sqrt(x); x = x + 1; end When asked, you have 30-seconds to submit your paper. Answer: y = 2

RAT 11.1

Embed Size (px)

DESCRIPTION

RAT 11.1. As in INDIVIDUAL you have 2 minutes to answer the following question. What is the FINAL value assigned to y in the following segment of MATLAB code? x = 0; while x < 5 y = sqrt(x); x = x + 1; end When asked, you have 30-seconds to submit your paper. - PowerPoint PPT Presentation

Citation preview

Page 1: RAT 11.1

4/5/2004 ENGR 111A - Spring 2004 1

RAT 11.1 As in INDIVIDUAL you have 2 minutes to

answer the following question. What is the FINAL value assigned to y in

the following segment of MATLAB code?x = 0;while x < 5 y = sqrt(x); x = x + 1;

end When asked, you have 30-seconds to

submit your paper. Answer: y = 2