Question

In: Computer Science

Which of the following statements is false? a. UML represents instance variables as an attribute name,...

Which of the following statements is false?

a.

UML represents instance variables as an attribute name, followed by a colon and the type

b.

Private attributes are preceded by the keyword private in the UML

c.

In the UML, each class is modeled in a class diagram as a rectangle with three compartments. The top one contains the class’s name centered horizontally in boldface. The middle one contains the class’s attributes, which correspond to instance variables in Java. The bottom one contains the class’s operations, which correspond to methods and constructors in Java

d.

The UML models operations by listing the operation name followed by a set of parentheses. A plus sign (+) in front of the operation name indicates that the operation is a public

Solutions

Expert Solution

UML represents instance variables as an attribute name, followed by a colon and the type
True

Private attributes are preceded by the keyword private in the UML
False
Because, Private attributes are preceded by the symbol - in the UML

In the UML, each class is modeled in a class diagram as a rectangle with three compartments. The top one contains the class’s name centered horizontally in boldface. The middle one contains the class’s attributes, which correspond to instance variables in Java. The bottom one contains the class’s operations, which correspond to methods and constructors in Java
True

The UML models operations by listing the operation name followed by a set of parentheses. A plus sign (+) in front of the operation name indicates that the operation is a public
True

Private attributes are preceded by the keyword private in the UML


Related Solutions

Identify which of the following statements is false. A. The PTI (previously taxed income) represents the...
Identify which of the following statements is false. A. The PTI (previously taxed income) represents the balance of undistributed net income which were already taxed. B. The AAA balance can be negative, but the shareholder's basis in the S corporation stock cannot be less than zero. C. Tax exempt income increase the AAA and the basis of the S corporation stock. D. An S Corporation may or may not have accumulated Earnings and Profits Elaine owns an unincorporated manufacturing business....
Code in Java Write a Student class which has two instance variables, ID and name. This...
Code in Java Write a Student class which has two instance variables, ID and name. This class should have a two-parameter constructor that will set the value of ID and name variables. Write setters and getters for both instance variables. The setter for ID should check if the length of ID lies between 6 to 8 and setter for name should check that the length of name should lie between 0 to 20. If the value could not be set,...
Which of these statements is false? If two random variables are independent, then their squares are...
Which of these statements is false? If two random variables are independent, then their squares are also independent random variables If the joint pdf of a random vector factorises into the product of functions of the single variables, then the random variables that compose the vector are mutually independent If the covariance between two random variables is zero, the random variables are independent If two random variables are independent, their correlation is always zero If X is independent from Y,...
In java Implement the class Book. It has the following instance variables: name, subject, year, maximumLoanPeriod,...
In java Implement the class Book. It has the following instance variables: name, subject, year, maximumLoanPeriod, and loanPeoriod. The following methods should be included: • Constructor(s), Accessors and Mutators as needed. • public double computeFine() => calculates the fine due on this item The fine is calculated as follows: • If the loanPeriod <= maximumLoanPeriod, there is no fine on the book. • If loanPeriod > maximumLoanPeriod o If the subject of the book is "CS" the fine is 10.00...
Which of the following statements is FALSE?
 Which of the following statements is FALSE? meiosis creates genetic diversity in sexually reproducing organisms gametes are haploid cells produced by meiosis mitosis produces four genetically identical daughter cells  somatic cells are diploid cells produced by mitosis
Which of the following statements is FALSE?
Which of the following statements is FALSE?a. The rate of second order reactions is dependent on concentration.b. The rate of a first order reaction is dependent on concentraion.c. The half life of a second order reaction is not dependent on concentration.d. The half life of a zero order reaction is dependent on concentration.e. None of the statements are FALSE.
Which of the following statements is false?
Which of the following statements is false? a. A discouraged worker is not counted as an unemployed worker b. The frictional unemployment rate is greater than the natural unemployment rate. c. The natural unemployment rate is greater than the structural unemployment rate d. The natural unemployment rate is equal to the sum of the frictional unemployment rate and the structural unemployment rate.
1. Which of the following statements is FALSE?
 1. Which of the following statements is FALSE? Crossover interference is greater over short distances. With complete crossover interference, at most 1 crossover can occur between two genes. Recombination frequency is an overestimate of map distance. Crossover frequency is a good measure of distance even between genes that recombine at a frequency of 50%. 2. Which of the following statements is TRUE? Physical distance between genes is always proportional to map distance. Crossovers occur at a lower frequency in gene-rich regions. Individuals in a true-breeding population must have...
Create a class called Student. Include the following instance variables: name, address, phone, gpa Create all...
Create a class called Student. Include the following instance variables: name, address, phone, gpa Create all of the methods required for a standard user defined class: constructors, accessors, mutators, toString, equals Create the client for testing the Student class Create another class called CourseSection Include instance variables for: course name, days and times course meets (String), description of course, student a, student b, student c (all of type Student) Create all of the methods required for a standard user defined...
in Java, Create a class called EMPLOYEE that includes three instance variables – a first name...
in Java, Create a class called EMPLOYEE that includes three instance variables – a first name (type String), a last name (type String) and a monthly salary (double). Provide a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, do not set its value. Write a test app names EmployeeTest that demonstrates class EMLOYEE’s capabilities. Create two EMPLOYEE objects and display each object’s yearly...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT