Typing 2*(5-3)/2+6 will give the answer (a)6 (b) 7 (c) 8 (d) 9 (e) 2 Matlab code
ID: 3922619 • Letter: T
Question
Typing 2*(5-3)/2+6 will give the answer (a)6 (b) 7 (c) 8 (d) 9 (e) 2 Matlab code 9 9 will generate (a) 0 (b) 1 (c) -1 (d)NaN (e) error The answer of code a = [1 1 0 1]; b = [2 0 0 3]; a + b is (a) [2 3 0 3] (b) [3 1 0 4] (c) [2 0 3 3] (d) [2 0 0 3] (e) error Typing 2*2^3 will give the answer: (a) 2 (b) 4 (c) 8 (d) 16 (e) 64 Which one of the following codes can produce the vector [2 4 6]? (a) linspace (2, 6, 3) (b) linspaces (2, 4, 6) (c) linspace (2, 3, 4) (d) linspace (4, 3, 2) (e) linspace (2, 4, 3) Which one of the following codes can produce [1 4 2 5 3 6]? (a) [1, 2, 3;4, 5, 6] (b) [1;2;3;4;5;6] (c) [1 2 3;4 5 6] ()d) [1, 4;2, 5;3, 6] (e) [1.0, 2.0, 3.0;4.0, 5.0, 6.0]Explanation / Answer
7.ans =option c
sol:5-3=2;
2/2=1;
1*2=2;
2+6=8;
8 ans )error
9 ans)1+2=3;
0+0=0;
1+2=3;
1+3=4;
option :b;
10 ans)2*2^3=2*8=16;
option:d;
12 ans)[1,4;2,5;3,6]
option d
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.