PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What would be the BEST abstract superclass which defines the operations getPrice(), getSeats() and getCustomer

Refer to the exhibit to answer the question.

Besides individual tickets for sale, there are also group packages and season tickets. Each of
these has a different price. Each has its own rules for determining its price.
– A GroupTicketPackage is a set of tickets for an individual performance.
– A SeasonTicket is a ticket for the same seat for a number of performances.
– A SeasonTicketPackage is a set of tickets for the same seats for a given number of
performances.
What would be the BEST abstract superclass which defines the operations getPrice(), getSeats()
and getCustomer() and which all these new classes could be subtypes of?

Which of the following is the easiest solution that the e-commerce site could have implemented to keep OleR

Ole visits an e-commerce site and wants to buy one of its products. Before he places the order, he
looks for basic information about how the product works but he finds none. Ole abandons his
purchase. Which of the following is the easiest solution that the e-commerce site could have
implemented to keep Ole’s business?

WHERE ID = ?

Consider the following statement:
prepStmt = dbConn.prepareStatement (“DELETE
FROM MyTable
WHERE ID = ?”);
The prepStmt member is of type PreparedStatement. The dbConn member is of type Connection
and represents a connection to a database. The ID column is an int data type. The value for the ?
placeholder in the SQL statement is held by a member variable named id. The id member’s value
was acquired via a getPhmaryKey() method. Which of the following statements would properly
execute the statement given in this question?


Page 117 of 263« First...102030...115116117118119...130140150...Last »