Bb Take Home Quiz 2-2016 X https://bbhosted cuny edu view&content; id _26772 c a
ID: 3931628 • Letter: B
Question
Bb Take Home Quiz 2-2016 X https://bbhosted cuny edu view&content; id _26772 c a search /webapps/blackboard/execute/content/file?cmd Content 5. Which of the following shows the correct way to define the overloaded constructor on line 05 Discussions using the initialization list Groups a) B(int x, int y) x(x), y(y) b) B (int x,int y) this->x(x), this- y (y) Tools Help 6. Which of the following shows the corrcct way to define the default constructor with the values 2 and 3 for x and y respectively by calling the overloaded constructor. a) BC) {B(2,3) b) BC) B (2,3) c) BC) this (2,3) d) BC) tthis (2,3) 7. Which catch statement catches all exceptions and re-throws them. a) catch {throw;} b) catch() {rethrow: c) catch re d) catch throw; throw 8. 01 class C t 02 static int x 03 public: 04 CO 05 Which of the following is the correct way to assign 3 to the static field. b) CC) (3) c) CO 3; d) static int C: :x- 3; Ask me anything Blod. 11:31 PM A 4) 0/29/2016Explanation / Answer
Question 5:
Answer: d) B(int x, int y){this->x =x ; this->y =y;}
Question 6:
Answer: d) B(){this(2,3);};
Question 7:
Answer:d) catch(...){throw;}
Question 8:
Answer: c) C(){x=3;}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.