CIS247A
ALL Quizzes
Click Link Below To Buy:
Contact Us:
Hwcoursehelp@gmail.com
(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?
No comments:
Post a Comment