Week 1 Flashcards

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
Q

Does stack memory use LIFO or FIFO structure?

A

LIFO

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

A part of computer’s memory where temporary variables, which are created by all functions you do, are stored.

A

Java Stack Memory.

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

A block of code which only runs when it is called.

A

method.

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

What is the difference between…

public static int x = 4;
public int y = 2;

A

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.

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

What data types are supported in switch statements?

A

String.
int.
char.
short.
byte.
enums.

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

How to pass multiple values with a single parameter into a method?

A

Use varargs.

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

Vararg.

A

a method that takes a variable number of arguments.

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

Where in Java memory are objects stored?

A

The Heap.

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

What methods are available in the object class?

A

.clone
.hashcode
.equals
.toString

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

what does ‘==’ mean?

A

tests to see if two reference variables refer to the exact same instance of an object.

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

what does ‘.equals()’ do?

A

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)

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

What are the 4 pillars of OOP?

A

Abstraction.
Polymorphism.
Inheritance.
Encapsulation.

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

What is abstraction?

A

Hiding implementation details through a higher-level construct, thereby decreasing coupling and increasing cohesion.

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

What is polymorphism?

A

allowing the implementation of a behavior to vary, whether between subclasses or within the same class.

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

What is ‘super()’ used for?

A

to invoke immediate parent class constructor.

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

What is inheritance?

A

Receiving state and behavior from other classes, thereby reducing boiler plate and duplicate code and allowing for hierarchies of classes.

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

What is encapulation?

A

Restricting access to data members by using access modifier and getter/setter methods.

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

Bash is a ____ that interprets ____ commands like “ls” that interact with the ___.

A

shell; linux; filesystem.

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

How do you compile java code contained in the file helloWorld.java and then run it on the command line?

A

javac HelloWorld.java, then java HelloWorld

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

Method Overriding is…

A

Same method signature but different implementation.

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

keyword to show inheritance in java?

A

extends.

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

Static methods can be called without instantiating the class first. T/F?

A

True.

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

The main() method must be static, in order to be executed by the JVM. T/F?

A

True.

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

A final class can not be instantiated. T/F?

A

False.

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

A final class can be instantiated. T/F?

A

True.

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

The keyword super() calls the constructor of the….

A

parent class.

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

the keyword static means…

A

something belongs to the class and is globally available to all instances.

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

Access modifier public define.

A

can be accessed anywhere in the program.

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

Access modifier private define.

A

can only be accessed within the same class.

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

Access modifier default define.

A

can only be accessed from within the same package.

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

Access modifier protected define.

A

can be accessed within the same package or through inheritance by subclasses.

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

Java supports multiple inheritances of classes. T/F?

A

False.

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

What is the purpose of the java compiler?

A

to transfer java code into instructions usable by the JVM.

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

What is the purpose of the java compiler?

A

to transfer java code into instructions usable by the JVM.

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

Both String and StringBuffer are mutable. T/F?

A

False.

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

What is git?

A

A version control tool.

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

How do you create a new branch in git?

A

git checkout -b

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

By default, in a git repository, origin refers to:

A

The remote repository that the local repository was cloned from.

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

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

A

git checkout main;
git status;
git commit;
git push;

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

git checkout main;

A

Got to the “main” branch.

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

git status;

A

See the current state of the files in the branch.

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

git commit;

A

Make a change.

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

git push;

A

update the remote repository.

68
Q

A final class can be extended. T/F?

A

False.

69
Q

Can I take a variable of larger size than another and reassign without casting?

A

No.

70
Q

.equals()

A

tests to see if the two objects being compared to each other are equivalent.

71
Q

things that make git unique.

A

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
Q

How would you prevent a file from being tracked by git?

A

Add the file path to a file called .gitignore

73
Q

What is a branch?

A

a separate path of changes made to the codebase.

74
Q

How to create a new branch?

A

git checkout -b mynewbranch

75
Q

What is a merge conflict?

A

When two changes in git attempt to merge and have different code in them.

76
Q

How do you resolve a merge conflict?

A

