Question: 1. Object-oriented programming allows you to derive new classes from existing classes. This is called A. encapsulation B. inheritance C. abstraction D. generalization 2. With

1. Object-oriented programming allows you to derive new classes from existing classes. This is called A. encapsulation B. inheritance C. abstraction D. generalization 2. With which I/O class can you append or update a file? A. RandomAccessFile(, B. OutputStream() C. DataOutputStream() D. None of the above 3. In a relational data model, imposes constraints on the data. A. Structure B. Integrity C. Language D. SQL 4. To connect to a local MySQL database named test, use A. Connection connection = DriverManager.getConnectionudbc:mysql://localhost/test); B. Connection connection = DriverManager.connect('jdbc:mysql://localhost/test"); C. Connection connection DriverManager.getConnection("mysql:jdbc://localhost/test"); D. Connection connection = DriverManager.getConnection("dbc:mysql://localhost/test"); 5. What is the return value from stmt.executeUpdate('insert into T values (100, 'Smith')") A. void B. an int value indicating how many rows are effected from the invocation C. a value indicating whether the SQL statement has been executed successfully D. an object that contains the status of the execution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
