Unit 1 Flashcards
Strong Memorization
What are programming languages?
a language used to write instructions that can be executed/ run by a computer.
What is code?
Instructions written in a computer program.
Machine Code
instructions written in 1’s and 0’s that the computer can be executed without translation.
High Level-Languages
Translates human messages into machine code that the COMPUTER can understand
What does an interface allow?
An interface allows communication between both humans and computers.
SOURCE CODES
Program written in HIGH LEVEL LANGUAGE beFORE being translated into machine code (binary / java to binary)
Attributes of Java and why it makes it easier for programmers to use.
User friendly, aplicable to different kinds of hardware, runs slower than lower-level languages, must be translated to machine code.
What is java used for (except minecraft)
Web applications and software development
Who and where was Java created
Developed by James Gosling + other extras, at Sun Microsystems in Cali.
Variable
a group of characters whos values can be changed as needed. Stores data in RAM (Random access memory)
Que es un “Identifier”?
A name for a parameter, variable, user-defined method, constant/ user-defined class.
Characteristics of an identifier
could be a sequence of letters, digits, and underscores. Cannot begin with a digit, or uppercase.
Lowercase when NAMING identifiers (variables y methods)
Uppercase when SEPERATING words (but together)
More do’s and don’ts of identifiers
Do-
begin with letter or underscore
after first character, can contain digits 0-9
Don’ts
cannot be a python keyword
no spaces in variable name
no punctuation (. , !, ?)
Final Variable
- user-defined constant (used with “final” keyword
- you CANNOT alter value of variable
Example:
(final double CLASS_SIZE = 28;) - use camelCase (like that) for variables/new instances (helps readability)
Non-Numeric Data
string, which consists of a combination of letters, numbers, and symbols.
Cannot be used in CALCULATIONS