Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 objectStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started