Go to the file with the conflict. Remove the special markings that designate the merge conflict and select the code to keep.

77
Q

What is a github pull request?

A

a request to merge changes made in the code from one branch into another.

78
Q

command to pull any updates from central repo

A

git pull

79
Q

command to stage changes

A

git add

80
Q

command to make a commit

A

git commit -m my commit message

81
Q

command to push to the central repo

A

git push

82
Q

how would you go back in your commit history if you make a mistake?

A

git checkout

83
Q

What is the git workflow for editing code and saving changes?

A

Pull any updates from central repo.
Make changes to codebase.
Stage the changes.
Make a commit.
Push to the central repo.

84
Q

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

A

Infrastructure as a Service (IaaS)

85
Q

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.

A

Platform as a Service (PaaS)

86
Q

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.

A

Software as a Service (SaaS)

87
Q

Reverse

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

A

AWS Region Define.

88
Q

Reverse

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

A

AWS Availability Zone

89
Q

Reverse

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

A

AMI (Amazon Machine Image)

90
Q

Reverse

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

A

Security groups

91
Q

Reverse

Security group

A

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

92
Q

Reverse

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

A

Amazon Elastic Compute Cloud (Amazon EC2)

93
Q

Reverse

instantly scale to meet spikes in traffic or demand.

A

The “Elastic” nature of the service allows developers to

94
Q

Reverse

An Instance

A

a virtual server in the cloud.

95
Q

Reverse

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

Write once run anywhere, static types, compiled languages.

A

What is Java? Why Java?

96
Q

Reverse

Java runtime environment. contains JVM.

A

What is JRE?

97
Q

Reverse

Java virtual machine. Runs compiled JAva code.

A

What is JVM?

98
Q

Reverse

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

A

What is JDK?

99
Q

Reverse

Class is a blueprint for an object.

A

What is an object/class?

100
Q

Reverse

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

A

What is the root class from which every class extends?

101
Q

Reverse

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

A

What are the primitive data types in Java?

102
Q

Reverse

In the string pool in the heap?

A

Where are the strings stored?

103
Q

Reverse

a chunk of memory which is shared among all threads.

A

What is a heap in Java?

104
Q

Reverse

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

A

What is an immutable object?

105
Q

Reverse

caching, security, synchronization, and performance.

A

What are the benefits of keeping String immutable in java?

106
Q

Reverse

Max-Heap.

A

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

107
Q

Reverse

Min-heap.

A

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

108
Q

Reverse

LIFO

A

Does stack memory use LIFO or FIFO structure?

109
Q

Reverse

Java Stack Memory.

A

A part of computer’s memory where temporary variables, which are created by all functions you do, are stored.

110
Q

Reverse

method.

A

A block of code which only runs when it is called.

111
Q

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.

A

What is the difference between…

public static int x = 4;
public int y = 2;

112
Q

Reverse

String.
int.
char.
short.
byte.
enums.

A

What data types are supported in switch statements?

113
Q

Reverse

Use varargs.

A

How to pass multiple values with a single parameter into a method?

114
Q

Reverse

a method that takes a variable number of arguments.

A

Vararg.

115
Q

Reverse

The Heap.

A

Where in Java memory are objects stored?

116
Q

Reverse

.clone
.hashcode
.equals
.toString

A

What methods are available in the object class?

117
Q

Reverse

tests to see if two reference variables refer to the exact same instance of an object.

A

what does ‘==’ mean?

118
Q

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)

A

what does ‘.equals()’ do?

119
Q

Reverse

Abstraction.
Polymorphism.
Inheritance.
Encapsulation.

A

What are the 4 pillars of OOP?

120
Q

Reverse

Hiding implementation details through a higher-level construct, thereby decreasing coupling and increasing cohesion.

A

What is abstraction?

121
Q

Reverse

allowing the implementation of a behavior to vary, whether between subclasses or within the same class.

A

What is polymorphism?

122
Q

Reverse

to invoke immediate parent class constructor.

A

What is ‘super()’ used for?

123
Q

Reverse

