Exam 1: A First Program Using C#

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Explain the main characteristics of inheritance.

Free
(Essay)
4.9/5
(36)
Correct Answer:
Verified

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?

Free
(Essay)
4.7/5
(32)
Correct Answer:
Verified

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?

Free
(Multiple Choice)
4.9/5
(44)
Correct Answer:
Verified

D

What are the requirements when choosing an identifier for a C# class?

(Essay)
4.8/5
(40)

What is an object in relation to a defined class in a programming language?

(Multiple Choice)
4.8/5
(35)

When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.

(True/False)
5.0/5
(36)

What programming style capitalizes the first letter of all new words in an identifier, including the first one?

(Multiple Choice)
4.8/5
(42)

Programmers make use of what type of program in order to translate higher-level language statements into machine code?

(Multiple Choice)
4.7/5
(32)

What are the types of comments supported by C#?

(Essay)
4.8/5
(42)

What is of the following NOT a keyword by the C# language?

(Multiple Choice)
4.8/5
(36)

What command can be used from the Developer Command Prompt in order to compile a C# program?

(Multiple Choice)
4.9/5
(37)

Encapsulation is similar to using a device without regard for the internal mechanisms.What is the common term for this type of device?

(Multiple Choice)
4.9/5
(39)

Where can a method's name and information about what will be passed into the method and returned from it be found?

(Multiple Choice)
4.9/5
(40)

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?

(Multiple Choice)
4.8/5
(38)

The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.

(True/False)
4.9/5
(39)

What must be done once a C# program has been finished before it can be used?

(Multiple Choice)
4.8/5
(45)

What are the components of a C# method?

(Essay)
4.9/5
(41)

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?

(Multiple Choice)
4.8/5
(35)

What is the meaning of the keyword static in C# in a method header?

(Essay)
4.9/5
(40)

When writing C# code, how do you indicate a namespace?

(Multiple Choice)
4.9/5
(32)
Showing 1 - 20 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)