Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91343203
  • Price:- $30

Guranteed 24 Hours Delivery, In Price:- $30

Have any Question?


Related Questions in Computer Engineering

Regarding sorting lists an algorithm such as quicksort was

Regarding sorting lists, an algorithm such as QuickSort was preferred if the list was, for the most part, in random order, and that an algorithm such as Insertion Sort was preferred if the list was essentially in order. ...

Short answer1 what is the difference between a logic error

Short Answer 1. What is the difference between a logic error and a syntax error? 2. Define and discuss the difference between unary, binary and ternary operators. Give an example of each. 3. When must you use curly brace ...

In linux what synchronization methods they use within the

In Linux what synchronization methods they use within the kernel, please dig into your findings for Linux.

What are the challenges in implementing a healthcare

What are the challenges in implementing a Healthcare application in cloud environment? ((Need research reference links from research papers, at least 1 journal paper or 2 conference papers - The referred conference resea ...

Command to mail only the process id of running java program

Command to mail only the process ID of running Java program test to the email address (single line Unix)

What are the best practices to follow for microsoft windows

What are the best practices to follow for Microsoft Windows network security. Which two would you start with and why?

Would be being proposed transfer scheme answer the problems

Would be being proposed transfer scheme answer the problem/s seen in the implementation of the TRAIN law? Explain why or why not in light of the ongoing 4Ps etc. What are some other tax reform in Collas-Monsod's wish lis ...

Remember all of the following steps when showing that a

Remember all of the following steps when showing that a problem D is NPcomplete: 1. Show that D is in NP by briefly explaining how to quickly verify a solution to it. 2. Choose another problem Q that is known to be NP-ha ...

Question suppose that in game of chance you bet an initial

Question : Suppose that in game of chance, you bet an initial amount of money, and every time you play, the money is doubled with probability p and halved with probability 1 - p. (a) What value of p gives you an expected ...

Roberto is the network administrator for an international

Roberto is the network administrator for an international law firm with offices and customers in North America, South America, Africa, and the Middle East. The lawyers frequently contact each other via e-mail, use the In ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As