FillintheBlanks 1 In C the data structures and can vary in

Fill-in-the-Blanks

1.     In C++, the data structures ______________ and ______________ can vary in size, shrinking and growing as needed.

2.     If a class is named MyClass, the destructor must be named _________________________.

With ____________________, indices always start at 0.

The ability to reuse objects already defined, perhaps for a different purpose, with modification appropriate to the new purpose, is referred to as ___________________.

I have a pointer, nodePtr to a node that is a struct in a linked list. I want to access the member named data. I do this using the expression _________________________.

There is no access to __________________ members of a class by any function defined outside the class.

7.     The ________________ member function returns the number of elements inserted in the vector.

8.     If you do not properly deallocate dynamically allocated variables you can get a (2 words) ______________   ________________.

___________________ an operator cannot change the precedence of that operator with respect to other operators.

A ____________ is a variable that holds the address of some other location in memory

Solution

1.

In C++, the data structures new and delete can vary in size, shrinking and growing as needed.

7.

std::vector::size member function returns the number of elements inserted in the vector.

2.

The destructor must be named

array indices always start at 0.

The ability to reuse the objects already defined, perhaps for a different purpose, with modification appropriate to the new purpose, is referred to as overloading.

There is no access to private members of a class by any function defined outside the class.

I have a pointer, nodePtr to a node that is a struct in a linked list. I want to access the member named data. I do this using the expression nodePtr->data

8.

Overloading an operator cannot change its precedence

A pointer is a variable that holds the address of some other location in memory.

Fill-in-the-Blanks 1. In C++, the data structures ______________ and ______________ can vary in size, shrinking and growing as needed. 2. If a class is named My

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site