Study Guide Flashcards

(288 cards)

1
Q

What is Compilation

A

The process a computer takes to convert high level language to machine code

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

What does it mean for Java to be strongly typed?

A

Every variable must be declared with a data type

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

What are primitive types?

A

Specifies the size and type of variable values and has no additional methods

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

What are the 8 primitive types in Java

A

byte
short
int
long
float
double
boolean
char

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

What is a method?

A

A collection of statements grouped together to perform an operation

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

What does ‘return’ do?

A

Finishes the execution of a method and returns a value

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

What is a return type?

A

A data type of the value returned from the method

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

What does the return type ‘void’ mean?

A

A method doesn’t return a value or contain a return statement

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

What is a method parameter?

A

Values passed into a method to manipulate

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

What are the different boolean operators?

A

== Equal to
!= Not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
&& Logical and
|| Logical or
! Logical not

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

What are Strings in Java?

A

Sequences of characters represented as an instance of the java.lang.String class

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

What is a Stack Trace?

A

List of method calls the application was in the middle of when an Exception was thrown

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

What is the main method?

A

Starting point for the JVM (Java Virtual Machine) to start execution of a Java program

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

What is the Syntax of the main method?

A

public static void main( String args[] ) {

{

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

What is OOP?

A

Object Oriented Programming. It organized software design around Data or Objects, rather than functions and logic

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

What are Objects?

A

Instances of a class

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

What makes an Object different from a Primitive Type?

A

Objects are user-defined, default value is null, kept in a heap, and the reference variable is kept in the stack

Primitive Types are pre-defined, can’t contain null value as the default, and kept in the stack

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

What is the relationship between a Class and an Object in Java?

A

Objects are the instances of Classes.
Classes are the “blueprint” for Objects

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

What are constructors?

A

Special methods used to initialize Objects

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

What is the default constructor?

A

Java compiler automatically creates a no arg constructor if we do not create any constructors

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

What is an Array?

A

A collection of similar data elements stored at contiguous memory location. Can be accessed directly by it’s index value

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

How do I get an element of an Array?

A

Calling the index number.

String[] fruit = {apple, orange, bananan};

System.out.println(fruit[1]); // gets element “orange”

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

What are the different flow control statements in Java?

A

if statements
for loops
while loops
do while loops
switch statements

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

How is a for loop written in Java?

A

for(int i = 0; i < 5; i++){
some code
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the difference between ++i and i++
++i pre-increment: we want to increment the value by one then use it i++ post-increment: we want to use the value then increment it by one
26
What is the difference between a while loop and a do-while loop?
A do while loop runs through the loop at least once before checking the condition. A while loop must pass the condition before running through the loop
27
What are break statements?
They are used to terminate the enclosing loop
28
What are continue statements?
They skip the rest of the loop where it is declared and then executes another iteration of the loop
29
What is JUnit?
A unit testing framework for Java with the idea of "first testing then coding"
30
What is a unit test?
Individual units of source code that are tested to determine if they are fit for use
31
What are some annotations used in JUnit?
@test @Before @BeforeClass @After @AfterClass @Ignores @Test(timeout=500) @Test(expected=IllegalArgumentException.class)
32
What is TDD?
Test-Driven Development: A process of relying on software requirements converted to test cases before being developed
33
What are Exceptions in Java?
Unwanted or unexpected events that occur during the execution of a program
34
How are Errors different from Exceptions?
Error is used to indicate errors having to do with the runtime environment itself. They indicate a serious problem that a reasonable app should not try to catch. Exceptions indicate conditions that an application might try to catch.
35
What is the difference between checked and unchecked Exceptions?
Checked exceptions are checked at compile time by the compiler. You should use the 'throws' keyword. Unchecked exceptions are not checked at compile time and is up to the programmer to specify how to catch these exceptions
36
What might cause a NullPointerException?
When an application attempts to use an object reference that has a null value
37
Is ArrayIndexOutOfBoundsException a runtime exception?
Yes, the compiler does not check for this error during compilation
38
Is FileNotFoundException a runtime exception?
No, it is checked during compilation so it is a checked exception
39
How do I find where an exception was thrown in a program?
In the exception stacktrace
40
What does 'throws' do?
Indicates what exception type may be thrown by a method
41
What does try/catch do?
Tries a risky block of code that might cause an exception and catches the exception to continue the program instead of terminating
42
Can I have multiple catch blocks? Multiple try blocks?
Yes but each try block must be followed by a catch
43
What are Collections in Java?
Group of individual objects which are represented as a single unit
44
What is the difference between a List and a Set?
Lists are indexed and allows duplicates Sets are unordered and can't have any duplicates
45
What is the difference between a Set and a Map?
Both don't allow duplicates and are unordered, however Maps allow any number of null values while Sets can only contain one
46
What is the difference between a Stack and a Queue?
Stacks are Last In First Out: the elements inserted at the last index is the first element to come out of the list Queues are First In First Out: elements inserted at the first position are the first to come out
47
What is the difference between ArrayList and LinkedList?
ArrayLists store only similar data types and LinkedLists can store any type of data
48
Are Maps part of the Collection Interface?
No since map require key-value pairs
49
What is a wrapper class?
Class whos Object wraps or contains primitive data types
50
What do access modifiers do?
Sets access levels for classes, variables, methods, and constructors
51
What are the 4 access modifiers?
Default: When not explicitly declared, available to any other class in the same package Private: Access only within the declared class itself Protected: Can be accessed only by the subclasses in other package or any class within the same package of the protected member Public: Can be accessed from any other class
52
What are the non-access modifiers in Java?
Static Final Abstract Synchronized/Volitile
53
What does Static do?
Creates methods that will exist independently of any instances created for the class
54
What does Final do?
Can only be explicitly initialized once and variables can't be reassigned
55
What is Scope in programming languages?
Defines where methods or variables are accessed in a program
56
What are the different scopes in Java?
Class Level Method Level Block Level
57
What is SQL and why is it used?
Structured Query Language for accessing and manipulating databases
58
What are the sublanguages of SQL?
DDL: Data Definition Language DML: Data Manipulation Language DRL/DQL: Data Retrieval Language/Query TCL: Transaction Query Language DCL: Data Control Language SCL: Session Control Language
59
Commands for DDL (Data Definition Language)
Create Alter Drop Truncate Rename
60
Commands for DML (Data Manipulation Language)
Insert Update Delete
61
Commands for DRL/DQL (Data Retrieval/Query Language)
SELECT
62
What is a table in SQL?
A collection of related data held in a database that consists of columns and rows
63
What are primary keys for?
Uniquely identifies each record in a table Must be unique and not null
64
How do I query everything from a table?
SELECT * FROM table
65
How do I query only the rows that meet some criteria in a table?
SELECT * FROM table WHERE condition
66
How do I insert into a table?
INSERT INTO table (columns) VALUES (values)
67
How do I update values in a table?
UPDATE table SET column = value WHERE condition
68
How do I sort the results of a query in SQL?
SELECT * FROM table ORDER BY column ASC/DESC
69
What do aggregate functions do in SQL?
Performs a calculation on a set of values and returns a single value
70
What are some aggregate functions?
COUNT() MAX() MIN() AVG() ABS()
71
What is the difference between drop, delete, and truncate?
DROP: Deletes an entire table DELETE: Deletes specific records from a table TRUNCATE: Removes all records from a table
72
What is JDBC?
Java Database Connectivity allows programs to access database management systems
73
What are the different classes/interfaces used in JDBC?
DriveManager Driver Statement PreparedStatement CallableStatement Connection ResultSet ResultSetMetaData
74
What is DAO for?
Data Access Object is a structural pattern that allows us to isolate the application from the persistence layer(database)
75
What is Mockito for?
Used to mock interfaces so that dummy functionality can be added to a mock interface that can be used in unit testing
76
How are Mock Objects in Mockito created?
Writing methods to test followed by @TEST with a method for the expected results
77
What is HTTP?
HyperText Transfer Protocol is a set of rules that describe how info is exchanged and allows the client and server to communicate
78
What are HTTP Verbs?
Get Post Put Patch Delete
79
What is GET usually used for?
Retrieves a list of entities
80
What is POST usually used for?
Creating an entity
81
What is PUT usually used for?
Updating an Entity
82
What is PATCH usually used for?
Partially updating an entity
83
What is DELETE usually used for?
Deleting an entity
84
What are 100-level status codes for?
Informational response
85
What are 200-level status codes for?
Successful Requests
86
What are 300-level status codes for?
Redirection, further action needed to be taken to complete the request
87
What are 400-level status codes for?
Client side error, request contains a bad syntax
88
What are 500-level status codes for?
Server side error, Server failed to fulfill a bad request
89
What is a path parameter?
Request parameters attached to a URL to point to a specific rest API resource. Appear before the question mark in the URL
90
What is a query parameter?
Optional key-value pairs that appear after the question mark in the URL
91
What is a request body?
Data transmitted to an HTTP transaction immediately following the headers
92
What is a response body?
Data transmitted to an HTTP transaction
93
What are headers?
They let the client and server pass additional info with an HTTP request. Consists of case-insensitive name followed by : then it's value
94
What is JSON?
File format and data interchange format that uses human readable text to store and transmit data. Uses key-value pairs
95
What is Javalin?
A lightweight REST API library
96
How can I design an endpoint in Javalin?
app.get("/url", this::methodnamehandler);
97
What is the Context object used for in Javalin?
Allows you to handle an http-request
98
Can you explain the 3-layer controller-service-DAO architecture?
Controller: handles the navigation between different views Service: Stands on top of the persistence mechanissm to handle users requirements DAO: Encapsulates the details from the persistence layer and provides a crud interface for a single entity
99
What is Maven?
Build automation tool that adds new dependencies for building and managing projects
100
What file should be changed to add new Maven dependencies?
pom.xml
101
What is the Maven lifecycle?
validate compile test package integration test verify install deploy
102
How do I find and add a new dependency to Maven?
mvn install -
103
What are foreign keys in SQL?
A field in one table that refers to the primary key in another table
104
What is the referential integrity in SQL?
Refers to the relationship between tables. It's the logical dependency of a foreign key on a primary key
105
What is a constraint in SQL?
Rules enforced on the data columns of a table
106
What is the NOT NULL constraint?
The value must be filled into that field...Can't be left blank
107
What is the UNIQUE constraint?
Makes sure the column's value is unique in the table...No duplicate values
108
What does GROUP BY do?
Groups rows that have the same values into summary rows
109
What does HAVING do?
Used to filter the results of a GROUP BY query based on aggregate calculations
110
What is an alias in SQL?
Temporarily renaming a table or column for easier reading
111
What is multiplicity in SQL?
Specifies the number of instances of a type of data in a table?
112
What the different types of multiplicity?
one to many zero or one to one zero or one to many
113
What do you need to add to have one to many multiplicity?
an entity instance can be related to multiple instances of the other entities
114
What do you need to add to have many to many multiplicity?
Entity instances can be related to multiple instances of eachother
115
How do you modify existing tables?
ALTER TABLE table
116
What is normalization and why do we use it?
Process of taking a database design and apply a set of formal criteria and rules called normal forms. It reduces redundant data
117
What characterizes 1st normal form (1nf)?
Rows/columns not ordered No duplicate data Row/column intersection have unique and no hidden values
118
What characterizes 2nd normal form(2nf)?
Fullfil 1nf requirements All nonkey columns must depend on primary key Partial dependencies are removed and placed in a separate table
119
What characterizes 3rd normal form(3nf)?
Fullfils 2nf requirements Non primary key columns shouldn't depend on other non primary key columns No transitive functional dependency
120
What is a join in SQL?
Combines records from two or more tables in a database
121
What is an inner join?
Returns matching rows from both tables
122
What are left/right joins?
Returns all rows from specified side and matching rows from the other side
123
What is a view in SQL?
Virtual tables from tables in a database
124
What is REST?
REpresentational State Transfer making computer systems on the web communicate with each other easier
125
Why do we use REST?
They are stateless and they separate the concerns of the client and server
126
What is a resource in REST?
Entities that are accessed by the URL you supply
127
What does it mean to be stateless?
Each request must contain all the information necessary to be understood by the server instead of being depending on the server remembering prior requets
128
What do we need to do to make an endpoint RESTful?
The client request should contain all the information necessary to respond
129
What is the JDK?
Java Development Kit that offers tools necessary to develop Java programs
130
What is the JRE?
Java Runtime Environment provides the minimum requirements for executing Java applications. It consists of the JVM, core classes, and supporting files
131
What is the JVM?
Java Virtual Machine that is responsible for executing code line by line
132
What terminal command is used to compile a Java File?
JAVAC
133
What is contained in Stack Memory?
Temporary memory allocation for variables
134
What is contained in Heap Memory?
Long term dynamic memory. Chunk of memory available for the programmer
135
What is the String Pool and does it belong to Stack or Heap Memory?
When creating a string it looks for a reference to that string in the pool and assigns it. It is contained in Heap Memory.
136
What is garbage collection?
Process by which java programs perform automatic memory management
137
What is UNIX?
Operating system developed in the 1960s which has been under constant development since
138
How do i change directories in UNIX?
cd directoryname
139
How do I view contents of my directory in UNIX?
ls
140
What is Git?
Distributed version control system that tracks changes in any set of computer files
141
Why do we use Git?
Coordinating work among programmers and seeing changes made throughout applications
142
What is a commit?
After making changes in code you commit and set a message stating what changes were made. It saves a revision of the code to be pushed
143
What is GitHub?
Website to push changes to code for storing and viewing
144
What does pushing do?
Sends the commited code to some other source
145
What does pulling do?
Retrieves previously pushed code to you local machine
146
What does clone do?
Downloads a project form a source to your local machine
147
What does branch do?
Creates a new branch of the main code base to work on different features of an application without affecting the main code
148
What does checkout do?
Switches branches
149
What does merge do?
Joins two or more development histories together
150
What is a merge conflict?
When two or more developers change the same line or code or deletes a file one was working on and git can't automatically determine which is correct
151
What are the 4 pillars of OOP?
Abstraction Encapsulation Inheritance Polymorphism
152
What is Inheritance?
Subclasses extend the base class and takes on their properties and methods
153
What is Polymorphism?
Methods with the same name taking on different forms and functions. Can be done by overriding or overloading
154
What is Encapsulation?
Information hiding from the user and making the class attributes inaccessible from the outside classes. Use getters and setters to obtain info
155
What is Abstraction?
Handles complexity by hiding unnecessary details from the user so they only focus on the applications main function
156
What is the Object class in Java?
It is the Parent class of all classes in Java
157
What methods does the Object class contain?
getClass() hashCode() wait() toString() clone() equals() finalize() notify() notifyAll()
158
What are Generics in Java?
It means parametrized types allows all types to be a parameter to methods, classes, and interfaces
159
What are interfaces in Java?
Abstract class that is used to group related methods with empty bodies. Uses implements instead of extends. It's an Is-A Relationship
160
What does extending a class do?
Allows the sub classes to inherit to methods and properties of the base class
161
What does implementing an interface do?
Achieves total abstraction and allows us to achieve multiple inheritance of a class since you can't extend multiple classes
162
What is the difference between runtime and compile time polymorphism?
Runtime: Dynamic, Overrides methods: A method with the same name is extended/implemented overrides the base method Compile time: Static, Overloads methods: Multiple methods with the same name but different amounts or types of parameters
163
What is Method Overloading?
Multiple methods with the same name but different types or amount of parameter values
164
What is Method Overriding?
A method with the same name in a child class overrides the parent class method of the same name
165
Can you extend multiple classes?
NO
166
Can you implement multiple interfaces?
YES
167
How might access modifiers help us achieve Encapsulation?
Having private or protected modifiers keeps data contain to the class itself
168
What does the Comparable interface do?
Used to compare an object of the same class with an instance of that class
169
What is the SDLC?
Software Development Life Cycle is a framework that development teams use to create a cost effective and time efficient piece of software. Agile is an example.
170
What is Agile Development?
An approach to the software development life cycle that supports collaboration, flexibility, and iterative development. Focuses on user experience and input given to developers.
171
What is a Sprint?
Set periods of time that team members have to complete their tasks and review what they've been working on.
172
What are Ceremonies in Agile/Scrum
Meetings where the development team comes together to keep each other updated on their assigned tasks for projects.
173
What are User Stories?
Features that the end user would like to see implemented in the project.
174
What is Story Pointing?
A value assigned to user stories to help determine how much effort is needed to complete a feature.
175
What is Velocity in Agile Development?
A way to measure the time it takes for the development team to implement user stories within a sprint. It assists the project manager in getting a realistic idea of how much progress is being made at the end of each sprint.
176
What is Time Complexity?
An estimate of how long an algorithm will take to execute on different input sizes
177
What is O(1)?
O(1) is Constant time: The algorithm will take the same amount of time regardless of input size
178
What is O(n)?
O(n) is Linear time: Execution time scales directly with input size. (For-Loops)
179
What is O(log n)?
O(log n) is Logarithmic time: Each time the size of the input doubles, the execution time increases by the same amount. (Binary search)
180
What is O(n^2)?
O(n^2) is Quadratic time: The algorithm scales by the input sizes' square.(Nested For-Loops)
181
Describe the Linear Search Algorithm and what is the Time Complexity?
Linear search algorithms start at the beginning of list of elements and iterates each one until it finds the target element. An example would be iterating through an array with a for loop. Time complexity is O(n): Linear time
182
Describe the Binary Search Algorithm and what is the Time Complexity?
Binary search algorithms start at the middle of a list of elements. If the target element is the middle element the algorithm completes. If the target element is larger than the middle element, it searches to the right of the middle element and repeats the process again until the target is found. If the target element is smaller than the middle element, it searches to the left of the middle element and repeats the process again until the target is found. Time complexity is O(log n): Logarithmic time
183
What is one way you could take to sort an Array?
There are several different algorithms to sort arrays. The simplest and most efficient is the Selection Sort: First iteration compares each value to find the smallest value in the array and swap it with the element at index 0. The next iteration would would find the smallest value again but would start at the next index value. Repeats until Array is sorted. Time complexity of O(n^2) Quadratic time because it utilizes nested for-loops.
184
How does ArrayList work?
ArrayLists work similar to Arrays where you access elements by the index value, however they can change size has many methods to add elements (add()), modify elements (set()), and delete elements (clear()).
185
How does a LinkedList work?
LinkedLists element's are called Nodes. LinkedLists aren't stored in a contiguous manner in memory. Each node as a pointer to the next node which is how each node finds the next in memory. Singly LinkedLists only works forward. The first Node only stores the memory location of the next Node. Doubly LinkedLists can traverse forwards and backwards as each node stores the memory location of the previous and the next Node.
186
What is a Thread?
In Java, a thread is the smallest unit of processing that can be executed independently by the JVM. It is essentially a lightweight sub-process that runs concurrently with other threads within a program.
187
Why would using threading be advantageous?
Can improve the performance of a program by allowing multiple threads to execute in parallel Can make the program more responsive by allowing it to continue to process user input while performing other tasks in the background Improves efficiency of time and utilization of resources because processes can run asynchronously and concurrently
188
How do you create a new thread?
A thread is created by extending the java.lang.Thread class or implementing a runnable interface. Get an ExecutorService instance with Executors.newFixedThreadPool(int) Create a new WaitingThread with a new WaitingThread(String, int)
189
What is a race condition?
A race condition occurs when more than one sub-processes attempt to access the same location in memory at which a particular object is stored.
190
How would you prevent a race condition?
Race conditions can be prevented by synchronizing the sub-process/method Synchronization may be implemented by: 1: Using the synchronize keyword 2. Using Mutexes 3. Using Semaphores 4. Using a Lock Alternatively using thread safe data structures, proper encapsulation of data within a sub-process, messaging between threads, and atomic operations can prevent race conditions
191
What is a Deadlock?
When multiple threads are attempting to access the same resource so neither actually can access it.
192
What features were added to Java 5?
Generics Enhanced For-Loops Autoboxing/Unboxing Typesafe enums Varargs Static import Concurrent collections Copy on write compare and swap Locks
193
What features were added in Java 8?
Lambda Expressions Streams Nashorn String.join()
194
What is Reflection?
Java feature that allows a program to examine or "introspect" upon itself, and manipulate internal properties of the program. (getClass())
195
What is a Lambda Expression?
Short block of code which takes in parameters and returns a value. Similar to methods but don't need a name and can be implemented in the body of a method
196
What is a Functional Interface?
Interface with only one method (ex...Single Abstract Method)
197
What are Streams?
Abstraction of non-mutable collection of functions applied in some order to the data. They do not store data.
198
What are some operations that streams can do?
Intermediate Operations (Returns another stream) or Terminal Operations (triggers the execution of the stream pipeline) ForEach(): Terminal operation, loops over the stream elements Map(): Produces a new stream after applying a function to each element of the original stream Collect(): Gets elements out of the stream into and puts the values into the variable Filter(): produces a new stream with elements that pass the predicate Findfirst(): returns an optional for the first entry in the stream ToArray(): returns an array of elements from the stream FlatMap(): Helps "flatten" data structure to simplify further operations Peek(): Allows the developer to perform multiple operations on each element in a stream
199
How does the Singleton Design Pattern work and why would you use it?
A creational design pattern that ensures that a class has only one instance, while providing a global access point to this instance. We use it because it is more memory space efficient and the single object can be used repeatedly over the client program.
200
How does the Factory Design Pattern work and why would we use it?
A creational design pattern used to create an object without exposing the creation logic to the client. We use it to provide an approach for interface rather than implementation and provides abstraction.
201
What is Logging?
A framework for Java to understand and debug program runtime behavior by capturing persisting important data, making it available for analysis at any point in time.
202
Why would you use Logging?
It eases and standardizes the debugging process by providing flexibility and avoiding explicit instructions
203
What is Procedure in PL/SQL?
Functions that will auto trigger when something happens. Procedures will hide the SQL queries to improve performance by having less information sent to the database
204
What is a Trigger in PL/SQL?
When an event occurs and stored in the database and it's consistently called upon.
205
In SQL what is an Index?
A table to quickly look up information from other tables that need to be searched frequently
206
What is an SQL Index Advantageious?
It performs repetitive queries faster by storing the information into a table.
207
What is the general structure of an HTML document and what are the different parts of the documents used for?
HTML documents are divided into 2 parts: head: Contains tag to give the webpage a title and to be visible on the web browser as well as <style> or <script> tags to incorporate other files body: Where we design the structure of the webpage </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='208' id='card-428085127'> <div class='header'> 208 </div> <div class='card-face question'> <div class='question-content'> What are some HTML elements? </div> </div> <div class='card-face answer'> <div class='answer-content'> <title> <head> <div> <p> <h1>-<h6> <ul><ol><li> <img> <a> and more... </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='209' id='card-428085617'> <div class='header'> 209 </div> <div class='card-face question'> <div class='question-content'> What are inline and block elements? </div> </div> <div class='card-face answer'> <div class='answer-content'> Inline Elements: Do not start a new line and take up the width of the content Block Elements: Start a new line and take a full width of the available space. We can have inline elements inside block elements but can't have block elements inside inline elements </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='210' id='card-428085945'> <div class='header'> 210 </div> <div class='card-face question'> <div class='question-content'> What is the purpose of assigning ID's and Classes to elements? </div> </div> <div class='card-face answer'> <div class='answer-content'> Assigning Id's to an element allows for styling or manipulation of a single element Assigning Classes to elements allows for styling or manipulation of a group of elements sharing the same class </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='211' id='card-428492007'> <div class='header'> 211 </div> <div class='card-face question'> <div class='question-content'> How do you create an ordered list or an ordered list? </div> </div> <div class='card-face answer'> <div class='answer-content'> Ordered List: <ol></ol> Unordered List: <ul></ul> </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='212' id='card-428492071'> <div class='header'> 212 </div> <div class='card-face question'> <div class='question-content'> What new features were introduced to HTML5? </div> </div> <div class='card-face answer'> <div class='answer-content'> Video and Audio Features Header and Footer Tags Input Tags Figure and Figcaption Regular Expressions Increased Adaptability for accessibility Cryptographic Nonces </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='213' id='card-428492126'> <div class='header'> 213 </div> <div class='card-face question'> <div class='question-content'> How can you attach Javascript to an HTML File? </div> </div> <div class='card-face answer'> <div class='answer-content'> <script> content here </script> or <script src="myfile.js"></script> </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='214' id='card-428492281'> <div class='header'> 214 </div> <div class='card-face question'> <div class='question-content'> What is CSS? </div> </div> <div class='card-face answer'> <div class='answer-content'> Cascading Style Sheets are a mechanism for adding style such as fonts, colors, backgrounds to HTML files </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='215' id='card-428492367'> <div class='header'> 215 </div> <div class='card-face question'> <div class='question-content'> What are three different ways to apply CSS to HTML elements. Which one takes priority? </div> </div> <div class='card-face answer'> <div class='answer-content'> Inline: Takes priority" use the style attribute inside the HTML elements Internal: using <style> tag within the <head> section External: Using <link> in the HTML file and sourcing it to an external CSS file. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='216' id='card-428492502'> <div class='header'> 216 </div> <div class='card-face question'> <div class='question-content'> What is the CSS box model? </div> </div> <div class='card-face answer'> <div class='answer-content'> A box that wraps around every HTML element that consists of margins, borders, padding, and the actual content </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='217' id='card-428492549'> <div class='header'> 217 </div> <div class='card-face question'> <div class='question-content'> What is responsive web design? </div> </div> <div class='card-face answer'> <div class='answer-content'> Web places that look good on all devices. A responsive web design will automatically adjust for different screen sizes and viewports </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='218' id='card-428492723'> <div class='header'> 218 </div> <div class='card-face question'> <div class='question-content'> What is JavaScript? </div> </div> <div class='card-face answer'> <div class='answer-content'> A light weight and interpreted programming language with Object Oriented capabilities. Allows for client side script to interact and make dynamic changes to web pages. Runs on a single thread with an event loop handling events. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='219' id='card-428492878'> <div class='header'> 219 </div> <div class='card-face question'> <div class='question-content'> What does it mean for JavaScript to be loosely typed? </div> </div> <div class='card-face answer'> <div class='answer-content'> Variables don't necessarily need a variable typing when declared. JS automatically types a variable based on what kind of information you assign to it. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='220' id='card-428492955'> <div class='header'> 220 </div> <div class='card-face question'> <div class='question-content'> What does it mean for JavaScript to be interpreted? </div> </div> <div class='card-face answer'> <div class='answer-content'> JS does not need to be compiled to be run. It is immediately run by the browser without any conversion into another language. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='221' id='card-428493006'> <div class='header'> 221 </div> <div class='card-face question'> <div class='question-content'> What are the 8 types in JavaScript </div> </div> <div class='card-face answer'> <div class='answer-content'> undefined null boolean number bigint string symbol object </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='222' id='card-428493026'> <div class='header'> 222 </div> <div class='card-face question'> <div class='question-content'> What is type coercion in JavaScript? </div> </div> <div class='card-face answer'> <div class='answer-content'> The automatic or implicit conversion of values from one data type to another (such as strings to numbers) </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='223' id='card-428493078'> <div class='header'> 223 </div> <div class='card-face question'> <div class='question-content'> What are truthy and falsy values in JavaScript? </div> </div> <div class='card-face answer'> <div class='answer-content'> Values that are considered true/false when encountered in Boolean context. All values are truthy unless they are defined as falsy Examples of falsy values: false 0 -0 "" null undefined NaN </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='224' id='card-428493164'> <div class='header'> 224 </div> <div class='card-face question'> <div class='question-content'> What is the difference between == and === in javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> == does type conversion and compares the values (5 == "5") is true === does strict type conversion and compares values and data type (5==="5") is false </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='225' id='card-428493418'> <div class='header'> 225 </div> <div class='card-face question'> <div class='question-content'> What are the different ways to declare a variable in Javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> Let: block scoped const: block scoped and can't be reassigned var: global scope - hoisted to the top of the file </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='226' id='card-428493555'> <div class='header'> 226 </div> <div class='card-face question'> <div class='question-content'> What are callback functions in Javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> A function passed to another function as an argument because functions can be used as variables in JS. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='227' id='card-428493948'> <div class='header'> 227 </div> <div class='card-face question'> <div class='question-content'> What is the DOM? </div> </div> <div class='card-face answer'> <div class='answer-content'> Document Object Model is the representation of the HTML document in memory. It is generated and can be manipulated by web API's to change the look of the page as its being viewed. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='228' id='card-428494030'> <div class='header'> 228 </div> <div class='card-face question'> <div class='question-content'> How can I select and modify HTML elements in Javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> document.getElementById() document.getElementByClassName() document.querySelector() document.querySelectorAll() </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='229' id='card-428494155'> <div class='header'> 229 </div> <div class='card-face question'> <div class='question-content'> How can I have Javascript execute some function when a button is clicked? </div> </div> <div class='card-face answer'> <div class='answer-content'> Adding event listeners such as button.onclick() or button.addEventListener("click", function()) </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='230' id='card-428494200'> <div class='header'> 230 </div> <div class='card-face question'> <div class='question-content'> What is an EventListener and why is it used? </div> </div> <div class='card-face answer'> <div class='answer-content'> A built in function in Javascript that allows us to wait for user interaction and then run some code. Usually used on buttons, inputs, or when users type or clicks on the screen </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='231' id='card-428494227'> <div class='header'> 231 </div> <div class='card-face question'> <div class='question-content'> What is bubbling and capturing? </div> </div> <div class='card-face answer'> <div class='answer-content'> Bubbling happens when an element received an event and that event is propagated to its parent and ancestor elements in the DOM Capturing is when the event is first captured by the outermost element then propagates to the inner elements. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='232' id='card-428494269'> <div class='header'> 232 </div> <div class='card-face question'> <div class='question-content'> What is the event loop in Javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> Responsible for executing the code, collecting and processing events, and executing queued sub tasks </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='233' id='card-428494725'> <div class='header'> 233 </div> <div class='card-face question'> <div class='question-content'> What are Promises and what are they used for? </div> </div> <div class='card-face answer'> <div class='answer-content'> The object that represents the eventual completion or failure of an asynchronous process and its result. Stores a value and "promises" to use that data later. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='234' id='card-428494800'> <div class='header'> 234 </div> <div class='card-face question'> <div class='question-content'> What do Async and Await do in Javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> Async are tags you can use on methods and processes inside methods to enable promise based behavior. await makes javascript wait until the promise is settles and returns the result. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='235' id='card-428494833'> <div class='header'> 235 </div> <div class='card-face question'> <div class='question-content'> What are features introduced in javascript version ES6? </div> </div> <div class='card-face answer'> <div class='answer-content'> Const Let Arrow functions Template Literals Default Parameters Object and Array Destructing Classes Rest Parameter Spread Operator </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='236' id='card-428494865'> <div class='header'> 236 </div> <div class='card-face question'> <div class='question-content'> What are arrow functions? </div> </div> <div class='card-face answer'> <div class='answer-content'> A more concise way for writing functions hello = () => return "hello world" </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='237' id='card-428494986'> <div class='header'> 237 </div> <div class='card-face question'> <div class='question-content'> What are template literals? </div> </div> <div class='card-face answer'> <div class='answer-content'> A form of making strings that allow creating multiple line strings more easily and uses place holders to embed variables in a string. Encase your string in backticks and interpolate your variables with ${} </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='238' id='card-428495012'> <div class='header'> 238 </div> <div class='card-face question'> <div class='question-content'> What is a closure in Javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> Makes it possible for a function to have "private" variables. It allows a function to have access to the parent scope, even after the parent function has closed </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='239' id='card-428495053'> <div class='header'> 239 </div> <div class='card-face question'> <div class='question-content'> What is the fetch API? </div> </div> <div class='card-face answer'> <div class='answer-content'> A promise-based interface for fetching resources by making HTTP requests to servers from the web browsers. We can use the FETCH() method, it will allow us to fetch data from different places and work with the fetched data. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='240' id='card-428495105'> <div class='header'> 240 </div> <div class='card-face question'> <div class='question-content'> What is Node.js and why do we use it? How is it different from out previous way of running Javascript? </div> </div> <div class='card-face answer'> <div class='answer-content'> Node.js is a server side way of running Javascript code, it allows us to use JS on both front and backends. Without Node, JS is run only on a client's web browser </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='241' id='card-428495131'> <div class='header'> 241 </div> <div class='card-face question'> <div class='question-content'> What is NPM? </div> </div> <div class='card-face answer'> <div class='answer-content'> A dependency management tool that allows us to easily install the packages needed to run a program with Node.js. It stands for Node Package Manager. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='242' id='card-428495169'> <div class='header'> 242 </div> <div class='card-face question'> <div class='question-content'> What is the package.json file? </div> </div> <div class='card-face answer'> <div class='answer-content'> It lists all of the dependencies and their versions that are needed to develop and run JS projects. It is used by NPM </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='243' id='card-428495255'> <div class='header'> 243 </div> <div class='card-face question'> <div class='question-content'> What is Typescript and why do we use it? </div> </div> <div class='card-face answer'> <div class='answer-content'> It is a superset of Javascript and adds types to Javascript. By allowing types, TS helps to identify errors in the code at compile time. It uses compile time checking </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='244' id='card-428495284'> <div class='header'> 244 </div> <div class='card-face question'> <div class='question-content'> What is transpilation? What command is used to transpile Typescript? </div> </div> <div class='card-face answer'> <div class='answer-content'> It is compiling Typescript to Javascript and its various versions. The command is npx tsc </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='245' id='card-428495387'> <div class='header'> 245 </div> <div class='card-face question'> <div class='question-content'> What types does Typescipt introduce that Javascript does not have? </div> </div> <div class='card-face answer'> <div class='answer-content'> Typescript is a syntactic superset of Javascript which adds static typing. It adds syntax on top of Javascript which allows developers to add types </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='246' id='card-428495441'> <div class='header'> 246 </div> <div class='card-face question'> <div class='question-content'> What features does Typescript introduce other than strong typing? </div> </div> <div class='card-face answer'> <div class='answer-content'> Allows for stronger OOP through the introduction of interfaces and access modifiers Support classes and other OOP concepts Provides interface, which allow you to define contracts that describe the expected shape of the object Decorators: TS equivalent of annotations in Java </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='247' id='card-428495487'> <div class='header'> 247 </div> <div class='card-face question'> <div class='question-content'> Why would we use interfaces in Typescript? </div> </div> <div class='card-face answer'> <div class='answer-content'> Allows users to define their own objects. The compiler uses interfaces for Type checking to check if the object has a specific structure or not. (duck typing or structural subtyping) </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='248' id='card-428495505'> <div class='header'> 248 </div> <div class='card-face question'> <div class='question-content'> What is a decorator? </div> </div> <div class='card-face answer'> <div class='answer-content'> A function that we use to attach metadata to a class declaration, method, accessor, property, or parameter. Such as @Component, @Input, @Output </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='249' id='card-428495541'> <div class='header'> 249 </div> <div class='card-face question'> <div class='question-content'> What is a component in Angular? </div> </div> <div class='card-face answer'> <div class='answer-content'> A building block used to create out application, which allows to break down an application into smaller and reusable parts. Easier to maintain and update. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='250' id='card-428495572'> <div class='header'> 250 </div> <div class='card-face question'> <div class='question-content'> What files does a component contain? </div> </div> <div class='card-face answer'> <div class='answer-content'> component.css component.html component.spec.ts component.ts </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='251' id='card-428495655'> <div class='header'> 251 </div> <div class='card-face question'> <div class='question-content'> What is a service in Angular and what is special about them? </div> </div> <div class='card-face answer'> <div class='answer-content'> A class that is used for fetching data from the server, validating user input, or logging directly to the console. Containing logic that we would like to separate from component specific logic Can be injected into a class to helps maintain their singleton model thus they are marked with the @Injectable annotation. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='252' id='card-428495717'> <div class='header'> 252 </div> <div class='card-face question'> <div class='question-content'> What is a module in Angular? </div> </div> <div class='card-face answer'> <div class='answer-content'> A mechanism to group component, directives, pipes, and services that are related, in such a way that can be combined with other modules to create an application Each Angular application has to have a root module @NgModule </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='253' id='card-428495744'> <div class='header'> 253 </div> <div class='card-face question'> <div class='question-content'> How do you set up a new Angular app using the Angular CLI? </div> </div> <div class='card-face answer'> <div class='answer-content'> npm install -g @angular/cli cd folder_path ng new project_name </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='254' id='card-428495755'> <div class='header'> 254 </div> <div class='card-face question'> <div class='question-content'> How do you generate a new angular component using the Angular CLI? </div> </div> <div class='card-face answer'> <div class='answer-content'> ng g c component_name </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='255' id='card-428495805'> <div class='header'> 255 </div> <div class='card-face question'> <div class='question-content'> What is a Single Page Application and what are the benefits/downsides of using an SPA? </div> </div> <div class='card-face answer'> <div class='answer-content'> A web design pattern where instead of navigation links going to separate pages, the routes will change the components that are displaced on a single page. Components are loaded up front so navigation on a website is faster. However the first time the page loads it will take much longer. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='256' id='card-428495881'> <div class='header'> 256 </div> <div class='card-face question'> <div class='question-content'> What is routing? How do you create a new route? </div> </div> <div class='card-face answer'> <div class='answer-content'> A way to change what is displayed on an SPA to simulate page navigation. { path: 'home', component: HomeComponent } </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='257' id='card-428495894'> <div class='header'> 257 </div> <div class='card-face question'> <div class='question-content'> What is a route guard? </div> </div> <div class='card-face answer'> <div class='answer-content'> Determines if a user can access a route, for example a user must log in to see their account details </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='258' id='card-428495911'> <div class='header'> 258 </div> <div class='card-face question'> <div class='question-content'> What does it mean for components to be eagerly loaded? </div> </div> <div class='card-face answer'> <div class='answer-content'> The component is loaded into cache when the page is first accessed instead of when the component is to be displayed on the page </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='259' id='card-428495953'> <div class='header'> 259 </div> <div class='card-face question'> <div class='question-content'> What are lifecycle hooks in Angular? </div> </div> <div class='card-face answer'> <div class='answer-content'> Methods in Angular to tap into different phases of a components life. They allow you to perform actions at specific points during the components lifecycle, such as initialization, change detection, and cleanup </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='260' id='card-428495964'> <div class='header'> 260 </div> <div class='card-face question'> <div class='question-content'> When does ngOnInit run? </div> </div> <div class='card-face answer'> <div class='answer-content'> After angular has initialized all data bound properties for additional initialization </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='261' id='card-428495977'> <div class='header'> 261 </div> <div class='card-face question'> <div class='question-content'> When does ngOnChange run? </div> </div> <div class='card-face answer'> <div class='answer-content'> When angular sets or resets data bound input properties </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='262' id='card-428496028'> <div class='header'> 262 </div> <div class='card-face question'> <div class='question-content'> When does ngOnDestroy run? </div> </div> <div class='card-face answer'> <div class='answer-content'> Just before angular destroys a component or directive for cleanup to avoid memory leaks </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='263' id='card-428496151'> <div class='header'> 263 </div> <div class='card-face question'> <div class='question-content'> What is property binding, and its syntax? </div> </div> <div class='card-face answer'> <div class='answer-content'> A one way data binding technique in Angular used to bind DOM element property to a component's property. This allows the components property to be reflected in the DOM [property]="expression" </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='264' id='card-428496180'> <div class='header'> 264 </div> <div class='card-face question'> <div class='question-content'> What is event binding and its syntax? </div> </div> <div class='card-face answer'> <div class='answer-content'> One way data binding technique used to bind a DOM elements even to a method in the component. Allows the component to respond to user interactions or events (event)="methodName()" </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='265' id='card-428496212'> <div class='header'> 265 </div> <div class='card-face question'> <div class='question-content'> What is 2-way data binding and its syntax? </div> </div> <div class='card-face answer'> <div class='answer-content'> A combination of property binding and event binding, allowing the components to update the DOM property, and the DOM's property to update the components property. This enables a seamless synchronization between the component and the view. [(ngModel)]="property" </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='266' id='card-428496238'> <div class='header'> 266 </div> <div class='card-face question'> <div class='question-content'> What are event emitters for? </div> </div> <div class='card-face answer'> <div class='answer-content'> Used to emit custom events from a child component to a parent component. They are usually implemented using the EventEmitter class. It enables a child component to communicate with its parent component by emitting events and sending data </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='267' id='card-428496309'> <div class='header'> 267 </div> <div class='card-face question'> <div class='question-content'> What is interpolation and its syntax? </div> </div> <div class='card-face answer'> <div class='answer-content'> A special syntax that Angular converts into property binding. It is used for one way data binding and displays a component property in the respective view template. It is an alternative to property binding and can be used to display strings, numbers, dates, arrays, lists or maps. <h3>Current customer: {{ currentCustomer }}</h3> </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='268' id='card-428496748'> <div class='header'> 268 </div> <div class='card-face question'> <div class='question-content'> What do structural directives do in Angular? </div> </div> <div class='card-face answer'> <div class='answer-content'> Responsible for manipulating the DOM structure by adding, removing, or modifying elements. They usually change the layout of the structure of the view based on some condition </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='269' id='card-428496776'> <div class='header'> 269 </div> <div class='card-face question'> <div class='question-content'> What does ngIf do? </div> </div> <div class='card-face answer'> <div class='answer-content'> Used to conditionally render a part of the DOM based on a given expression. If the expression evaluates to true, the element and its content are added to the DOM and vice versa </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='270' id='card-428496806'> <div class='header'> 270 </div> <div class='card-face question'> <div class='question-content'> What does ngFor do? </div> </div> <div class='card-face answer'> <div class='answer-content'> Used for rendering a list of items. It iterates over a collection of elements like an array, and creates a DOM element for each item in the collection. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='271' id='card-428496849'> <div class='header'> 271 </div> <div class='card-face question'> <div class='question-content'> What do attribute directives do in Angular? </div> </div> <div class='card-face answer'> <div class='answer-content'> Used to change the appearance or behavior of a DOM element, component, or another directive. They're applied as attributes to elements in the template and can manipulate the properties of those elements </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='272' id='card-428496864'> <div class='header'> 272 </div> <div class='card-face question'> <div class='question-content'> What are pipes used for? </div> </div> <div class='card-face answer'> <div class='answer-content'> Used to transform data before displaying it in the view. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='273' id='card-428496932'> <div class='header'> 273 </div> <div class='card-face question'> <div class='question-content'> Can you describe the pub/sub design? </div> </div> <div class='card-face answer'> <div class='answer-content'> The publish/subscribe design is a pattern used in applications to send requests for data by a subscriber who receives data from a publisher </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='274' id='card-428497062'> <div class='header'> 274 </div> <div class='card-face question'> <div class='question-content'> What are observables? </div> </div> <div class='card-face answer'> <div class='answer-content'> Objects used in the RxJ (Reactive Extensions for Javascript) library to handle asynchronous data streaming </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='275' id='card-428497205'> <div class='header'> 275 </div> <div class='card-face question'> <div class='question-content'> How do you use the HTTPClient? </div> </div> <div class='card-face answer'> <div class='answer-content'> Handles data input from users and sends them as requests to a backend server. Implemented by: importing the module Importing the module in the "ngModule" imports array` </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='276' id='card-428497260'> <div class='header'> 276 </div> <div class='card-face question'> <div class='question-content'> How do you pass data from a parent component to a child component in Angular? </div> </div> <div class='card-face answer'> <div class='answer-content'> Prepare a property in the child component using the @Input() annotation Bind a property that exists in the parent to the child component property </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='277' id='card-428497294'> <div class='header'> 277 </div> <div class='card-face question'> <div class='question-content'> How do you pass data from a child component to a parent component in Angular? </div> </div> <div class='card-face answer'> <div class='answer-content'> Prepare the parent component to recieve data using the @Output() decorator Bind an event to the child component that emits data using an EventEmitter </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='278' id='card-428497308'> <div class='header'> 278 </div> <div class='card-face question'> <div class='question-content'> How would you maintain some variable globally across an Angular app? </div> </div> <div class='card-face answer'> <div class='answer-content'> Export a constant </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='279' id='card-430005360'> <div class='header'> 279 </div> <div class='card-face question'> <div class='question-content'> What is Spring? </div> </div> <div class='card-face answer'> <div class='answer-content'> A Java platform that provides infrastructure support to develop Java applications. Developers can focus on the application itself while Spring manages the infrastructure. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='280' id='card-430005542'> <div class='header'> 280 </div> <div class='card-face question'> <div class='question-content'> What are some Spring modules? </div> </div> <div class='card-face answer'> <div class='answer-content'> The core container: Consists of the Bean The ORM Module (JPA) for data access The Web-Servlet modules which provides Spring's MVC implementation for web applications </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='281' id='card-430005794'> <div class='header'> 281 </div> <div class='card-face question'> <div class='question-content'> What is a Bean? </div> </div> <div class='card-face answer'> <div class='answer-content'> Objects managed by Spring that live in Spring's application context and can be injected into an existing class. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='282' id='card-430005995'> <div class='header'> 282 </div> <div class='card-face question'> <div class='question-content'> What is Dependency Injection? </div> </div> <div class='card-face answer'> <div class='answer-content'> Injecting objects into other objects. Used to connect a class with its dependencies. Methods to inject dependencies are Constructor Injection and Setter Injection </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='283' id='card-430006342'> <div class='header'> 283 </div> <div class='card-face question'> <div class='question-content'> What is the Spring IOC Container? </div> </div> <div class='card-face answer'> <div class='answer-content'> Inversion of Control is the transfer of control of objects or portions of a program to a container or framework. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='284' id='card-430006772'> <div class='header'> 284 </div> <div class='card-face question'> <div class='question-content'> What is the difference between the BeanFactory and ApplicationContext? </div> </div> <div class='card-face answer'> <div class='answer-content'> BeanFactory provides the configuration framework and the basic functionality. It is a parent interface of ApplicationContext ApplicationContext adds additional functionality like easy integration with Spring AOP features, message resource handling event propogation, and contexts specific to the application layer like WebApplicationContext. ApplicationContext extends BeanFactory and loads the beans eagerly on startup. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='285' id='card-430006902'> <div class='header'> 285 </div> <div class='card-face question'> <div class='question-content'> What does the @Bean annotation do? </div> </div> <div class='card-face answer'> <div class='answer-content'> A method level annotation and a direct analogue of the XML element. It marks a factory method which instantiates a Spring bean. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='286' id='card-430007023'> <div class='header'> 286 </div> <div class='card-face question'> <div class='question-content'> What does the @Component annotation do? </div> </div> <div class='card-face answer'> <div class='answer-content'> The main Stereotype Annotation. It is a class level annotation and used across the application to mark the beans as Spring's managed components </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='287' id='card-430007315'> <div class='header'> 287 </div> <div class='card-face question'> <div class='question-content'> What does the @Autowired annotation do? </div> </div> <div class='card-face answer'> <div class='answer-content'> Used for dependency injection. We can use this annotation with a constructor, setter, or field injection. Places an instance of one bean into the desired field in an instance of another bean. </div> </div> </div> <div class='flashcard-row thin-card is-blurrable' data-a-button-url='/sign-up?packId=21254542&returnTo=%2Fpacks%2F21254542%2Fsubscribe&source=preview-card&subject=Revature' data-card-is-blurrable data-number='288' id='card-430007408'> <div class='header'> 288 </div> <div class='card-face question'> <div class='question-content'> What are different ways to perform dependcy injection using Autowiring? (Places to put the autowired annotation) </div> </div> <div class='card-face answer'> <div class='answer-content'> Field Injection Constructor Injection Setter Injection </div> </div> </div> </div> </div> </div> <div class='flashcards-sidebar'> <div class='sidebar-header'> <div class='react-component' id='flashcards-search-bar'> <div class='placeholder market-search-bar' id='flashcards-search-bar-placeholder'></div> </div> </div> <div class='sidebar-content'> <p class='deck-subject-heading'> <a class="decks-in-subject-link" href="/packs/revature-21254542"><span class="pack-name">Revature</span> (2 decks) </a></p> <ul class='deck-list-items'> <a class='deck-link selected' href='/flashcards/study-guide-12839041/packs/21254542'> <li class='deck-list-item'>Study Guide</li> </a> <a class='deck-link ' href='/flashcards/exam-questions-13025175/packs/21254542'> <li class='deck-list-item'>Exam Questions</li> </a> </ul> </div> </div> </div> <div id='tooltip-controller'></div> <div data='{"packId":21254542,"source":"spaced-repetition-modal","subject":"Revature","resources":{"deckId":12839041,"packId":21254542},"returnTo":"/packs/21254542/subscribe"}' id='spaced-repetition-modal-controller'></div> <div id='banner-controller'></div> <div id='dialog-modal-controller'></div> <div class='band band-footer'> <div class='footer-main'> <ul class='sections'> <li class='section key-links'> <p class='section-heading'> Key Links </p> <ul class='options-list'> <li class='option'> <a id="footer-pricing-link" class="option-link" href="/pricing?paywall=upgrade">Pricing</a> </li> <li class='option'> <a class="option-link" href="/companies">Corporate Training</a> </li> <li class='option'> <a class="option-link" href="/teachers">Teachers & Schools</a> </li> <li class='option'> <a class="option-link" target="_blank" rel="nofollow noopener noreferrer" href="https://itunes.apple.com/us/app/brainscape-smart-flashcards/id442415567?mt=8">iOS App</a> </li> <li class='option'> <a class="option-link" target="_blank" rel="nofollow noopener noreferrer" href="https://play.google.com/store/apps/details?id=com.brainscape.mobile.portal">Android App</a> </li> <li class='option'> <a class="option-link" target="_blank" rel="noopener" href="https://www.brainscape.com/faq">Help Center</a> </li> </ul> </li> <li class='section subjects'> <p class='section-heading'> Subjects </p> <ul class='options-list'> <li class='option'> <a class="option-link" href="/subjects/medical-nursing">Medical & Nursing</a> </li> <li class='option'> <a class="option-link" href="/subjects/law">Law Education</a> </li> <li class='option'> <a class="option-link" href="/subjects/foreign-languages">Foreign Languages</a> </li> <li class='option'> <a class="option-link" href="/subjects-directory/a">All Subjects A-Z</a> </li> <li class='option certified-classes'> <a class="option-link" href="/learn">All Certified Classes</a> </li> </ul> </li> <li class='section company'> <p class='section-heading'> Company </p> <ul class='options-list'> <li class='option'> <a class="option-link" href="/about">About Us</a> </li> <li class='option'> <a target="_blank" class="option-link" rel="nofollow noopener noreferrer" href="https://brainscape.zendesk.com/hc/en-us/articles/115002370011-Can-I-earn-money-from-my-flashcards-">Earn Money!</a> </li> <li class='option'> <a target="_blank" class="option-link" href="https://www.brainscape.com/academy">Academy</a> </li> <li class='option'> <a target="_blank" class="option-link" href="https://brainscapeshop.myspreadshop.com/all">Swag Shop</a> </li> <li class='option'> <a target="_blank" rel="nofollow noopener" class="option-link" href="/contact">Contact</a> </li> <li class='option'> <a target="_blank" rel="nofollow noopener" class="option-link" href="/terms">Terms</a> </li> <li class='option'> <a target="_blank" class="option-link" href="https://www.brainscape.com/academy/brainscape-podcasts/">Podcasts</a> </li> <li class='option'> <a target="_blank" class="option-link" href="/careers">Careers</a> </li> </ul> </li> <li class='section find-us'> <p class='section-heading'> Find Us </p> <ul class='social-media-list'> <li class='option twitter-badge group'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://twitter.com/Brainscape"><img data-src="/pks/images/shared/twitterx-af917e8b474ed7c95a19.svg" alt="twitter badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="24" height="24" /></a> </li> <li class='option linkedin-badge group'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://www.linkedin.com/company/brainscape/"><img data-src="/pks/images/shared/linkedin-2f15819658f768056cef.svg" alt="linkedin badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="24" height="24" /></a> </li> <li class='option facebook-badge group'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://www.facebook.com/Brainscape"><img data-src="/pks/images/shared/facebook-1598a44227eabc411188.svg" alt="facebook badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="24" height="24" /></a> </li> <li class='option youtube-badge group'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://www.youtube.com/c/BrainscapeNY"><img data-src="/pks/images/shared/youtube-7f2994b2dc1891582524.svg" alt="youtube badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="24" height="24" /></a> </li> <li class='option pinterest-badge group'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://www.pinterest.com/brainscape/"><img data-src="/pks/images/shared/pinterest-04f51aa292161075437b.svg" alt="pinterest badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="24" height="24" /></a> </li> <li class='option tiktok-badge group'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://www.tiktok.com/@brainscapeu"><img data-src="/pks/images/shared/tiktok-644cf4608bd73fbbb24f.svg" alt="tiktok badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="24" height="24" /></a> </li> <li class='option insta-badge group'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://www.instagram.com/brainscape/"><img data-src="/pks/images/shared/insta-210cc2d059ae807961d2.svg" alt="insta badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="24" height="24" /></a> </li> </ul> <div class='get-the-app'> <div class='qr-code'> <img data-src="https://www.brainscape.com/assets/cms/public-views/shared/shortio-from-homepage.png" alt="QR code" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="130" height="130" /> </div> <div class='app-badges'> <div class='badge apple-badge'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://apps.apple.com/us/app/brainscape-smart-flashcards/id442415567"><img data-src="/pks/images/shared/apple-badge-b6e4f380fb879821d601.svg" alt="apple badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="124" height="50" /></a> </div> <div class='badge android-badge'> <a rel="nofollow noopener noreferrer" target="_blank" class="option-link" href="https://play.google.com/store/apps/details?id=com.brainscape.mobile.portal&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1"><img data-src="/pks/images/shared/android-badge-a2251833dc7f6ca8879c.svg" alt="android badge" class="lazy-load" src="/pks/images/shared/placeholder-2f8e0834f3c4456dc1cc.jpg" width="124" height="50" /></a> </div> </div> </div> </li> </ul> </div> <div class='footer-blurb'> Brainscape helps you reach your goals faster, through stronger study habits. <br> © 2025 Bold Learning Solutions. <a class="option-link" href="/terms">Terms and Conditions</a> </div> </div> <script> if (typeof window.__REACT_DEVTOOLS_GLOBAL_HOOK__ === 'object') { __REACT_DEVTOOLS_GLOBAL_HOOK__.inject = function() {}; } </script> <script> window.addEventListener('load', () => { setTimeout(() => { const script = document.createElement('script'); script.src = "/pks/js/public-deck-cards-page-7b7ec236709c09bce023.js"; script.defer = true; document.body.appendChild(script); }, 0); }); </script> <script src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js" defer="defer"></script> <script> document.addEventListener("mainSharedready", () => { GaHelper.setGaDimension("dimension1","No"); }); </script> <script type='application/ld+json'> {"@context":"https://schema.org/","@type":"Quiz","about":{"@type":"Thing","name":"Study Guide"},"hasPart":[{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is Compilation","acceptedAnswer":{"@type":"Answer","text":"The process a computer takes to convert high level language to machine code"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does it mean for Java to be strongly typed?","acceptedAnswer":{"@type":"Answer","text":"Every variable must be declared with a data type"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are primitive types?","acceptedAnswer":{"@type":"Answer","text":"Specifies the size and type of variable values and has no additional methods"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the 8 primitive types in Java","acceptedAnswer":{"@type":"Answer","text":"byte short int long float double boolean char"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a method?","acceptedAnswer":{"@type":"Answer","text":"A collection of statements grouped together to perform an operation"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does 'return' do?","acceptedAnswer":{"@type":"Answer","text":"Finishes the execution of a method and returns a value"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a return type?","acceptedAnswer":{"@type":"Answer","text":"A data type of the value returned from the method"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does the return type 'void' mean?","acceptedAnswer":{"@type":"Answer","text":"A method doesn't return a value or contain a return statement"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a method parameter?","acceptedAnswer":{"@type":"Answer","text":"Values passed into a method to manipulate"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the different boolean operators?","acceptedAnswer":{"@type":"Answer","text":"== Equal to != Not equal to \u003e Greater than \u003c Less than \u003e= Greater than or equal to \u003c= Less than or equal to \u0026\u0026 Logical and Logical or ! Logical not"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are Strings in Java?","acceptedAnswer":{"@type":"Answer","text":"Sequences of characters represented as an instance of the java.lang.String class"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a Stack Trace?","acceptedAnswer":{"@type":"Answer","text":"List of method calls the application was in the middle of when an Exception was thrown"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the main method?","acceptedAnswer":{"@type":"Answer","text":"Starting point for the JVM (Java Virtual Machine) to start execution of a Java program"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the Syntax of the main method?","acceptedAnswer":{"@type":"Answer","text":"public static void main( String args[] ) { {"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is OOP?","acceptedAnswer":{"@type":"Answer","text":"Object Oriented Programming. It organized software design around Data or Objects, rather than functions and logic"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are Objects?","acceptedAnswer":{"@type":"Answer","text":"Instances of a class"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What makes an Object different from a Primitive Type?","acceptedAnswer":{"@type":"Answer","text":"Objects are user-defined, default value is null, kept in a heap, and the reference variable is kept in the stack Primitive Types are pre-defined, can't contain null value as the default, and kept in the stack"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the relationship between a Class and an Object in Java?","acceptedAnswer":{"@type":"Answer","text":"Objects are the instances of Classes. Classes are the \"blueprint\" for Objects"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are constructors?","acceptedAnswer":{"@type":"Answer","text":"Special methods used to initialize Objects"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the default constructor?","acceptedAnswer":{"@type":"Answer","text":"Java compiler automatically creates a no arg constructor if we do not create any constructors"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is an Array?","acceptedAnswer":{"@type":"Answer","text":"A collection of similar data elements stored at contiguous memory location. Can be accessed directly by it's index value"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I get an element of an Array?","acceptedAnswer":{"@type":"Answer","text":"Calling the index number. String[] fruit = {apple, orange, bananan}; System.out.println(fruit[1]); // gets element \"orange\""}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the different flow control statements in Java?","acceptedAnswer":{"@type":"Answer","text":"if statements for loops while loops do while loops switch statements"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How is a for loop written in Java?","acceptedAnswer":{"@type":"Answer","text":"for(int i = 0; i \u003c 5; i++){ some code }"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between ++i and i++","acceptedAnswer":{"@type":"Answer","text":"++i pre-increment: we want to increment the value by one then use it i++ post-increment: we want to use the value then increment it by one"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between a while loop and a do-while loop?","acceptedAnswer":{"@type":"Answer","text":"A do while loop runs through the loop at least once before checking the condition. A while loop must pass the condition before running through the loop"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are break statements?","acceptedAnswer":{"@type":"Answer","text":"They are used to terminate the enclosing loop"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are continue statements?","acceptedAnswer":{"@type":"Answer","text":"They skip the rest of the loop where it is declared and then executes another iteration of the loop"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is JUnit?","acceptedAnswer":{"@type":"Answer","text":"A unit testing framework for Java with the idea of \"first testing then coding\""}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a unit test?","acceptedAnswer":{"@type":"Answer","text":"Individual units of source code that are tested to determine if they are fit for use"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are some annotations used in JUnit?","acceptedAnswer":{"@type":"Answer","text":"@test @Before @BeforeClass @After @AfterClass @Ignores @Test(timeout=500) @Test(expected=IllegalArgumentException.class)"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is TDD?","acceptedAnswer":{"@type":"Answer","text":"Test-Driven Development: A process of relying on software requirements converted to test cases before being developed"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are Exceptions in Java?","acceptedAnswer":{"@type":"Answer","text":"Unwanted or unexpected events that occur during the execution of a program"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How are Errors different from Exceptions?","acceptedAnswer":{"@type":"Answer","text":"Error is used to indicate errors having to do with the runtime environment itself. They indicate a serious problem that a reasonable app should not try to catch. Exceptions indicate conditions that an application might try to catch."}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between checked and unchecked Exceptions?","acceptedAnswer":{"@type":"Answer","text":"Checked exceptions are checked at compile time by the compiler. You should use the 'throws' keyword. Unchecked exceptions are not checked at compile time and is up to the programmer to specify how to catch these exceptions"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What might cause a NullPointerException?","acceptedAnswer":{"@type":"Answer","text":"When an application attempts to use an object reference that has a null value"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Is ArrayIndexOutOfBoundsException a runtime exception?","acceptedAnswer":{"@type":"Answer","text":"Yes, the compiler does not check for this error during compilation"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Is FileNotFoundException a runtime exception?","acceptedAnswer":{"@type":"Answer","text":"No, it is checked during compilation so it is a checked exception"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I find where an exception was thrown in a program?","acceptedAnswer":{"@type":"Answer","text":"In the exception stacktrace"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does 'throws' do?","acceptedAnswer":{"@type":"Answer","text":"Indicates what exception type may be thrown by a method"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does try/catch do?","acceptedAnswer":{"@type":"Answer","text":"Tries a risky block of code that might cause an exception and catches the exception to continue the program instead of terminating"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Can I have multiple catch blocks? Multiple try blocks?","acceptedAnswer":{"@type":"Answer","text":"Yes but each try block must be followed by a catch"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are Collections in Java?","acceptedAnswer":{"@type":"Answer","text":"Group of individual objects which are represented as a single unit"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between a List and a Set?","acceptedAnswer":{"@type":"Answer","text":"Lists are indexed and allows duplicates Sets are unordered and can't have any duplicates"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between a Set and a Map?","acceptedAnswer":{"@type":"Answer","text":"Both don't allow duplicates and are unordered, however Maps allow any number of null values while Sets can only contain one"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between a Stack and a Queue?","acceptedAnswer":{"@type":"Answer","text":"Stacks are Last In First Out: the elements inserted at the last index is the first element to come out of the list Queues are First In First Out: elements inserted at the first position are the first to come out"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between ArrayList and LinkedList?","acceptedAnswer":{"@type":"Answer","text":"ArrayLists store only similar data types and LinkedLists can store any type of data"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Are Maps part of the Collection Interface?","acceptedAnswer":{"@type":"Answer","text":"No since map require key-value pairs"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a wrapper class?","acceptedAnswer":{"@type":"Answer","text":"Class whos Object wraps or contains primitive data types"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What do access modifiers do?","acceptedAnswer":{"@type":"Answer","text":"Sets access levels for classes, variables, methods, and constructors"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the 4 access modifiers?","acceptedAnswer":{"@type":"Answer","text":"Default: When not explicitly declared, available to any other class in the same package Private: Access only within the declared class itself Protected: Can be accessed only by the subclasses in other package or any class within the same package of the protected member Public: Can be accessed from any other class"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the non-access modifiers in Java?","acceptedAnswer":{"@type":"Answer","text":"Static Final Abstract Synchronized/Volitile"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does Static do?","acceptedAnswer":{"@type":"Answer","text":"Creates methods that will exist independently of any instances created for the class"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does Final do?","acceptedAnswer":{"@type":"Answer","text":"Can only be explicitly initialized once and variables can't be reassigned"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is Scope in programming languages?","acceptedAnswer":{"@type":"Answer","text":"Defines where methods or variables are accessed in a program"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the different scopes in Java?","acceptedAnswer":{"@type":"Answer","text":"Class Level Method Level Block Level"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is SQL and why is it used?","acceptedAnswer":{"@type":"Answer","text":"Structured Query Language for accessing and manipulating databases"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the sublanguages of SQL?","acceptedAnswer":{"@type":"Answer","text":"DDL: Data Definition Language DML: Data Manipulation Language DRL/DQL: Data Retrieval Language/Query TCL: Transaction Query Language DCL: Data Control Language SCL: Session Control Language"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Commands for DDL (Data Definition Language)","acceptedAnswer":{"@type":"Answer","text":"Create Alter Drop Truncate Rename"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Commands for DML (Data Manipulation Language)","acceptedAnswer":{"@type":"Answer","text":"Insert Update Delete"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Commands for DRL/DQL (Data Retrieval/Query Language)","acceptedAnswer":{"@type":"Answer","text":"SELECT"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a table in SQL?","acceptedAnswer":{"@type":"Answer","text":"A collection of related data held in a database that consists of columns and rows"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are primary keys for?","acceptedAnswer":{"@type":"Answer","text":"Uniquely identifies each record in a table Must be unique and not null"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I query everything from a table?","acceptedAnswer":{"@type":"Answer","text":"SELECT FROM table"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I query only the rows that meet some criteria in a table?","acceptedAnswer":{"@type":"Answer","text":"SELECT FROM table WHERE condition"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I insert into a table?","acceptedAnswer":{"@type":"Answer","text":"INSERT INTO table (columns) VALUES (values)"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I update values in a table?","acceptedAnswer":{"@type":"Answer","text":"UPDATE table SET column = value WHERE condition"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I sort the results of a query in SQL?","acceptedAnswer":{"@type":"Answer","text":"SELECT FROM table ORDER BY column ASC/DESC"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What do aggregate functions do in SQL?","acceptedAnswer":{"@type":"Answer","text":"Performs a calculation on a set of values and returns a single value"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are some aggregate functions?","acceptedAnswer":{"@type":"Answer","text":"COUNT() MAX() MIN() AVG() ABS()"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the difference between drop, delete, and truncate?","acceptedAnswer":{"@type":"Answer","text":"DROP: Deletes an entire table DELETE: Deletes specific records from a table TRUNCATE: Removes all records from a table"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is JDBC?","acceptedAnswer":{"@type":"Answer","text":"Java Database Connectivity allows programs to access database management systems"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are the different classes/interfaces used in JDBC?","acceptedAnswer":{"@type":"Answer","text":"DriveManager Driver Statement PreparedStatement CallableStatement Connection ResultSet ResultSetMetaData"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is DAO for?","acceptedAnswer":{"@type":"Answer","text":"Data Access Object is a structural pattern that allows us to isolate the application from the persistence layer(database)"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is Mockito for?","acceptedAnswer":{"@type":"Answer","text":"Used to mock interfaces so that dummy functionality can be added to a mock interface that can be used in unit testing"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How are Mock Objects in Mockito created?","acceptedAnswer":{"@type":"Answer","text":"Writing methods to test followed by @TEST with a method for the expected results"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is HTTP?","acceptedAnswer":{"@type":"Answer","text":"HyperText Transfer Protocol is a set of rules that describe how info is exchanged and allows the client and server to communicate"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are HTTP Verbs?","acceptedAnswer":{"@type":"Answer","text":"Get Post Put Patch Delete"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is GET usually used for?","acceptedAnswer":{"@type":"Answer","text":"Retrieves a list of entities"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is POST usually used for?","acceptedAnswer":{"@type":"Answer","text":"Creating an entity"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is PUT usually used for?","acceptedAnswer":{"@type":"Answer","text":"Updating an Entity"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is PATCH usually used for?","acceptedAnswer":{"@type":"Answer","text":"Partially updating an entity"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is DELETE usually used for?","acceptedAnswer":{"@type":"Answer","text":"Deleting an entity"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are 100-level status codes for?","acceptedAnswer":{"@type":"Answer","text":"Informational response"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are 200-level status codes for?","acceptedAnswer":{"@type":"Answer","text":"Successful Requests"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are 300-level status codes for?","acceptedAnswer":{"@type":"Answer","text":"Redirection, further action needed to be taken to complete the request"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are 400-level status codes for?","acceptedAnswer":{"@type":"Answer","text":"Client side error, request contains a bad syntax"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are 500-level status codes for?","acceptedAnswer":{"@type":"Answer","text":"Server side error, Server failed to fulfill a bad request"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a path parameter?","acceptedAnswer":{"@type":"Answer","text":"Request parameters attached to a URL to point to a specific rest API resource. Appear before the question mark in the URL"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a query parameter?","acceptedAnswer":{"@type":"Answer","text":"Optional key-value pairs that appear after the question mark in the URL"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a request body?","acceptedAnswer":{"@type":"Answer","text":"Data transmitted to an HTTP transaction immediately following the headers"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a response body?","acceptedAnswer":{"@type":"Answer","text":"Data transmitted to an HTTP transaction"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are headers?","acceptedAnswer":{"@type":"Answer","text":"They let the client and server pass additional info with an HTTP request. Consists of case-insensitive name followed by : then it's value"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is JSON?","acceptedAnswer":{"@type":"Answer","text":"File format and data interchange format that uses human readable text to store and transmit data. Uses key-value pairs"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is Javalin?","acceptedAnswer":{"@type":"Answer","text":"A lightweight REST API library"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How can I design an endpoint in Javalin?","acceptedAnswer":{"@type":"Answer","text":"app.get(/url, this::methodnamehandler);"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the Context object used for in Javalin?","acceptedAnswer":{"@type":"Answer","text":"Allows you to handle an http-request"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"Can you explain the 3-layer controller-service-DAO architecture?","acceptedAnswer":{"@type":"Answer","text":"Controller: handles the navigation between different views Service: Stands on top of the persistence mechanissm to handle users requirements DAO: Encapsulates the details from the persistence layer and provides a crud interface for a single entity"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is Maven?","acceptedAnswer":{"@type":"Answer","text":"Build automation tool that adds new dependencies for building and managing projects"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What file should be changed to add new Maven dependencies?","acceptedAnswer":{"@type":"Answer","text":"pom.xml"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the Maven lifecycle?","acceptedAnswer":{"@type":"Answer","text":"validate compile test package integration test verify install deploy"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do I find and add a new dependency to Maven?","acceptedAnswer":{"@type":"Answer","text":"mvn install -"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What are foreign keys in SQL?","acceptedAnswer":{"@type":"Answer","text":"A field in one table that refers to the primary key in another table"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the referential integrity in SQL?","acceptedAnswer":{"@type":"Answer","text":"Refers to the relationship between tables. It's the logical dependency of a foreign key on a primary key"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is a constraint in SQL?","acceptedAnswer":{"@type":"Answer","text":"Rules enforced on the data columns of a table"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the NOT NULL constraint?","acceptedAnswer":{"@type":"Answer","text":"The value must be filled into that field...Can't be left blank"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is the UNIQUE constraint?","acceptedAnswer":{"@type":"Answer","text":"Makes sure the column's value is unique in the table...No duplicate values"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does GROUP BY do?","acceptedAnswer":{"@type":"Answer","text":"Groups rows that have the same values into summary rows"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What does HAVING do?","acceptedAnswer":{"@type":"Answer","text":"Used to filter the results of a GROUP BY query based on aggregate calculations"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is an alias in SQL?","acceptedAnswer":{"@type":"Answer","text":"Temporarily renaming a table or column for easier reading"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is multiplicity in SQL?","acceptedAnswer":{"@type":"Answer","text":"Specifies the number of instances of a type of data in a table?"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What the different types of multiplicity?","acceptedAnswer":{"@type":"Answer","text":"one to many zero or one to one zero or one to many"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What do you need to add to have one to many multiplicity?","acceptedAnswer":{"@type":"Answer","text":"an entity instance can be related to multiple instances of the other entities"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What do you need to add to have many to many multiplicity?","acceptedAnswer":{"@type":"Answer","text":"Entity instances can be related to multiple instances of eachother"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"How do you modify existing tables?","acceptedAnswer":{"@type":"Answer","text":"ALTER TABLE table"}},{"@context":"https://schema.org/","@type":"Question","eduQuestionType":"Flashcard","text":"What is normalization and why do we use it?","acceptedAnswer":{"@type":"Answer","text":"Process of taking a database design and apply a set of formal criteria and rules called normal forms. It reduces redundant data"}}],"educationalAlignment":[{"@type":"AlignmentObject","alignmentType":"educationalSubject","targetName":"Study Guide"}]} </script> </body> </html>