Question: Question 11 pts The Unified Modeling Language describes the classes and objects of an application can be used to write the pseudo code for a

Question 11 pts

The Unified Modeling Language

describes the classes and objects of an application
can be used to write the pseudo code for a class
can be used to write the code that defines a class
is a scripting language for working with objects

Flag this Question

Question 21 pts

When you code the dot operator after an object, what can you access?

the constructor of the object
the iterator of the object
the public attributes and methods of the object
only the public methods of the object

Flag this Question

Question 31 pts

Consider the following diagram: Question 11 pts The Unified Modeling Language describes the classes and objects Which of the following is true?

The Product class inherits the Book and Movie classes.
The Book and Movie classes inherit the Product class.
The Product class inherits the Book class only.
The Book and Movie classes inherit each other.

Flag this Question

Question 41 pts

Consider the following diagram: of an application can be used to write the pseudo code for The getDescription() method of the Book class _________ the getDescription() method of the Product class.

inherits
overrides
calls
adds

Flag this Question

Question 51 pts

Consider the following diagram: a class can be used to write the code that defines a If you create an object from the Movie class, which attribute(s) can you access from that object?

year
author and year
name, price, and discountPercent
name, price, discountPercent, and year

Flag this Question

Question 61 pts

If you have a class named Vehicle, and you want to code a class named Truck that inherits the Vehicle class, you can begin by writing this code:

class Truck(Vehicle):
class Truck : Vehicle
class Truck inherits Vehicle:
class Truck extends Vehicle:

Flag this Question

Question 71 pts

The object-oriented programming concept that allows you to define a new class thats based on an existing class is

encapsulation
polymorphism
inheritance
instantiation

Flag this Question

Question 81 pts

Which of the following defines the type of data that an object can store?

data structures
methods of a class
attributes of a class
instances of a class

Flag this Question

Question 91 pts

Which of the following defines the tasks that an object can perform?

data structures
methods of a class
attributes of a class
instances of a class

Flag this Question

Question 101 pts

Which of the following defines a constructor that initializes one attribute?

def __init__(name): this.name = name
def __init__(this, name): name = this.name
def __init__(name): self.name = name
def __init__(self, name): self.name = name

Product name price discount Percent getDiscount Ano unt ) getDiscountPrice) getDescription O Book Movie author year getDescription() getDescription)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!