C1S247 Quiz week 3 (Sample) Solution – Guaranteed 100% score

Lab Price = $8
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart


Problem Statement
CIS247 Week 3 Quiz (Sample) Solution
1. Question : (TCO 3) A solid object-oriented design process includes which of the following?

Doing good analysis

Gathering user requirements

Identify the classes

All of the above

2. Question : (TCO3) When would a programmer write more than one constructor?

You never have more than one constructor.

The constructor cannot be overloaded.

When the object can be initialized in more than one way.

None of the above

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

Shape

Fill shape

Draw shape

All of the above

None of the above

4. Question : (TCO3) Which of the following relationships are the most common relationships between classes?

“has-a”

“uses-a”

“is-a”

All of the above

None of the above

5. Question : (TCO 3) Assume you have an Employee class with a non-static attribute named salary. If you create ten objects of this class, how many copies of the salary attribute will you have?

2

10

An unlimited number

None of the above

6. Question : (TCO3) What happens right after we gather requirements in the object-oriented design process?

We develop a SOW

We identify classes

We create a UML diagram

We develop a prototype

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

The requirements need to be identified early.

Design change needs to be kept to a minimum.

A and B

None of the above

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

low-level

high-level

extensible

object-oriented

9. Question : (TCO 3) Classes cannot _____.

be inherited from other classes

have a relationship with other classes

be used to model attributes and behaviors of objects

None of the above

10. Question : (TCO 3) Access specifiers (public and private) can appear _____ within an application’s code.

in any order and multiple times

in any order (public first or private first), but not multiple times

in any order and multiple times if they have brackets separating each type
multiple times, but all specifiers of the same type must be grouped together

1. (TCO 2) Which of the following statements is/are true? (Points : 2)
        Object names are listed in the bottom section of a UML diagram.
        Attribute names are listed in the bottom section of a UML diagram.
        Method names are listed in the bottom section of a UML diagram.
        Class names are listed in the bottom section of a UML diagram.
        None of the above

2. (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? (Points : 2)
        /* Comment */
        //* Comment */
        // Comment //
        //Comment
        All of the above
        None of the above

3. (TCO 2) Attributes of a class can be declared as which of the following? (Points : 2)
        Static
        Public
        Private
        All of the above

4. (TCO 2) _____ are methods that have the same name as the class they are declared in and are used to initialize attributes. (Points : 2)
        Constructors
        Destructors
        Static methods
        Public methods
        None of the above

5. (TCO 2) Encapsulation _____ and provides _____ for program components. (Points : 2)
        protects an object’s data from unwanted modifications; independence
        protects an object’s methods from unwanted modifications; independence
        provides universal access to an object’s attributes; a stable implementation
        provides universal access to an object’s methods; a stable implementation
        None of the above

6. (TCO 2) Attributes that are assigned a private accessor can _____. (Points : 2)
        never be modified
        be modified directly by an external object
        change the value of other related attributes
        be modified by setters defined in the same class
        None of the above

7. (TCO 2) Object-oriented classes should be designed with the concept of a black box in mind. This means that users of the class should only need to know what _____ and _____ are associated with the class. The actual implementation details need not be known. (Points : 2)
        interface; implementation
        inputs; outputs
        objects; accessors
        relationships; interfaces

8. (TCO 2) Which of the following statements is true about encapsulation? (Points : 2)
        Encapsulation assists in combining more than one class together in a single, cohesive entity.
        Encapsulation assists with messaging between objects because it allows full access of all attributes to outside entities.
        Encapsulation assists with the creation of code that is reusable.
        Encapsulation is another term for object-oriented design.

9. (TCO 2) Which of the following is a proper implementation for a getter? (Points : 2)
        int getAge() { return age;}
        void getAge() {return age;}
        int getAge(int newAge) {this.age = newAge;}
        void getAge() {return age;}

10. (TCO 2) Identify the getter declaration(s) below that most likely contribute to the concept of information/data hiding. (Points : 2)
        private string getName(){return name;}
        public string getName(){return name;}
        private void getName(){return name;}
        public void getName(){return name;}
        None of the above

Relevant Material
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Payment Details

 

Lab Price = $8
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart

Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on [email protected]
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.


Leave a Reply