WorksheetsFinal Exam in OOP
Total questions: 10
Worksheet time: 5mins
What is a class?
A class is a type of variable in programming.
A class is a function that returns a value.
A class is a blueprint for creating objects in programming.
A class is a method for executing code.
Which term refers to hiding the internal details of an object from the user?
polymorphism
inheritance
abstraction
encapsulation
What does JDBC stand for?
Java DataBase Connection
Java Document Base Connectivity
Java Data Binding
Java Database Connectivity
Which of the following is required to connect a Java application to a MySQL database?
MySQL JDBC driver
Java Database Connectivity (JDBC) API
MySQL ODBC driver
MySQL Command Line Client
Which of the following correctly retrieves a book record with ID 1?
PUT /books/1
DELETE /books/1
GET /books/1
POST /books/1
What SQL command is used to add a new record?
ADD RECORD
INSERT INTO
UPDATE TABLE
CREATE ENTRY
Which SQL statement is used to retrieve data from a database?
SELECT
DELETE
UPDATE
INSERT
What is the purpose of the WHERE clause in SQL?
To filter records based on specified conditions.
To create new database tables.
To join multiple tables together.
To sort records in ascending order.
What is the function of the JOIN clause in SQL?
The JOIN clause filters rows based on a specific condition.
The JOIN clause combines rows from multiple tables based on a related column.
The JOIN clause creates new tables in the database.
The JOIN clause deletes rows from a table.
What does the term 'ORM' stand for in database management?
Object-Relational Mapping
Optimized Relational Model
Object-Relation Mapping
Object-Resource Management
