Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Final Exam in OOP

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is a class?

a)

A class is a type of variable in programming.

b)

A class is a function that returns a value.

c)

A class is a blueprint for creating objects in programming.

d)

A class is a method for executing code.

2.

Which term refers to hiding the internal details of an object from the user?

a)

polymorphism

b)

inheritance

c)

abstraction

d)

encapsulation

3.

What does JDBC stand for?

a)

Java DataBase Connection

b)

Java Document Base Connectivity

c)

Java Data Binding

d)

Java Database Connectivity

4.

Which of the following is required to connect a Java application to a MySQL database?

a)

MySQL JDBC driver

b)

Java Database Connectivity (JDBC) API

c)

MySQL ODBC driver

d)

MySQL Command Line Client

5.

Which of the following correctly retrieves a book record with ID 1?

a)

PUT /books/1

b)

DELETE /books/1

c)

GET /books/1

d)

POST /books/1

6.

What SQL command is used to add a new record?

a)

ADD RECORD

b)

INSERT INTO

c)

UPDATE TABLE

d)

CREATE ENTRY

7.

Which SQL statement is used to retrieve data from a database?

a)

SELECT

b)

DELETE

c)

UPDATE

d)

INSERT

8.

What is the purpose of the WHERE clause in SQL?

a)

To filter records based on specified conditions.

b)

To create new database tables.

c)

To join multiple tables together.

d)

To sort records in ascending order.

9.

What is the function of the JOIN clause in SQL?

a)

The JOIN clause filters rows based on a specific condition.

b)

The JOIN clause combines rows from multiple tables based on a related column.

c)

The JOIN clause creates new tables in the database.

d)

The JOIN clause deletes rows from a table.

10.

What does the term 'ORM' stand for in database management?

a)

Object-Relational Mapping

b)

Optimized Relational Model

c)

Object-Relation Mapping

d)

Object-Resource Management