Quiz_3.pdf
Quiz_3.pdf
Attempt 1 of 2
Question 1
Question 2
mVal = 2;
nVal = 6;
if
elseif
else
Question 3
3 4 5 5 8 9
If S = [ ] and T = [ ]; then perform the following operations
9 16 25 4 16 25
and find out which of the given options has correct results.
i. S ~=T
ii. S < T
1 1 0 1 1 1
i) [ ] & ii) [ ]
1 0 1 1 0 1
1 1 1 1 0 1
i) [ ] & ii) [ ]
1 0 1 1 0 1
1 1 1 1 1 1
i) [ ] & ii) [ ]
1 0 0 0 1 0
1 1 0 1 1 1
i) [ ] & ii) [ ]
1 1 1 1 0 1
None of the above
Question 4
The function
-2.4348
2.7376
-2.7376
Question 5
Given:
A =[5,6,7;8,9,10;11,12,13];
B=[1,0,0;1,9,2;0,-2,3];
Write a statement that XORs A and B, save the result in a matrix C, then multiple A and C, and save the
multiplication result in matrix D, finally calculate the min of the matrix D.
100
0 -2 3
755
Question 6
count = 0
sum = 0
count = count + 2
end
Which of the following statements you will place inside the while loop to make the code produce a sum of
1056?
sum = count
https://www.coursehero.com/file/228078672/Quiz-3pdf/
Done