Week 6 Sample questions Flashcards

1
Q

The ________ method is called when the servlet is first created, and is not called again
as long as the servlet is not destroyed.

A

Init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The Data Access Object pattern (DAO) ___________________________.
a) helps with the design of GUI programs.
b) abstracts the database access logic out of a domain class
c) is a Gang of Four patterns
d) is a simple way of creating a data access component

A

b) Abstracts the database access logic out of a domain class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following are NOT interfaces?
a) DriverManager
b) Connection
c) ResultSet
d) Statement

A

a) DriverManager is not an interface!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Java data types are the same as the data types used in the database.
a) True
b) False

A

b) False

There IS overlap, but they are not the same

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Design patterns ____________.
a) are proven ways for implementing behavior that help increase cohesion and reduce
coupling.
b) are elegant ways for writing code
c) cannot be implemented in Java.
d) only apply to C++

A

a) Are proven ways for implementing behavior that helps increase cohesion and reduce coupling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly