Cash-back offer from May 7th to 12th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 10.00

Devry cis247 week 1 quiz latest (2016)

Question posted by
Online Tutor Profile
request

Question

1. Question : (TCO 1) The components of a class are called _____ and _____.

elements; objects

attributes; methods

objects; instantiations

properties; descriptions

Question 2. Question : (TCO 1) Which of the following would be the most appropriate choice for a method in a Cup class?

drink()

hot()

break()

color()

Question 3. Question : (TCO 1) Which of the following statements is/are true?

A. Objects communicate through message passing.

B. An object must be defined before you can create a class.

C. The state of an object should not be hidden.

D. Implementation details should be visible through the interface of a class.

A and C

All are true

None are true

Question 4. Question : (TCO 1) Which of the following would be the most appropriate choice for a data member in a Screen class?

dimensions

turnOff

refresh

activate Screen Saver

Question 5. Question : (TCO 1) The property of _____ describes the packaging of state and behavior together in an object.

data hiding

abstraction

encapsulation

All of the above

None of the above

Question 6. Question : (TCO 8) Most professional coding standards use _____ for class names.

underscores along with all upper case words

Method Class case

no specific naming convention

Pascal case

Question 7. Question : (TCO 1) Examine the ClockType class definition. How many attributes does it contain?

class ClockType

{

public void setTime(int hour, int min, int sec);

public int getTime();

public void printTime();

private int hr;

public int min;

public int sec;

}

2

3

9

6

An average of 5 because (7+3)/2 = 5

Question 8. Question : (TCO 1) Assume we have two classes and have instantiated an object from each class. How many copies of each class's attributes and methods exist in the instantiated objects?

Two copies, one copy of the first class and one of the second

Zero, the objects do not have attributes and methods

Only one copy and both objects share it

None of the above

Question 9. Question : (TCO 1) Both _____ and _____ allow for code reuse and the building of more complex systems.

inheritance; composition

UML diagrams; serialization

messaging; object behaviors

None of the above

Question 10. Question : (TCO 1) Which of the following is a valid statement for a method definition in Java?

public int computeAverage {

return 1;

}

public int computeAverage (

return 1;

)

public int computeAverage () {

return 1;

};

public int computeAverage () {

return 1;

}

 

 

Available Answer
$ 10.00

[Solved] devry cis247 week 1 quiz latest (2016)

  • This Solution has been Purchased 1 time
  • Submitted On 23 Jun, 2016 04:37:43
Answer posted by
Online Tutor Profile
solution
Question 1. Question : (TCO 1) The components of a class are called _____ and _____. elements; objects attributes; methods objects; instantiations properties; descriptions Question 2. Question : (TCO 1) Which of the following would be the most appropriate choice for a method in a Cup class? drink() hot() break() color() Question 3. Question : (TCO 1) Which of the following statements is/are true? A. Objects communicate through message passing. B. An object must be defined before you can create a class. C. The state of an object should not be hidden. D. Implementation details should be visible thro...
Buy now to view the complete solution
Other Similar Questions
User Profile
maste...

devry cis247 week 1 quiz latest (2016)

Question 1. Question : (TCO 1) The components of a class are called _____ and _____. elements; objects attributes; methods objects; instantiations properties; descriptions Question 2. Question : (TCO 1) Which of the following...
User Profile
smart...

DEVRY CIS170B WEEK 3 ILAB | Complete Solution

/* Specification: First Name Last Name Lab 1 Exercise# This program calculates the scoring of a Diving Competition */ using System; using System.Collections; namespace DivingScoringProgram { class Program { ...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35