PROGRAMMING NBCC
GUIDE QUESTIONS AND
ANSWERS GRADED A
+2026-2027
In a three-layer application, the three layers are - ANS-the presentation layer, the
middle layer, and the database layer
When you design and develop business classes for an application, your goal is to -
ANS-allow development to be spread among members of a development team
separate the business rules from the presentation and database logic
make the application easier to develop and maintain
(all of the above)
A class defines the properties and methods of - ANS-an object
The process of creating an object from a class is known as - ANS-instantiation
What feature are you taking advantage of when you call the ToDecimal method of the
Convert class without knowing how it's coded? - ANS-encapsulation
, The fields of a class - ANS-are the variables that are defined at the class level
Two objects created from the same class can have different - ANS-data
A class file that you add to a project has the extension - ANS-cs
To return the value of an instance variable named v from a get accessor, you code -
ANS-return v;
Which of the variables declared in the following class is an instance variable?
public class Customer
{
public string firstName;
private static int count;
public string GetDisplayText()
{
string displayText = firstName + count;
return displayText;
}
} - ANS-firstName
A read-only property consists of just - ANS-a get accessor
To begin the declaration for a property, you code the public keyword followed by -
ANS-the data type and the name of the property
You can use an auto-implemented property when - ANS-you want the get and set
accessors to simply return and set the value of an instance variable