Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Flag this Question Question 40 1 pts What statement regarding the use of the Object class and classes in general is accurate? When you create

Flag this Question

Question 40 1 pts

What statement regarding the use of the Object class and classes in general is accurate?

When you create any child class, no inheritance occurs automatically.
All classes inherit the Object class methods.
The object class contains a constructor, destructor, and two public instance methods.
Although every class descends from Object, not all objects are Objects.

Flag this Question

Question 41 1.5 pts

The terms directory and folder are used synonymously to refer to an entity that is used to organize files.

True
False

Flag this Question

Question 42 1.5 pts

The File class is contained in the System.IOFile namespace.

True
False

Flag this Question

Question 43 1.5 pts

When you write a C# program that stores a value in a variable, you are using temporary storage; the value you store is lost when the program ends or the computer loses power. What is the name for this kind of storage?

volatile
nonvolatile
permanent
hard

Flag this Question

Question 44 1.5 pts

Permanent storage that does not lose contents when a computer loses power is known as what type of storage?

volatile
temporal
nonvolatile
soft storage

Flag this Question

Question 45 1.5 pts

Files exist on devices such as hard disks, USB drives, reels of magnetic tape, and optical discs. What are these files considered to be?

temporary files
volatile files
soft files
permanent files

Flag this Question

Question 46 1.5 pts

When you store data in a computer file on a persistent storage device, what are you doing?

You are reading from the file.
You are using an input stream.
You are writing to the file.
You are flashing the data to memory.

Flag this Question

Question 47 1.5 pts

When you copy data from a file on a storage device into RAM, what are you doing?

You are writing to the file.
You are reading from the file.
You are copying to the file.
You are flashing the data to memory.

Flag this Question

Question 48 1.5 pts

What class contains methods that allow you to access information about files?

Cabinet
File
Directory
Folder

Flag this Question

Question 49 1.5 pts

What class can be used to provide information on directories or folders?

Directory
File
Cabinet
Folder

Flag this Question

Question 50 1.5 pts

What is a collection of fields that contain data about an entity?

a file
a character
a record
a bit

Flag this Question

Question 51 1.5 pts

A data file is what type of file when each record is read in order of its position in the file?

sequential access file
random access file
dynamic read file
temporary buffer file

Flag this Question

Question 52 1.5 pts

You are designing an application to support an automobile rental agency. Which of the following probably should NOT be represented as an object?

Auto.
Customer.
Payment amount.
Rental contract.

Flag this Question

Question 53 1.5 pts

After you have identified a set of classes needed for a program, you should now ____.

Define the behavior of each class.
Look for nouns that describe the tasks.
Begin writing the code for the classes.
Establish the relationships between the classes.

Flag this Question

Question 54 1.5 pts

A/an ____ represents a set of objects with the same behavior.

Association
Aggregation
Dependency
Class

Flag this Question

Question 55 1.5 pts

Classes correspond to ____ in a requirements description.

Verbs
Nouns
Dependencies
Relationships

Flag this Question

Question 56 1.5 pts

When designing classes, if you find classes with common behavior you should ____.

Combine them all into a single class.
Place the common behavior into a superclass.
Place the common behavior into a subclass.
Give them similar names.

Flag this Question

Question 57 1.5 pts

____ is often described as the is-a relationship.

Inheritance.
Aggregation.
Polymorphism.
Dependency.

Flag this Question

Question 58 1.5 pts

In general, you need ____ when an object needs to remember another object between method calls.

inheritance
aggregation
dependency
an interface implementation

Flag this Question

Question 59 1.5 pts

Aggregation denotes that ____.

Objects of one class inherit from objects of its superclass.
Objects of one class can be inherited by its subclasses.
Objects of one class contain references to objects of its superclass.
Objects of one class contain references to objects of another class.

Flag this Question

Question 60 1.5 pts

In a UML diagram, aggregation is denoted by ____.

A solid line with a diamond-shaped symbol next to the aggregating class.
An arrow with an open triangle pointing to the aggregating class.
A dotted line with a diamond-shaped symbol next to the aggregating class.
A dotted line with an open arrow tip pointing to the aggregating class.

Flag this Question

Question 61 1.5 pts

In a UML diagram, inheritance is denoted by ____.

A solid line with a diamond-shaped symbol next to the superclass.
A solid line with a closed arrow tip pointing to the superclass.
A dotted line with an open arrow tip pointing to the superclass.
A solid line with an open arrow tip pointing to the superclass.

Flag this Question

Question 62 1.5 pts

In a UML diagram, an interface implementation is denoted by ____.

A dotted line with a closed arrow tip.
A solid line with a closed arrow tip.
A dotted line with an open arrow tip.
A solid line with an open arrow tip.

Flag this Question

Question 63 1.5 pts

You are designing a software solution for an automobile rental company. A customer may rent only a single auto at a given time. You have decided that the following classes are needed: Auto, Customer, Address, Rental Contract. Which of these should be represented as aggregation?

Rental Contract class aggregates Address class
Rental Contract class aggregates Customer and Address classes.
Rental Contract class aggregates Customer, Address, and Auto classes.
Rental Contract class does not aggregate any of the other classes.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

Show the properties and structure of allotropes of carbon.

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago