Members can only be used by its own methods and friends

Assignment Help Basic Computer Science
Reference no: EM13915271

Multiple choices needs the answer for this assignment

1. A class's ______ members can only be used by its own methods and friends.

a.  public

b.  protected

c.  private

d.  final

 

2.A derived class in C++ can have more than one base class.

a.  True

b.  False

 

3.  The specifications of an ADT's operations indicate ______.

a.  what the operations do

b.  how to implement the operations

c.  how to store the data in the ADT

d.  how to carry out the operations

 

4. A(n) ______ allows two modules to communicate with each other.

a.  data structure

b.  axiom

c.  interface

d.  client

 

5. In the following list: John, Kate, Fred, Mark, Jon, Adam, Drew which element is the tail of the list?

a.  John

b.  Mark

c.  Drew

d.  Adam

 

6. Which element is the head of the following list: John, Kate, Fred, Mark, Jon, Adam, Drew?

a.  John

b.  Mark

c.  Drew

d.  Adam

 

7.  Data structures are part of an ADT's ______.

a.  definition

b.  implementation

c.  specifications

d.  usage

 

8.   The insertion operation of the ADT list can insert new items ______.

a.  only at the front of the list

b.  only at the end of the list

c.  only in the middle of the list

d.  into any position of the list

 

9.In the ADT list, when an item is deleted from position i of the list, ______.

a.  the position of all items is decreased by 1

b. the position of each item that was at a position smaller than i is decreased by 1

c. the position of each item that was at a position greater than i is decreased by 1

d. the position of each item that was at a position smaller than i is increased by 1 while the position of each item that was at a position greater than i is decreased by 1

 

10.  Which of the following class declarations indicates that Ball is a derived class of Sphere?

a.  class Sphere: public Ball

b.  class Ball: public Sphere

c.  class Ball::Sphere

d.  class Ball(Sphere)

 

11.  In ______ inheritance, public and protected members of the base class are private members of the derived class.

a.  private

b.  public

c.  conditional

d.  protected

 

12.   ______ is the ability of a class to derive properties from a previously defined class.

a.  Encapsulation

b.  Simulation

c.  Inheritance

d.  Polymorphism

 

13.  hich of the following declares a list of characters using a class template?

a. char <List> charList;

b. List <char> charList;

c. List <T> charList;

d. List(char) <T> charList;

 

 

14. The items in the ADT list are referenced by ______.

a.  name

b.  value

c.  position number

d.  position name

 

15.In the following list: John, Kate, Fred, Mark, Jon, Adam, Drew which element does not have a predecessor?

a.  John

b.  Mark

c.  Drew

d.  Kate

 

16.  A ______ method is one that a derived class can override.

a.  final

b.  base

c.  static

d.  virtual

 

17.  An abstract base class cannot have ______.

a.  descendants

b.  instances

c.  data members

d.  virtual methods

 

18.The class from which another class is derived is known as the ______.

a.  base class

b.  subclass

c.  child class

d.  derived class

 

19. Which of the following is a common iterator operation that moves an iterator to the next item in the list?

a.  ++

b.  --

c.  *

d.  +

 

20.  An ADT's ______ govern(s) what its operations are and what they do.

a.  specifications

b.  implementation

c.  documentation

d.  data structure

Reference no: EM13915271

Questions Cloud

What can we do to build good credit scores : What can we do to build good credit scores? In the long term and in the very short term? What does not work? What happens when one can’t pay one’s debt? What are the basics of bankruptcy proceedings?
Abstract and introduction : Need paper done with 8-10 pages not including cover page or reference. Please include abstract and introduction, that's already two pages out of your 8-10 pages. Please be original but if you do use other work please paraphrase.
Compare the present value of economic profit : Samantha Roberts has a job as a pharmacist earning $30,000 per year, and she is deciding whether to take another job as the manager of another pharmacy for $40,000 per year or to purchase a pharmacy that generates a revenue of $200,000 per year.Compa..
Emerging cyber security approaches and technologies : Write an 18 page (or longer) paper in which you identify and assess emerging cyber security approaches and technologies as well as discuss government efforts to nurture the development of these emerging technologies.
Members can only be used by its own methods and friends : 1. A class's ______ members can only be used by its own methods and friends. a.  public  b.  protected   c.  private    d.  final
What is the meaning of mutually exclusive events : What is the meaning of mutually exclusive events? What is meant by collectively exhaustive? In your responses, please give an example of each.
Operating activities using indirect method : Scranton, Inc. reports net income of $254,000 for the year ended December 31. It also reports $98,100 depreciation expense and a $6,200 gain on the sale of equipment. Its comparative balance sheet reveals a $40,300 decrease in accounts receivable, a ..
The trial balance of pacilio security services inc : Billed $120,000 of monitoring services for the year. Credit card sales amounted to $36,000, and the credit card company charged a 4 percent fee. The remaining $84,000 were sales on account. Sales tax is not charged on this service.
What is good score and what is considered subprime score : Why and how does one’s credit score matter? For instance, how will a 100 point difference in credit score impact on the home mortgage rate one is offered? What is FICO and how is it computed? What is a “good” score and what is considered a “subprime”..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd