Question: C++ PLEASE ID: Comp 345- Fall 2017 Question 1 What is stored in a variable instantiated as int** arr. a) A multidimensional dynamically allocated array.

C++ PLEASE

C++ PLEASE ID: Comp 345- Fall 2017 Question 1 What is stored

ID: Comp 345- Fall 2017 Question 1 What is stored in a variable instantiated as int** arr. a) A multidimensional dynamically allocated array. b) A pointer to an integer. c) A pointer to a pointer to an integer. d) None of the above. Question 2 Let's say you have a local class inside of a function. Which of these statements is true? (Select as many that apply) a) The local class can access the global variables using the scope resolution operator b) All the variables inside the same function can be accessed by the local class. c) The local class can have static member variables of its own d) Local class is another name for inner classes. Question 3 True or false? Friend functions can access private members of the friend class but not protected members because of C backward compatibility limitation. a) True. b) False. sidering this function declaration: void foo(Animal &x). Which is the right way to pass the a) Animal a - new AnimalO: Question 4 Considering this finction declaration: void foo(Animal &x). Which is the right way to pass the variable when call the function. foo(a); b) Animal *a= new Animal(); foo(*a); c) Animal a; foo(a); d) Animal a foo(&a); Question 5 When creating a vector x of objects. Calling this line : &vector[ 1]; will return which result? a) The address of where the whole vector is stored. b) The object contained in the second cell of the vector. c) The address of the object inside of the second cell. d) The address of the second cell that holds the object

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!