C++ Multiple Choice question please help Which kind of functions can access priv
ID: 3829055 • Letter: C
Question
C++ Multiple Choice question please help
Which kind of functions can access private member variables of a class? A. Friend functions of the class B. Private member functions of the class C. Public member functions of the class D. All of the above What is the worst case time complexity for search, insert, and delete operations in a general Binary Search Tree? A. O(Log n) for all B. O(n) for all C. O(Log n) for search and insert, and O(n) for delete D. O(Log n) for search, and O(n) for insert and delete E. None of the above In the worst case scenario, which data structure performs the best when looking for an item? A. Ordered list B. Queue C. Stack D. Balanced BST E. All of the above data structures perform the same. Which of the following does an object-oriented approach to problem solving make use of? A. Polymorphism B. Polynomials C. Inheritance D. Compiling E. Encapsulation F. (A), (C) and (E) above. Which of the following traversal outputs the data in sorted order in a BST? A. Levelorder B. Postorder C. Inorder D. PreorderExplanation / Answer
Ans6) A is the correct option.
Ans7) B is the correct option.
Ans8) A is the correct option.
Ans9) F is the correct option.
Ans10) C is the correct option.
Thanks :)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.