Midterm Review Flashcards
What does // represent?
A comment that can continue to the end of the line
What does /* asdfghjkl; */ represent?
A comment that can last multiple lines between the slashes
What does /** asdfghjkl; */ represent?
A javadoc comment
What is a syntax error?
A problem in the code makes a program unable to run
What is a logical error?
A program runs, but does not function properly due to a logic error
What is a run time error?
Something input to the code causes it to crash
What happens when a java program is run?
It is converted to byte code then to machine language
What happens when you type in a URL?
DNS converts it to an IP address
What can be used in an identifyer?
Letters, underscores, digits, $
What should class names always be in?
Title case
What’s the difference between high level and machine level code?
Machine is more abstract, and high level uses human language
What is analog like?
Continuous and exact
What is digital like?
Finite and not exact, but cheaper
What test simulates a human conversation?
Turring test
Where does java.charAt find letters?
Each letter is numbered, 0 is the first letter