Exam 1: A First Program Using C#
Explain the main characteristics of inheritance.
Inheritance provides the ability to extend a class so as to create a more specific class.The more specific class contains all the attributes and methods of the more general class, and usually contains new attributes or methods as well.For example, if you have created a Dog class, you might then create a more specific class named ShowDog.Each instance of the ShowDog class would contain all the attributes and methods of a Dog, along with additional methods or attributes.
What are the attributes and state of an object?
Object-oriented programming (OOP) is an extension of procedural programming.OOP uses variables and methods like procedural programs do, but it focuses on objects.An object is a concrete entity that has attributes and behaviors.The attributes of an object are the features it "has"; the values of an object's attributes constitute the state of the object.For example, attributes of a paycheck include its payee and monetary value, and the state of those attributes might be "Alice Nelson" and $400.
A program's execution of various statements and procedures in a correct order to produce desired results is referred to as what defining characteristic?
D
What is an object in relation to a defined class in a programming language?
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
What programming style capitalizes the first letter of all new words in an identifier, including the first one?
Programmers make use of what type of program in order to translate higher-level language statements into machine code?
What command can be used from the Developer Command Prompt in order to compile a C# program?
Encapsulation is similar to using a device without regard for the internal mechanisms.What is the common term for this type of device?
Where can a method's name and information about what will be passed into the method and returned from it be found?
A series of four or five comparisons and calculations that together determine an employee's withholding tax value might be grouped using what sort of logical unit?
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
What must be done once a C# program has been finished before it can be used?
What is the process of removing all syntax and logical errors from a program in order to create a working program that accomplishes all intended tasks known as?
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)