Week 1 Flashcards

(166 cards)

1
Q

Infrastructure as a Service (IaaS)

A

a self-service model for managing remote data center infrastructures.

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

Platform as a Service (PaaS)

A

allows organizations to build, run and manage applications without the IT infrastructure. This makes it easier and faster to develop, test and deploy applications.

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

Software as a Service (SaaS)

A

replaces the traditional on-device software with software that is licensed on a subscription basis. It is centrally hosted in the cloud. A good example is Salesforce.com.

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

AWS Region Define.

A

a geographical location with a collection of availability zones mapped to physical data centers in that region.

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

AWS Availability Zone

A

a logical data center in a region available for use by any AWS customer.

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

AMI (Amazon Machine Image)

A

provides the information required to launch an instance. Think of it as a template for an EC2 Instance.

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

Security groups

A

a virtual firewall for your EC2 instances to control incoming and outgoing traffic based on their IP address.

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

___________ rules enable you to filter traffic based on protocols and port numbers.

A

Security group

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

Amazon Elastic Compute Cloud (Amazon EC2)

A

a web service that provides secure, resizable compute capacity in the cloud.

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

The “Elastic” nature of the service allows developers to

A

instantly scale to meet spikes in traffic or demand.

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

a virtual server in the cloud.

A

An Instance

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

What is Java? Why Java?

A

Java is a high-level OOP language with rich API Libraries.

Write once run anywhere, static types, compiled languages.

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

What is JRE?

A

Java runtime environment. contains JVM.

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

What is JVM?

A

Java virtual machine. Runs compiled JAva code.

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

What is JDK?

A

Java developer kit. Has a compiler. debugger. Contains JRE and JVM.

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

What is an object/class?

A

Class is a blueprint for an object.

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

What is the root class from which every class extends?

A

The ‘Object’ Class… (This is a class called object.)

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

What are the primitive data types in Java?

A

boolean.
byte.
short.
int.
long.
float.
double.
char.

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

Where are the strings stored?

A

In the string pool in the heap?

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

What is a heap in Java?

A

a chunk of memory which is shared among all threads.

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

What is an immutable object?

A

An object whose internal state remains constant after it has been entirely created.

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

What are the benefits of keeping String immutable in java?

A

caching, security, synchronization, and performance.

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

In this heap type, the root node is greater than it’s children.

A

Max-Heap.

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

In this heap type, the root node is the smallest among all the other keys present in the heap.

A

