Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

To be considered a true object-oriented language, designers of the language must

ID: 3768434 • Letter: T

Question

To be considered a true object-oriented language, designers of the language must provide support for:

Select one:

a. properties

b. inheritance

c. objects

d. IDEs

e. command line tools

Question 2

   

To enable derived classes to override methods defined in a base class, methods of the base class should be defined using a(an) ____ keyword.

Select one:

a. virtual

b. override

c. static

d. public

e. none of the above

Question 3

   

In .NET, applications are deployed in terms of:

Select one:

a. solutions

b. .exe s

c. applications

d. .dll s

e. assemblies

Question 4

   

The one constraint for having a solution include code from more than one programming language is the requirement that:

Select one:

a. Each project must consist of code in one language only.

b. Each project must reference all the other projects.

c. A using directive must be placed in the source code files for each project

d. The solution can have no more than 10 projects.

e. Both B and C are correct.

Question 5

   

To avoid having to use fully qualified referenced classes, you could:

Select one:

a. Add a using directive.

b. Inherit from the class.

c. Add an import statement for the class.

d. Package the classes in the same solution.

e. Add a reference to the class.

Question 6

   

A class from which an object cannot be instantiated could be a:

Select one:

a. abstract class

b. base class

c. virtual class

d. implemented class

e. derived class

Question 7

   

Classes can extend or derive from ________ class(es) and implement ______ interface(s).

Select one:

a. many, many

b. one, twelve

c. many, one

d. one, many

e. one, one

Question 8

   

Abstract classes can include:

Select one:

a. data members

b. abstract methods

c. nonabstract methods

d. properties

e. all of the above

Question 9

   

Interfaces can include:

Select one:

a. data members

b. abstract methods

c. nonabstract methods

d. properties

e. all of the above

Question 10

   

_____ allows a method of a class to be called without regard to what specific implementation it provides.

Select one:

a. Class llibraries

b. Abstraction

c. Versioning

d. Assemblies

e. Polymorphism

Question 11

   

The feature that enables you to split source code between two or more files is:

Select one:

a. base class

b. partial classes

c. generics

d. dynamic link library

e. package

Question 12

   

Packaging data attributes and behaviors into a single unit so that the implementation details can be hidden describes an object-oriented feature called:

Select one:

a. abstraction

b. objects

c. inheritance

d. polymorphism

e. encapsulation

Question 13

   

A multitier application would probably have:

Select one:

a. a class defined to interact with the user

b. one or more classes defined to handle the business logic

c. a class defined to deal with the data

d. a client class

e. all of the above

Question 14

   

Polymorphism is useful in languages because it facilitates methods.

Select one:

a. overstriking

b. overriding

c. overloading

d. inheriting

e. interfacing

Question 15

   

Components are normally compiled and stored with a file extension of

Select one:

a. ,sno

b. .dll

c. .csc

d. .proj

e. .exe

Question 16

   

The "is a" relationship is associated with:

Select one:

a. encapsulation

b. inheritance

c. interfaces

d. polymorphism

e. information hiding

Question 17

   

In C#, the super class, or base class of all others, is:

Select one:

a. base

b. class

c. object

d. value

e. super

Question 18

   

Using the following declaration, which of the following statements is true?

public aClass : bClass, IClass

Select one:

a. IClass is an interface.

b. aClass is the derived class.

c. bClass is the base class.

d. all of the above

e. none of the above

Question 19

   

If you want to keep classes that instantiate objects of a class from changing their data members, but enable derived classes to change base class data members, the data members in the base class should be defined with a _______ access modifier

Select one:

a. protected

b. internal

c. private

d. static

e. public

Question 20

   

Constructors are normally defined with a ____ access modifier; data members with a _____ access modifier; and properties with a _____ access modifier.

Select one:

a. private, private, private

b. public, public, private

c. private, public, public

d. public, public, public

e. public, private, public

Explanation / Answer

1. b - inheritance
2. a - Virtualkeyword
3. b. exes - executables or setup files.
4. b. Each Project must reference all the other projects
5. a. Add a using directive
6. a. abstract class
7. d. one, many
8. e. all of the above
9. e. all of the above
10. e. Polymorphism

Please post a seperate question for the rest.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote