Free Essay

Cis247A All Quizzes

In: Business and Management

Submitted By Laynebaril
Words 1303
Pages 6
CIS247A ALL Quizzes

Click Link Below To Buy: http://hwcampus.com/shop/cis247a-all-quizzes/ (TCO 1) The mechanism that allows you to combine data and the behavior for that data into a single unit is called a(n) _____.

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

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

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

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

Question 6. Question : (TCO 8) Most professional coding standards use _____ for data members.

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

class ClockType
{
private int hr; public int min; public int sec;

public void setTime(int x, int y, int z); public int getTime(); public void printTime();

}

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?

Question 9. Question : (TCO 1) All objects of the same class _____ copy of the attributes and methods.

Question 10. Question : (TCO 1) Which of the following statements will display “Welcome to C#!” to the console?

Question : (TCO 2) Only those class members which are part of the implementation of the class should be declared as ______.

Question 2. Question : (TCO 2) _____ and _____ are other terms for getters and setters.

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

Question 4. Question : (TCO 2) A Waiter is responsible for taking the order from the Customer based on the menu, informing the Chef of the order and delivering the requested food back to the Customer. A Chef is responsible for preparing the food and notifying the Waiter when the food is ready. The Customer is responsible for placing an order from the menu. In identifying the interface of the Waiter object, which of the following would you consider as (an) appropriate message(s) the Waiter should respond to?

Question 5. Question : (TCO 5) Code inside a _____ should set the newly created object to its initial _____ state.

Question 6. Question : (TCO 5) Which of the following method pairs are not examples of method overloading?

Question 7. Question : (TCO 5) Consider the following class definition.

public class Flower
{
private string color; private double cost;

public Flower() { color = “red”; cost = 0.0; } public Flower(string c) { color = c; cost = 0.0; }

public void Color(string c) { color = c; } public void Cost(int amount) { cost = amount; }
}

Which of the following is/are true:

(i) The attribute cost can be set to a new value, by a user of this class.
(ii) You can write Console.WriteLine(“The flower is: “ + Flower.Color());
(iii) A default constructor is provided.

Question 8. Question : (TCO 2) Can two classes each define a method with the same name?

Question 9. Question : (TCO 5) Which error handling technique(s) is(are) appropriate when developing an application?

Question 10. Question : (TCO 2) Assume a class contains one non-static data member and two static data members. If two objects have been instantiated from the class, how many copies of the static data member exist?

(TCO 2) Which of the following statements is/are true?

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

Question 3. Question : (TCO 2) Attributes of a class can be declared as which of the following?

Question 4. Question : (TCO 2) _____ are methods that have the same name as the class they are declared in and are used to initialize attributes.

Question 5. Question : (TCO 2) One of the ways object-oriented languages protect object data is through _____.

Question 6. Question : (TCO 2) Attributes that are assigned a private accessor can _____.

Question 7. Question : (TCO 2) An object-oriented class should be designed as a(n) ____ system. In other words, the specific details of a class do not need to be known by a programmer as long as they are aware of the inputs and outputs associated with the class.

Question 8. Question : (TCO 2) Which of the following statements is false about encapsulation?

Question 9. Question : (TCO 2) Given a private attribute called age, which of the following are proper implementations for a getter and a setter?

Question 10. Question : (TCO 2) Identify the setter declaration(s) below that most likely contribute to the concept of information/data hiding.

(TCO 3) A solid object-oriented design process includes which of the following?

Question 2. Question : (TCO3) A default constructor has how many parameters?

Question 3. Question : (TCO3) Which of the following might be potential class(es) in an application?

Question 4. Question : (TCO3) Why do classes need to collaborate with each other?

Question 5. Question : (TCO 3) Assume you have a RacingCar class with a non-static attribute named speed. If you create four objects of this class, how many copies of the speed variable will you have?

Question 6. Question : (TCO3) Which of the following correctly describes the steps taken to develop classes using the object-oriented design process, after we develop a prototype for the user interface?

Question 7. Question : (TCO3) Which of the following is true about the object-oriented design process?

Question 8. Question : (TCO3) A(n) _____ language is one to which you can add your own data types.

Question 9. Question : (TCO 3) When composition (one object having another object as a member) is used, _____.

Question 10. Question : (TCO 3) Classes do not have the ability to _____.

TCO 3) Inheritance represents what kind of relationship?

Question 2. Question : (TCO 4) Which of the following design rules apply to inheritance?

Question 3. Question : (TCO 4) Select the parent class.

Question 4. Question : (TCO 4) Which of the following is not a good example of a hierarchy that could be modeled by inheritance?

Question 5. Question : (TCO 4) Which of the following examples represent(s) the “is-a” relationship in the parent/child format?

Question 6. Question : (TCO 3) What is the result of over using inheritance?

Question 7. Question : (TCO 3) In object-oriented programming, inheritance is transitive; that means a child class _____.

Question 8. Question : (TCO 4) _____ is the least secure member access specifier.

Question 9. Question : (TCO 4) Which of the following term(s) refer(s) to a class that inherits from a parent class?

Question 10. Question : (TCO 6) _____ is the ability to combine data and operations on that data into a single unit.

TCO 7) Instances of a(n) _____ cannot be created in code.

Question 2. Question : (TCO 7) A(n) _____ cannot be instantiated and therefore is used only to form related subclasses.

Question 3. Question : (TCO 7) Which of the following statements is true?

Question 4. Question : (TCO 7) Which of the following classes is most likely an abstract class?

Question 5. Question : (TCO 7) _____ and _____ can be used to implement a contract in an object-oriented application.

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

Question 7. Question : (TCO 7) Multiple inheritance is defined as the ability to do what?

Question 8. Question : (TCO 7) Which of the following class definitions defines a legal abstract class?

Question 9. Question : (TCO 7) Which of the following declares an abstract method in an abstract C# class?

Question 10. Question : (TCO 7) Which of the following statements is false?

Similar Documents