Data Structures & Algorithms Multiple Choice Questions on “Cross Product”.
1. Cross product is a mathematical operation performed between ________________ Answer: c 2. Cross product is also known as? Answer: b 3. What is the magnitude of resultant of cross product of two parallel vectors a and b? Answer: c 4. What is the general formula for finding the magnitude of the cross product of two vectors a and b with angle θ between them? Answer: c 5. The concept of cross product is applied in the field of computer graphics. Answer: a 6. Which of the following equals the a x b ( a and b are two vectors)? Answer: d 7. Cross product of two vectors can be used to find? Answer: c 8. The resultant vector from the cross product of two vectors is _____________ Answer: b 9. What will be the cross product of the vectors 2i + 3j + k and 3i + 2j + k? 10. What will be the cross product of the vectors 2i + 3j + k and 6i + 9j + 3k? 11. Find the output of the following code. a) 1 2 5 12. Which of the following operation will give a vector that is perpendicular to both vectors a and b?
a) 2 scalar numbers
b) a scalar and a vector
c) 2 vectors
d) any 2 numbers
Clarification: Cross product is a mathematical operation that is performed on 2 vectors in a 3D plane. It has many applications in computer programming and physics.
a) scalar product
b) vector product
c) dot product
d) multiplication
Clarification: Cross product is also known as a vector product. It is a mathematical operation that is performed on 2 vectors in 3D plane.
a) |a|.|b|
b) |a|.|b| cos(180)
c) |a|.|b| sin(180)
d) 1
Clarification: The resultant of cross product of 2 parallel vectors is always 0 as the angle between them is 0 or 180 degrees. So the answer is |a|.|b| sin(180).
a) |a|.|b|
b) |a|.|b| cos(θ)
c) |a|.|b| sin(θ)
d) |a|.|b| tan(θ)
Clarification: The general formula for finding the magnitude of cross product of two vectors is |a|.|b| sin(θ). Its direction is perpendicular to the plane containing a and b.
a) true
b) false
Clarification: The concept of cross product find its application in the field of computer graphics. It can be used to find the winding of polygon about a point.
a) – (a x b)
b) a.b
c) b x a
d) – (b x a)
Clarification: The vector product a x b is equal to – (b x a). The minus sign shows that these vectors have opposite directions.
a) area of rectangle
b) area of square
c) area of parallelogram
d) perimeter of rectangle
Clarification: Cross product of two vectors can be used to find the area of parallelogram. For this, we need to consider the vectors as the adjacent sides of the parallelogram.
a) perpendicular to any one of the two vectors involved in cross product
b) perpendicular to the plane containing both vectors
c) parallel to to any one of the two vectors involved in cross product
d) parallel to the plane containing both vectors
Clarification: The resultant vector from the cross product of two vectors is perpendicular to the plane containing both vectors. In other words, it should be perpendicular to both the vectors involved in the cross product.
a) i + 2j + k
b) 2i + 3j + k
c) i + j – 5k
d) 2i – j – 5k
Clarification: We can find the cross product of the given vectors by solving the determinant.
a) i + 2j + k
b) i – j – 5k
c) 0
d) 2i – j – 5k
Answer: c
Clarification: The given vectors are parallel to each other. The cross product of parallel vectors is 0 because sin(0) is 0.#include
b) -1 -5 -3
c) -6 -8 -1
d) -8 -6 -1
Answer: d
Clarification: The given code calculates the cross product of the vectors stored in arrays A and B respectively. So the output will be -8 -6 -1.
a) a x b
b) a.b
c) b x a
d) both a x b and b x a
Answer: d
Clarification: The resultant vector from the cross product of two vectors is perpendicular to the plane containing both vectors. So both a x b and b x a will give a vector that is perpendicular to both vectors a and b.