Question: PLEASE HELP this class is object oriented programming class 1. Which of the following is an attribute of a student object? a. Name b. ID
1. Which of the following is an "attribute of a student object? a. Name b. ID number c. Grades d. All of the above 2. Which of the following best describes the behavior of an object a. The use of the object in the larger program b. The functions that belong to that object c. Forward d. The presence of numbers 3. Which of the following best describes Instantiation? a. Creating an object of a particular class b. A type of error your program may have C. A function used to create an object d. The collection of functions owned by a class 4. Which of the following best describes a constructor class? a. A default state of an object b. A function used to instantiate an object C. A function used to define the purpose of an object d. The programming language python 5. What are the three visibility options of a class? a. Public, private, and protected b. Public, private, and super private c. Protected, defended, and optional d. Private, protected, and package 6. In Unified Modeling Language (UML) what does the plus sign (+) represent a. A public class b. A private class C. A class that needs to be added d. A package 7. What is the purpose of getter and setter methods a. They allow for the usage of private methods b. They provide a way to stop the user from editing values they should not C. They stop methods from being run multiple times d. They are used to create instances of objects 8. Which of the following is not true of constructors? a. A constructor must have the same name as the class itself b. Constructors do not have a return type (not even void) C. Constructors are invoked using the 'new' operator d. Constructors can only be used once in the program 9. Draw a UML Class Diagram for a square class. Assume that a square has a length, area, and a perimeter, and functions to calculate the latter two
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
