Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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: image text in transcribed 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: image text in transcribed 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: image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions