revature study

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 253

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

254 Terms

1

What is a getter/setter? What is their purpose?

Functions that modify private variables.

New cards
2

How do you select all tables in a database?

SELECT* FROM sys.Tables

New cards
3

or SELECT*FROMinformation_schema.tables

New cards
4

How do you link a style sheet to an html document?

By using the link element

New cards
5
New cards
6

Can we overload or override static methods in java?

Yes, we can overload static methods by having the same method but with different parameters in the sub class. No, we can't override a static method because static methods are done at compile time while method overriding only occurs at runtime.

New cards
7

What is override and overload?

Override is when you use the same method in a subclass but modify or add to it, while overload is when you use the same method in a subclass but you have a different number or type of parameters.

New cards
8

What is an SQL trigger?

They are stored programs that are automatically executed in response to an event, such as inserting a new row in a table.

New cards
9

Name and explain some elements in HTML

New cards
10

to create a line break,
New cards
11

to create a heading

New cards
12
used to divide the page
New cards
13

used to create a paragraph

New cards
14
to create independent self contained content from rest of page
New cards
15
used to define the header section
New cards
16
New cards
17
used to define footer Area.;
New cards
18

Tell me about a project you recently worked on?

The last major project i worked on was a website for a arts and crafts business. I had to create an ecommerce website from scratch without using a CMS or anything like that. I had to create a products page and link that through php to a mySQL database, and then display all of the products, along with the price and shipping. I then had to include the total price and integrate a third party credit card processor. I also had to create a new login portal for customers that would show recent orders, save credit card information, and allow them to change their information.

New cards
19

What is DBMS?

Database management software. It allows users to create, read, update , and delete data in a database. It stores data in files. It consists of the data, the database engine that allows data to be accessed and modified,and the database schema, which defines the database's logical structure.

New cards
20

What is RBDMS?

Relational Database Management Software.

New cards
21

It stored data into columns and rows. SQL server is an example.

New cards
22

What does SQL stand for?

Structured Query Language

New cards
23

Who determines the standards for SQL?

The American National Standards Institute

New cards
24

What are the versions of SQL?

SQL-86 to SQL:2016

New cards
25

What are users vs schemas?

A schema is collection of database objects, including tables, views, sequences, stored procedures, etc. A user owns a schema.

New cards
26

What is CSS and how does it work?

Cascading style sheets. It styles the website by describing how the HTML elements are to be displayed.

New cards
27

How do you change the background color?

New cards
28

What are the different HTMl elements

html, head, title, body

New cards
29

What is doctype used for?

It tells the browser what version of markup language is being used.

New cards
30

How can you create a button in HTML?

New cards
31

How do you comment in HTML?

<!-- This is a single line comment -->

New cards
32

What is MVC?

Model View Controller

New cards
33

it consists of three parts"

New cards
34
New cards
35

one that is the visual part that users interact with - the view,

New cards
36
New cards
37

one that represents the object being modeled, and

New cards
38
New cards
39

something that manages data between the different parts - the controller.

New cards
40

What are selectors? List some

Patterns used to select the element you want to change. .class, #id, :visited.

New cards
41

What is a wireframe?

A visual guide that represents the skeletal framework of a website. Wireframes are created for the purpose of arranging elements to best accomplish a particular purpose.

New cards
42

What are HTML form methods?

Specifies which http protocol should be used when submitting form data. The options are Get and Post.

New cards
43

What is the box model?

A box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content.

New cards
44

How can you open a link in a new tab/browser window?

New cards
45

What is the correct HTML for making a drop-down list?

the
New cards
46

Which input type defines a slider control?

New cards
47

Which HTML element is used to display a scalar measurement within a range?

The element
New cards
48

What is the syntax for referring to an external style sheet?

New cards
49

Which CSS property is used to change the text color of an element?

color

New cards
50

How do you make each word in a text start with a capital letter?

text-transform: capitalize;

New cards
51

What is the javascript syntax to change an element of an HTML page?

document.getElementById("demo").innerHTML = "Hello World!";

New cards
52

When using the padding property; are you allowed to use negative values?

No

New cards
53

How do you select all p elements inside a div element?

div p;

New cards
54

What is the syntax for creating a javascript array?

var colors = ["red", "green", "blue"];

New cards
55

What is a list, set, and map? When should you use each?

List interface is a ordered collection that allows duplicate and null values. We can get elements by index.

New cards
56
New cards
57

When there is a need to access elements frequently using the index, or when you want the elements stored to maintain the insertion order then use list.

New cards
58
New cards
59

A Set is an unordered collection that won't allow duplicate elements. It allows null elements, but we can't get elements by key or index .

New cards
60
New cards
61

When the collection should be of unique elements and no duplicates are tolerated, then go with "Set"

New cards
62

.

New cards
63

Map interface is a unordered collection that allows duplicate elements but not duplicate keys. It allows null elements but not null keys.

New cards
64
New cards
65

When the data stored should be in the form of key and value then use map.

New cards
66

Why doesn't java support multiple inheritance?

It supports it, just through interfaces. It doesn't support multiple inheritance in order to avoid the complexity and conflicts that result. For example, if more than one superclass has the same base class then the subclass will receive 2 copies of the same attributes and methods, leading to ambiguity.

New cards
67

Is Javascript case sensitive?

Yes

New cards
68

Why are strings immutable?

When a string is created and if the string already exists in the pool, the reference of the existing string will be returned, instead of creating a new object and returning its reference. If a string is mutable, changing the string with one reference will lead to the wrong value for the other references.

New cards
69

It would also lead to security issues, since strings are often used in the parameters for database connections, opening a file, network connections, etc. If strings were mutable those values could be changed and it would be a security risk.

New cards
70
New cards
71

It would also make hashmaps much less efficient, since they would have to check the hashcode every time it was used.

New cards
72

what is a try, catch and what purpose does finally serve?

A try statement is used to catch exceptions that might be thrown as your program executes. You should use a try statement whenever you use a statement that might throw an exception

New cards
73

A try block is always followed by a catch block, which handles the exception that occurs in the try block.

New cards
74

A finally block contains all the crucial statements that must be executed whether an exception occurs or not.

New cards
75

type an object declaration

String mystring = new String();

New cards
76

What is normalization?

A process which involves organizing the fields and tables of a database to eliminate data redundancy and Insertion, Update and Deletion Anomalies.

New cards
77

Why is the main method static in java?

Static allows main() to be called before an object of the class has been created. This is necessary because main() is called by the JVM before any objects are made. Since it is static it can be directly invoked via the class.

New cards
78

What does static mean?

Means that the variable or function is shared between all instances of that class as it belongs to the type, not the actual objects themselves. So if you have a variable: private static int i = 0; and you increment it ( i++ ) in one instance, the change will be reflected in all instances.

New cards
79

What are the four pillars of oop?

Abstraction,Polymorphism, Encapsulation, Inheritance

New cards
80

What is object oriented programming?

A design philosophy based on objects which contain data in attributes and code in the form of methods. Objects are an instance of a class, which is a template for creating objects.

New cards
81

What is a constructor?

a block of code similar to a method that's called when an instance of an object is created.

New cards
82

How do you create a new constructor?

public Actor(String first, String last)

New cards
83

{

New cards
84

firstName = first;

New cards
85

lastName = last;

New cards
86

}

New cards
87
New cards
88

Actor a = new Actor("Arnold", " Schwarzenegger");

New cards
89

What is inheritance? What are the different types?

The mechanism by which one class inherits the attributes and methods of another class.

New cards
90
New cards
91

Single Inheritance: A Subclass inherits methods and attributes from one superclass.

New cards
92
New cards
93

Multilevel Inheritance: a derived class will be inheriting a base class and the derived class also acts as the base class for other class.

New cards
94
New cards
95

Hierarchical Inheritance: Multiple subclasses inherit from one superclass.

New cards
96
New cards
97

Multiple Inheritance: One class can inherit from more than one superclass. In java we must do this through interfaces.

New cards
98
New cards
99

A subclass can only have one superclass

New cards
100

Subclass doesn't inherit private fields or methods

New cards

Explore top notes

note Note
studied byStudied by 14 people
1005 days ago
4.0(1)
note Note
studied byStudied by 162 people
624 days ago
5.0(1)
note Note
studied byStudied by 16 people
122 days ago
5.0(1)
note Note
studied byStudied by 22 people
743 days ago
5.0(1)
note Note
studied byStudied by 61 people
882 days ago
4.0(1)
note Note
studied byStudied by 8 people
176 days ago
5.0(1)
note Note
studied byStudied by 10 people
898 days ago
5.0(1)
note Note
studied byStudied by 255 people
686 days ago
4.8(9)

Explore top flashcards

flashcards Flashcard (127)
studied byStudied by 31 people
911 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 19 people
266 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 8 people
784 days ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 29 people
737 days ago
5.0(2)
flashcards Flashcard (67)
studied byStudied by 9 people
837 days ago
5.0(1)
flashcards Flashcard (315)
studied byStudied by 51 people
763 days ago
5.0(4)
flashcards Flashcard (29)
studied byStudied by 15 people
379 days ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 84 people
17 days ago
5.0(1)
robot