SQL
Database design
Java Spring
Java Fundamentals
100

What does the following query do? SELECT * FROM customers;

Selects everything from the customers table.

100

What is a primary key?

a primary key uniquely identifies a row in a table.

100

What does CRUD stand for?

Create, Read, Update, Delete

100

What is an array list?

a resizable array with which elements can be added to or removed whenever you want

200

What does ORDER BY do?

Specifies how data is sorted in a results set.

200

What does JSON stand for?

JavaScript object notation 

200

what is the name of the in memory database commonly used with java spring 

H2

200

What does the 'extends' keyword do?

You use this keyword to inherit all public attributes and methods from a parent class

300

name 3 SQL statements

SELECT, UPDATE, DELETE, INSERT, etc.

300

What are the two most popular types of databases?

Relational and NoSQL databases

300

What is the difference between PUT and PATCH

Put replaces an entire set of data while patch replaces only a certain part

300

What is a constructor?

a method that is called automatically when you create an instance of a a class object

400

true or false: in SQL, keywords MUST be capitalized for the query to work properly?

false, capitalizing SQL keywords is common practice but not required 

400

if your database is set to 'cascade on delete' what does that mean?

when deleting a parent table, all of the children of that parent table will delete as well
400

What is the purpose of @Override?

@Override annotation informs the compiler that the element is meant to take over an element declared in a superclass.

400

What is over-loading in java?

when you have 2 methods with the same name, in the same class, but different parameters

500

What is an aggregate function in SQL?

An aggregate function performs a calculation on a set of values, and returns a single value.

500

Define an intermediary table in a database

A table containing the references to two separate tables defined by their primary key

500

What is a Response Entity in spring?

ResponseEntity is meant to represent the entire HTTP response. You can control anything that goes into it: status code, headers, and body.

500

Under what circumstances do you use the this keyword?

Can implicitly or explicitly be used for clarity as to which variable is being referenced with instance variables; allows an object to refer to itself

M
e
n
u