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

Question 1 (1 point) Packaging data attributed and behaviors into a single unit

ID: 3694456 • Letter: Q

Question


Question 1 (1 point)

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

Question 1 options:

Encapsulation

Polymorphism

Objects

Abstraction

Inheritance

Save

Question 2 (1 point)

To be considered a true object-oriented programming (OOP) language, the language must support:

Question 2 options:

All of the above

Inheritance

Encapsulation

Abstraction

Polymorphism

Save

Question 3 (1 point)

The "is a" relationship is associated with:

Question 3 options:

Polymorphism

Encapsulation

Inheritance

All of the above

Interfaces

Save

Question 4 (1 point)

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

Question 4 options:

Base

Class

Value

Object

Super

Save

Question 5 (1 point)

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

public class aClass : bClass, IClass

Question 5 options:

IClass is an interface

aClass is the derived class

bClass is the base class

All of the above

None of the above

Save

Question 6 (1 point)

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

Question 6 options:

public, public, public

public, private, public

private, public, public

private, private, private

public, public, private

Save

Question 7 (1 point)

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

Question 7 options:

override

static

public

virtual

none of the above

Save

Question 8 (1 point)

A class from which an object cannot be instantiated is a(n):

Question 8 options:

implemented class

abstract class

base class

derived class

virtual class

Save

Question 9 (1 point)

Which class allows you to use the Read() and ReadLine() methods to retrieve data from a text file?

Question 9 options:

TextReader

FileReader

BinaryReader

StreamReader

File

Save

Question 10 (1 point)

When you are finished processing a text file, you should:

Question 10 options:

Call the Finished() method

Call the Close() method

Throw an exception

Erase the file

Reset the file

A)

Encapsulation

B)

Polymorphism

C)

Objects

D)

Abstraction

E)

Inheritance

Explanation / Answer

Q1) option (A) encapsulation

Q2)option (A) all of the above

Q3)option(C) Inheritance

Q4) option(D) object

Q5) option(D) all of the above

Q6)option(B) public,private,public

Q7) option(D) virtual

Q8) option(B) abstract class

Q9) option(D)StreamReader class

Q10) option(B) call the close() method