Min-heap.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Does stack memory use LIFO or FIFO structure?
LIFO
26
A part of computer's memory where temporary variables, which are created by all functions you do, are stored.
Java Stack Memory.
27
A block of code which only runs when it is called.
method.
28
What is the difference between... public static int x = 4; public int y = 2;
In the first declaration, the variable x = 4 will carry till the end of the program. In the second declaration, the variable will not exist at the end of the current function. It is a local variable.
29
What data types are supported in switch statements?
String. int. char. short. byte. enums.
30
How to pass multiple values with a single parameter into a method?
Use varargs.
31
Vararg.
a method that takes a variable number of arguments.
32
Where in Java memory are objects stored?
The Heap.
33
What methods are available in the object class?
.clone .hashcode .equals .toString
34
what does '==' mean?
tests to see if two reference variables refer to the exact same instance of an object.
35
what does '.equals()' do?
tests to see if two objects being compared to each other are equivalent. (does not have to be the exact same instance of an object)
36
What are the 4 pillars of OOP?
Abstraction. Polymorphism. Inheritance. Encapsulation.
37
What is abstraction?
Hiding implementation details through a higher-level construct, thereby decreasing coupling and increasing cohesion.
38
What is polymorphism?
allowing the implementation of a behavior to vary, whether between subclasses or within the same class.
39
What is 'super()' used for?
to invoke immediate parent class constructor.
40
What is inheritance?
Receiving state and behavior from other classes, thereby reducing boiler plate and duplicate code and allowing for hierarchies of classes.
41
What is encapulation?
Restricting access to data members by using access modifier and getter/setter methods.
42
Bash is a ____ that interprets ____ commands like "ls" that interact with the \_\_\_.
shell; linux; filesystem.
43
How do you compile java code contained in the file helloWorld.java and then run it on the command line?
javac HelloWorld.java, then java HelloWorld
44
Method Overriding is...
Same method signature but different implementation.
45
keyword to show inheritance in java?
extends.
46
Static methods can be called without instantiating the class first. T/F?
True.
47
The main() method must be static, in order to be executed by the JVM. T/F?
True.
48
A final class can not be instantiated. T/F?
False.
49
A final class can be instantiated. T/F?
True.
50
The keyword super() calls the constructor of the....
parent class.
51
the keyword static means...
something belongs to the class and is globally available to all instances.
52
Access modifier public define.
can be accessed anywhere in the program.
53
Access modifier private define.
can only be accessed within the same class.
54
Access modifier default define.
can only be accessed from within the same package.
55
Access modifier protected define.
can be accessed within the same package or through inheritance by subclasses.
56
Java supports multiple inheritances of classes. T/F?
False.
57
What is the purpose of the java compiler?
to transfer java code into instructions usable by the JVM.
58
What is the purpose of the java compiler?
to transfer java code into instructions usable by the JVM.
59
Both String and StringBuffer are mutable. T/F?
False.
60
What is git?
A version control tool.
61
How do you create a new branch in git?
git checkout -b
62
By default, in a git repository, origin refers to:
The remote repository that the local repository was cloned from.
63
What is the correct series of commands to: 1) Go to the "main" branch 2) See the current state of the files in the branch 3) Make a change 4) Update the remote repository
git checkout main; git status; git commit; git push;
64
git checkout main;
Got to the "main" branch.
65
git status;
See the current state of the files in the branch.
66
git commit;
Make a change.
67
git push;
update the remote repository.
68
A final class can be extended. T/F?
False.
69
Can I take a variable of larger size than another and reassign without casting?
No.
70
.equals()
tests to see if the two objects being compared to each other are equivalent.
71
things that make git unique.
allows tracking changes, view past changes, revert to old versions. add many different codebase locations and keep them in sync. tracks units of work in "commits" that are linked to each other.
72
How would you prevent a file from being tracked by git?
Add the file path to a file called .gitignore
73
What is a branch?
a separate path of changes made to the codebase.
74
How to create a new branch?
git checkout -b mynewbranch
75
What is a merge conflict?
When two changes in git attempt to merge and have different code in them.
76
How do you resolve a merge conflict?
Go to the file with the conflict. Remove the special markings that designate the merge conflict and select the code to keep.
77
What is a github pull request?
a request to merge changes made in the code from one branch into another.
78
command to pull any updates from central repo
git pull
79
command to stage changes
git add
80
command to make a commit
git commit -m my commit message
81
command to push to the central repo
git push
82
how would you go back in your commit history if you make a mistake?
git checkout
83
What is the git workflow for editing code and saving changes?
Pull any updates from central repo. Make changes to codebase. Stage the changes. Make a commit. Push to the central repo.
84
a self-service model for managing remote data center infrastructures.
Infrastructure as a Service (IaaS)
85
# Reverse allows organizations to build, run and manage applications without the IT infrastructure. This makes it easier and faster to develop, test and deploy applications.
Platform as a Service (PaaS)
86
# Reverse replaces the traditional on-device software with software that is licensed on a subscription basis. It is centrally hosted in the cloud. A good example is Salesforce.com.
Software as a Service (SaaS)
87
# Reverse a geographical location with a collection of availability zones mapped to physical data centers in that region.
AWS Region Define.
88
# Reverse a logical data center in a region available for use by any AWS customer.
AWS Availability Zone
89
# Reverse provides the information required to launch an instance. Think of it as a template for an EC2 Instance.
AMI (Amazon Machine Image)
90
# Reverse a virtual firewall for your EC2 instances to control incoming and outgoing traffic based on their IP address.
Security groups
91
# Reverse Security group
\_\_\_\_\_\_\_\_\_\_\_ rules enable you to filter traffic based on protocols and port numbers.
92
# Reverse a web service that provides secure, resizable compute capacity in the cloud.
Amazon Elastic Compute Cloud (Amazon EC2)
93
# Reverse instantly scale to meet spikes in traffic or demand.
The “Elastic” nature of the service allows developers to
94
# Reverse An Instance
a virtual server in the cloud.
95
# Reverse Java is a high-level OOP language with rich API Libraries. Write once run anywhere, static types, compiled languages.
What is Java? Why Java?
96
# Reverse Java runtime environment. contains JVM.
What is JRE?
97
# Reverse Java virtual machine. Runs compiled JAva code.
What is JVM?
98
# Reverse Java developer kit. Has a compiler. debugger. Contains JRE and JVM.
What is JDK?
99
# Reverse Class is a blueprint for an object.
What is an object/class?
100
# Reverse The 'Object' Class... (This is a class called object.)
What is the root class from which every class extends?
101
# Reverse boolean. byte. short. int. long. float. double. char.
What are the primitive data types in Java?
102
# Reverse In the string pool in the heap?
Where are the strings stored?
103
# Reverse a chunk of memory which is shared among all threads.
What is a heap in Java?
104
# Reverse An object whose internal state remains constant after it has been entirely created.
What is an immutable object?
105
# Reverse caching, security, synchronization, and performance.
What are the benefits of keeping String immutable in java?
106
# Reverse Max-Heap.
In this heap type, the root node is greater than it's children.
107
# Reverse Min-heap.
In this heap type, the root node is the smallest among all the other keys present in the heap.
108
# Reverse LIFO
Does stack memory use LIFO or FIFO structure?
109
# Reverse Java Stack Memory.
A part of computer's memory where temporary variables, which are created by all functions you do, are stored.
110
# Reverse method.
A block of code which only runs when it is called.
111
# Reverse In the first declaration, the variable x = 4 will carry till the end of the program. In the second declaration, the variable will not exist at the end of the current function. It is a local variable.
What is the difference between... public static int x = 4; public int y = 2;
112
# Reverse String. int. char. short. byte. enums.
What data types are supported in switch statements?
113
# Reverse Use varargs.
How to pass multiple values with a single parameter into a method?
114
# Reverse a method that takes a variable number of arguments.
Vararg.
115
# Reverse The Heap.
Where in Java memory are objects stored?
116
# Reverse .clone .hashcode .equals .toString
What methods are available in the object class?
117
# Reverse tests to see if two reference variables refer to the exact same instance of an object.
what does '==' mean?
118
# Reverse tests to see if two objects being compared to each other are equivalent. (does not have to be the exact same instance of an object)
what does '.equals()' do?
119
# Reverse Abstraction. Polymorphism. Inheritance. Encapsulation.
What are the 4 pillars of OOP?
120
# Reverse Hiding implementation details through a higher-level construct, thereby decreasing coupling and increasing cohesion.
What is abstraction?
121
# Reverse allowing the implementation of a behavior to vary, whether between subclasses or within the same class.
What is polymorphism?
122
# Reverse to invoke immediate parent class constructor.
What is 'super()' used for?
123
# Reverse Receiving state and behavior from other classes, thereby reducing boiler plate and duplicate code and allowing for hierarchies of classes.
What is inheritance?
124
# Reverse Restricting access to data members by using access modifier and getter/setter methods.
What is encapulation?
125
# Reverse shell; linux; filesystem.
Bash is a ____ that interprets ____ commands like "ls" that interact with the \_\_\_.
126
# Reverse javac HelloWorld.java, then java HelloWorld
How do you compile java code contained in the file helloWorld.java and then run it on the command line?
127
# Reverse Same method signature but different implementation.
Method Overriding is...
128
# Reverse extends.
keyword to show inheritance in java?
129
# Reverse True.
Static methods can be called without instantiating the class first. T/F?
130
# Reverse True.
The main() method must be static, in order to be executed by the JVM. T/F?
131
# Reverse False.
A final class can not be instantiated. T/F?
132
# Reverse True.
A final class can be instantiated. T/F?
133
# Reverse parent class.
The keyword super() calls the constructor of the....
134
# Reverse something belongs to the class and is globally available to all instances.
the keyword static means...
135
# Reverse can be accessed anywhere in the program.
Access modifier public define.
136
# Reverse can only be accessed within the same class.
Access modifier private define.
137
# Reverse can only be accessed from within the same package.
Access modifier default define.
138
# Reverse can be accessed within the same package or through inheritance by subclasses.
Access modifier protected define.
139
# Reverse False.
Java supports multiple inheritances of classes. T/F?
140
# Reverse to transfer java code into instructions usable by the JVM.
What is the purpose of the java compiler?
141
# Reverse to transfer java code into instructions usable by the JVM.
What is the purpose of the java compiler?
142
# Reverse False.
Both String and StringBuffer are mutable. T/F?
143
# Reverse A version control tool.
What is git?
144
# Reverse git checkout -b
How do you create a new branch in git?
145
# Reverse The remote repository that the local repository was cloned from.
By default, in a git repository, origin refers to:
146
# Reverse git checkout main; git status; git commit; git push;
What is the correct series of commands to: 1) Go to the "main" branch 2) See the current state of the files in the branch 3) Make a change 4) Update the remote repository
147
# Reverse Got to the "main" branch.
git checkout main;
148
# Reverse See the current state of the files in the branch.
git status;
149
# Reverse Make a change.
git commit;
150
# Reverse update the remote repository.
git push;
151
# Reverse False.
A final class can be extended. T/F?
152
# Reverse No.
Can I take a variable of larger size than another and reassign without casting?
153
# Reverse tests to see if the two objects being compared to each other are equivalent.
.equals()
154
# Reverse allows tracking changes, view past changes, revert to old versions. add many different codebase locations and keep them in sync. tracks units of work in "commits" that are linked to each other.
things that make git unique.
155
# Reverse Add the file path to a file called .gitignore
How would you prevent a file from being tracked by git?
156
# Reverse a separate path of changes made to the codebase.
What is a branch?
157
# Reverse git checkout -b mynewbranch
How to create a new branch?
158
# Reverse When two changes in git attempt to merge and have different code in them.
What is a merge conflict?
159
# Reverse Go to the file with the conflict. Remove the special markings that designate the merge conflict and select the code to keep.
How do you resolve a merge conflict?
160
# Reverse a request to merge changes made in the code from one branch into another.
What is a github pull request?
161
# Reverse git pull
command to pull any updates from central repo
162
# Reverse git add
command to stage changes
163
# Reverse git commit -m my commit message
command to make a commit
164
# Reverse git push
command to push to the central repo
165
# Reverse git checkout
how would you go back in your commit history if you make a mistake?
166
# Reverse Pull any updates from central repo. Make changes to codebase. Stage the changes. Make a commit. Push to the central repo.
What is the git workflow for editing code and saving changes?