EE 350 Fall 2017 NON-TEXT HW PROBLEMS PS11.3 CONTUNUED... d. Given the following
ID: 2265808 • Letter: E
Question
EE 350 Fall 2017 NON-TEXT HW PROBLEMS PS11.3 CONTUNUED... d. Given the following script function [y,z] = Fina!Exam (x) y =1 ; if x--y Y-100; else z-100; end end d.1 If w-FinalExam (100)100, what is w? A. w-true | B: w=10 | C: w-100 | D: w=false | E: None of the others d.2 If [u, v]-FinalExam (0), which of the following is true? A: v>=u; | B: v0 | E: None of the others e. Given the Vector Z= [ 10 2 34 5 6 7 ] , which of the answers below will yield 34? A: Z[1]; B: 2 [2] C: Z[3] D: Z[4] E: None of the others f. Given the following script, what value will x be, when the loop finishes?: for n=1 : 10 x-n-1; end A: 1 B: 4; C: 9; D: 10E: None of the others g. Given the following script, if x--5 what does y equal? if (x 1) y=x ; y-24; y=x* 2 ; else if (x>1) else end A: 1 B: 10; C:-10;D: 12 E: None of the othersExplanation / Answer
Here, d1 : Ans is (B) w = 10
d2 : Ans is (C) u=v=0
e : Ans is (B) Z[2] = 34
f : Ans is (B) 4
g : Ans is (E)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.