C Plus Plus Miscellaneous - Study Mode

[#551] Which function is used to calculate the norm of a complex number?
Correct Answer

(B) norm()

[#552] What is the syntax of printing the first element of an array Arr using get() function?
Correct Answer

(B) get<0>(Arr)

[#553] Which of the following is correct about map and multimap?
Correct Answer

(C) Multimap can have same keys whereas the map cannot

[#554] Pick the incorrect statement.
Correct Answer

(C) Insertion in vectors always takes constant time

[#555] What is meant by heap?
Correct Answer

(C) Used for fast retrieval & organising the elements