Represent valid comments

Assignment Help Basic Computer Science
Reference no: EM13773446

1. Which of the following statements is/are true?

A. Object names are***** the bottom section of a UML diagram.

B. Attribute names are***** the bottom section of a UML diagram.

C. Method names are***** the bottom section of a UML diagram.

D. Class names are***** the bottom section of a UML diagram.

E. None of the above

2. Java, C#, and C++ all allow use of comments. Which of the following represent(s) valid comments in these three languages?

A. /* Comment */

B. //* Comment */

C. // Comment //

D. //Comment

E. All of the above

F. None of the above

3. Attributes represent the _____ of an object because they store information about that object.:

A. state

B. behaviors

C. size

D. accessibility

4. If a programmer explicitly defines a constructor that accepts parameters, he or she should also define a _____ version, as a best practice.

A. private

B. public

C. static

D. default

E. None of the above

5. One of the ways object-oriented languages protect object data is through _____.

A. integration of objects

B. universal data access

C. encapsulation

D. the public accessor

E. All of the above

6. Accessors such as "+" and "-" can be used to dictate how external programs, objects, and entities interact with _____.

A. an entire class only

B. all attributes and methods in a class

C. attributes of a class only

D. methods of a class only

E. None of the above

7. A black box is a term used to describe a system that can be understood solely based on its inputs, the resulting outputs and _____.

A. its object-specific instantiated behavior

B. its object-specific state at any given time

C. a detailed understanding of its implementation

D. a basic understanding of its implementation

8. One of the benefits of _____ is that it allows the implementation of a class to change without affecting external entities using that class.

A. abstraction

B. encapsulation

C. instantiation

D. construction

9. Which of the following is a proper implementation setter?

A. int setAge() { return age;}

B. void setAge(int age) {this.age = age;}

C. void setAge(int newAge) {return age;}

D. void setAge() {return age;}

10. Identify the attribute declaration(s) below that most likely contribute to the concept of information/data hiding and is correctly declared.

A. private age;

B. int age;

C. int private age;

D. public int age;

E. None of the above

Reference no: EM13773446

Questions Cloud

The obtained value of the appropriate statistic for testing : 1. For a given N, the interval that bounds the population mean at the 99% confidence level is ____ that which bounds the population mean at the 95% confidence level. A. equal to B. greater than C. less than D. can't be determined
Explain why is it necessary to have principles for policies : Be sure to list your references at the end of your post a minimum of two references. References must be in APA citation format. All posts must be a minimum of 300 words combined. Why is it necessary to have principles for policies
Distribution of survey instrument within correction facility : There are four parts to this Project, each of which is worth a quarter of the Project Paper grade: Distribution of the survey instrument within a corrections facility and Research of the issues presented based on survey results
Impact infiltration and evaporation from the ground : How would drought conditions impact infiltration and evaporation from the ground?
Represent valid comments : Java, C#, and C++ all allow use of comments. Which of the following represent(s) valid comments in these three languages
Write classification essay on styles of eating in cafeteria : Write a classification essay on Styles of eating in the cafeteria.
The main greenhouse gases issues : What are some predicted environmental damages if carbon dioxide emissions are not reduced?
What are the three most acidic ptcrtons in molecule : Draw out the other two staggered Newman Projections for this molecule - What are the three most acidic ptcrtons in molecule.
Description the nature and scope of problem-issue : Your paper must be well documented using current AMA format. You are required to use at least 10 professional, peer-reviewed, scholarly sources in the reference page of your paper.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  The set binary divisible by 4 when interpreted as an integer

The set of binary strings which are divisible by 4 when interpreted as an integer value

  Project manager for an it department

Define a work breakdown structure and describe the methodology behind constructing one.

  Investigate project management body of knowledge

Investigate Project Management Body of Knowledge (PMBoK). Write a report on one of knowledge areas. Describe the task of understanding potential threats

  Describe a system project that might have three subsystems

Describe a system project that might have three subsystems.

  Indicates that the student id is abc54301

Indicates that the student ID is ABC54301 and the answer to question 1 is  True, the answer to question 2 is False, and so on. This student did not  answer question 9. The exam has 20 questions, and the class has more than  150 students. Each corre..

  Explain business scenario and specify types of constraints

Explain a business scenario and specify the types of constraints that would be appropriate to make sure the integrity of the database. For example, an airline reservation system should not make a reservation.

  A direct-mapped cache with 8 two-word blocks

Based on the following sequence of word addresses generated by the processor:1, 134, 212, 1, 135, 213, 162, 161, 2, 44, 41, 221a) Given a direct-mapped cache with 8 two-word blocks that is initially empty

  Convert following base ten numbers their binary equivalent

Convert each of the following base ten numbers to their binary equivalent: a. 16.4 b. 39 c. 48.67

  Provide a description of the algorithm in pseudocode

You are required to create a detailed analysis for each of the following array-based sorting algorithms.

  Use css comments to document the css program

Create a css file named style.css to format index.htm and provide a basic layout. Use css comments to document the css program.

  Give a detail explanation of what vlans are

Give a detail explanation of what VLANs are.

  Opencv python

OpenCV Python

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