UPDATED ACTUAL Exam Questions and
CORRECT Answers
To use custom data types, you need to define a ________________ - CORRECT
ANSWER - class
An object is called an ____________ of a class - CORRECT ANSWER - instance
Creating an object is called ___________ - CORRECT ANSWER - instantiation
The characteristics of an object are called _____________ - CORRECT ANSWER -
properties
c# has two ways of storing data, by ____________ ______ ___________ - CORRECT
ANSWER - reference and value
The area in memory that stores the contents of a value type is called the _____________ -
CORRECT ANSWER - stack
Reference types are stored in the part of memory called the _____________ - CORRECT
ANSWER - heap
a ____________ _____________ contains a memory address to the actual object on the heap -
CORRECT ANSWER - reference type
______________ is used for static memory allocation, which includes all your value types, like x
- CORRECT ANSWER - stack
, _______________ is used for dynamic memory allocation, which includes custom objects, that
might need additional memory during the runtime of your program - CORRECT
ANSWER - heap
_____________ ____________ are keywords used to specify the accessibility of a member -
CORRECT ANSWER - access modifiers
If no access modifier is defined, the member is _____________ by default - CORRECT
ANSWER - private
A member that has been defined _______________ can be accessed from outside the class, as
long as it's anywhere within the scope of the class object. - CORRECT ANSWER - public
the ________ operator instantiates an object and returns a reference to its location - CORRECT
ANSWER - new
The ________ ___________ is used to access and call the method of the object - CORRECT
ANSWER - dot operator
______________ is also called information hiding - CORRECT ANSWER - encapsulation
Encapsulation is implemented using ________________ _________________ - CORRECT
ANSWER - access modifiers
___________________ allows you to hide details of a class realization - CORRECT
ANSWER - encapsulation
The _________ access modifier makes members accessible only from within the class and hides
them from the outside - CORRECT ANSWER - private