Receiving state and behavior from other classes, thereby reducing boiler plate and duplicate code and allowing for hierarchies of classes.

A

What is inheritance?

124
Q

Reverse

Restricting access to data members by using access modifier and getter/setter methods.

A

What is encapulation?

125
Q

Reverse

shell; linux; filesystem.

A

Bash is a ____ that interprets ____ commands like “ls” that interact with the ___.

126
Q

Reverse

javac HelloWorld.java, then java HelloWorld

A

How do you compile java code contained in the file helloWorld.java and then run it on the command line?

127
Q

Reverse

Same method signature but different implementation.

A

Method Overriding is…

128
Q

Reverse

extends.

A

keyword to show inheritance in java?

129
Q

Reverse

True.

A

Static methods can be called without instantiating the class first. T/F?

130
Q

Reverse

True.

A

The main() method must be static, in order to be executed by the JVM. T/F?

131
Q

Reverse

False.

A

A final class can not be instantiated. T/F?

132
Q

Reverse

True.

A

A final class can be instantiated. T/F?

133
Q

Reverse

parent class.

A

The keyword super() calls the constructor of the….

134
Q

Reverse

something belongs to the class and is globally available to all instances.

A

the keyword static means…

135
Q

Reverse

can be accessed anywhere in the program.

A

Access modifier public define.

136
Q

Reverse

can only be accessed within the same class.

A

Access modifier private define.

137
Q

Reverse

can only be accessed from within the same package.

A

Access modifier default define.

138
Q

Reverse

can be accessed within the same package or through inheritance by subclasses.

A

Access modifier protected define.

139
Q

Reverse

False.

A

Java supports multiple inheritances of classes. T/F?

140
Q

Reverse

to transfer java code into instructions usable by the JVM.

A

What is the purpose of the java compiler?

141
Q

Reverse

to transfer java code into instructions usable by the JVM.

A

What is the purpose of the java compiler?

142
Q

Reverse

False.

A

Both String and StringBuffer are mutable. T/F?

143
Q

Reverse

A version control tool.

A

What is git?

144
Q

Reverse

git checkout -b

A

How do you create a new branch in git?

145
Q

Reverse

The remote repository that the local repository was cloned from.

A

By default, in a git repository, origin refers to:

146
Q

Reverse

git checkout main;
git status;
git commit;
git push;

A

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
Q

Reverse

Got to the “main” branch.

A

git checkout main;

148
Q

Reverse

See the current state of the files in the branch.

A

git status;

149
Q

Reverse

Make a change.

A

git commit;

150
Q

Reverse

update the remote repository.

A

git push;

151
Q

Reverse

False.

A

A final class can be extended. T/F?

152
Q

Reverse

No.

A

Can I take a variable of larger size than another and reassign without casting?

153
Q

Reverse

tests to see if the two objects being compared to each other are equivalent.

A

.equals()

154
Q

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.

A

things that make git unique.

155
Q

Reverse

Add the file path to a file called .gitignore

A

How would you prevent a file from being tracked by git?

156
Q

Reverse

a separate path of changes made to the codebase.

A

What is a branch?

157
Q

Reverse

git checkout -b mynewbranch

A

How to create a new branch?

158
Q

Reverse

When two changes in git attempt to merge and have different code in them.

A

What is a merge conflict?

159
Q

Reverse

Go to the file with the conflict. Remove the special markings that designate the merge conflict and select the code to keep.

A

How do you resolve a merge conflict?

160
Q

Reverse

a request to merge changes made in the code from one branch into another.

A

What is a github pull request?

161
Q

Reverse

git pull

A

command to pull any updates from central repo

162
Q

Reverse

git add

A

command to stage changes

163
Q

Reverse

git commit -m my commit message

A

command to make a commit

164
Q

Reverse

git push

A

command to push to the central repo

165
Q

Reverse

git checkout

A

how would you go back in your commit history if you make a mistake?

166
Q

Reverse

Pull any updates from central repo.
Make changes to codebase.
Stage the changes.
Make a commit.
Push to the central repo.

A

What is the git workflow for editing code and saving changes?