CS502 Quiz-3 by Vu Topper RM-1
CS502 Quiz-3 by Vu Topper RM-1
Of Algorithms
Update MCQ’S Quiz-3 File
@vutopperrm Vu Topper RM
d
cc
Page 85
You are given a knapsack that can carry a maximum weight of 60. There
are 4 items with weights {20, 30, 40, 70} and values {90, 80, 100, 250}.
What is the maximum value of the items you can carry using the
knapsack?
A. 270
B. 190
C. 520
D. 170
If a matrix has three rows and two columns, then dimensions of matrix
will be:
A. 3×2
B. 2×3
C. 3×3
D. 2×2
We can multiply two matrices A and B only when they are compatible
which means:
A. Number of rows and columns do not matter
B. Number of rows in A must be equal to number of rows in B
C. Number of columns in A must be equal to number of rows in B
Page 84
D. Number of columns in A must be equal to number of columns in B