Filters
Question type

Study Flashcards

Packaging data attributes and behaviors into a single unit so that implementation details can be hidden describes ____ as it relates to object oriented development.


A) abstraction
B) encapsulation
C) polymorphism
D) inheritance

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

B

Once a DLL is available,any application can add a reference to the DLL.The referenced file with the .dll extension becomes part of the application's private assembly.

A) True
B) False

Correct Answer

verifed

verified

For classes of animal and dog,animal would be considered the derived class.

A) True
B) False

Correct Answer

verifed

verified

The base default constructor is called by ____.


A) adding base( ) : between the constructor heading and the opening curly brace
B) typing base( ) : as the first executable statement in the derived constructor
C) adding className( ) : between the constructor heading and the opening curly brace
D) typing base( ) : as the first executable statement in the Main( ) method

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

Which keyword instructs the compiler to infer the type of the variable from the expression on the right side of the initialization statement?


A) dynamic
B) type
C) infer
D) var

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

Multiple classes can implement the same interface,but a class can implement only one interface.

A) True
B) False

Correct Answer

verifed

verified

Components that can be referenced from any number of applications are created as class library files with a dynamic link library (DLL)extension.

A) True
B) False

Correct Answer

verifed

verified

Today applications are normally designed to be single,self-contained,monolithic programs.

A) True
B) False

Correct Answer

verifed

verified

False

One of the major advantages of strongly typed languages versus dynamic languages is extensive compile type error checking occurs so that bugs can be found early.With dynamic typing this is delayed until ____________.

Correct Answer

verifed

verified

Access to members that have been defined with the public access modifier is restricted to members of the current class.

A) True
B) False

Correct Answer

verifed

verified

If a class implements more than one ____________,they all appear on the class definition line separated by commas.

Correct Answer

verifed

verified

Polymorphic programming is associated with the ____________.You do not have to know how the method goes about doing its work.All you have to know is what arguments to send,if any,and what you expect to be accomplished when the object finishes its work.

Correct Answer

verifed

verified

black box concept

The reserved word base,placed in the constructor heading before the opening curly brace,is used to indicate the base class constructor should be called.

A) True
B) False

Correct Answer

verifed

verified

Both var and ____________ enables developers to not associate a specific data type to the actual data when the memory declaration for the variable is written.

Correct Answer

verifed

verified

In addition to creating the console and Windows applications you've already created,you can create class library files with a dynamic link library (.EXE)extension that can be reused.

A) True
B) False

Correct Answer

verifed

verified

To override a method,the base method may include any of the following keywords,EXCEPT ____.


A) virtual
B) abstract
C) interface
D) override

E) B) and C)
F) B) and D)

Correct Answer

verifed

verified

____ contain no implementation details for any of their methods. Instead all their members are considered abstract.


A) Abstract classes
B) Interfaces
C) Virtual classes
D) Base classes

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

Classes can have a "has a" relationship.This is a concept called ____ or aggregation.


A) "is a"
B) inheritance
C) polymorphism
D) containment

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

Protected access enables derived classes to have access to change data in the base class.

A) True
B) False

Correct Answer

verifed

verified

Variables declared as dynamic ____.


A) require boxing or casting to identify the actual data type
B) can hold any type of value
C) stores data as strings
D) must have an associated data type added as part of the declaration

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

Showing 1 - 20 of 75

Related Exams

Show Answer