Topics/Questions with complete solution
2025
What is the difference between an absolute path and a relative path? - correct
answer ✔An absolute path starts at the root as an anchor while a relative
path does not. The path is RELATIVE to the present, start location.
What does PWD do? - correct answer ✔Print (or present) working directory
(or folder)
What does CD do? - correct answer ✔Changes directory
Describe GIT - correct answer ✔Git is a distributed version control system
that allows for saving checkpoints (like a video game), share code, compare
past versions, allow for parallel development, and know who made changes.
How do Github and Bitbucket differ from GIT? - correct answer ✔Github and
Bitbucket are like Google Drive. They host the code, not the software. GIT is
the software.
Describe the technical relationship between Java and Javascript. - correct
answer ✔Trick question! There is no technical relationship between Java and
Javascript though newer versions of Java do include some elements of
Javascript though.
What kind of code does the Javac read? What kind of code does it change
that into? - correct answer ✔Javac reads the source code (what developers
write) and transform it into Byte code.
, What kind of code does the JVM read? What does it do with that code? -
correct answer ✔The JVM reads Byte ode and interprets it into machine
code for a specific platform (Linux, Mac, or Windows)
Describe the process of going from source code to machine code. - correct
answer ✔The JAVAC reads the source code and changes it into Byte code.
The Byte code is then read by the machine specific JVM at run time which
creates machine code that that kind of machine (Linux, Windows, or Mac) can
read.
What is the problem with using floats and doubles when the variable
represents monetary values? - correct answer ✔Floats and doubles have
rounding errors.
What is casting? - correct answer ✔Casting is used to convert the value of
one type to another. Example: long x = 10
int y = int x;
What is narrowing in terms of casting? - correct answer ✔Going from a
larger variable to a smaller one.
Example: int smaller = (int) bigger;
What is widening in terms of casting? - correct answer ✔Also known as
implicit casting, this is going from a smaller variable to a larger variable.
Example: int smallerNum = 5
Long biggerNum = smallerNum;
Describe truncation. - correct answer ✔The right side of the