Final! Flashcards
(60 cards)
What is Java classified as?
A high-level language
What is machine language composed of?
1’s and 0’s
What is the job of a compiler?
To translate high-level language to machine language
What does IDE stand for?
Integrated Development Environment
What does an IDE include?
- An editor
- A compiler
What is a variable?
A named location in the computer’s RAM
What is assignment in programming?
The operation of putting a value in a variable
What is the size of a byte?
8 bits
What is a bit?
A single one or zero
What does I/O stand for?
Input/Output
What is an example of an output in Java?
System.out
What is the purpose of the Scanner class?
To read input from various sources
What type of statements are comments in programming?
Read only by the programmers
What is the difference between an integer and a floating point?
Integer is a whole number, while floating point represents decimal numbers
What are the two types of conversion in programming?
- Implicit conversion
- Explicit conversion (casting)
What do arithmetic operations in programming involve?
- / % + -
What is branching in control structures?
Using if statements, if/else statements, and switch statements
What does a switch statement do?
Works only for exact matching and is good for menus (substitute for a bunch of if..else)
What is a while loop?
A loop that includes initialization, condition & update
What is the structure of a for loop?
for (int i = 0; i < 5; i++){ }
What are the six relational operators?
> , >=, <, <=, ==, !=
What are the Boolean operators?
- && (and)
- || (or)
- ! (not)
What are common uses of loops?
- Go-again loop
- Finding a sum loop
- Sentinel loop
- Searching for a value
What are methods in programming?
Functions that perform operations