Unit 1 Flashcards

Strong Memorization

1
Q

What are programming languages?

A

a language used to write instructions that can be executed/ run by a computer.

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

What is code?

A

Instructions written in a computer program.

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

Machine Code

A

instructions written in 1’s and 0’s that the computer can be executed without translation.

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

High Level-Languages

A

Translates human messages into machine code that the COMPUTER can understand

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

What does an interface allow?

A

An interface allows communication between both humans and computers.

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

SOURCE CODES

A

Program written in HIGH LEVEL LANGUAGE beFORE being translated into machine code (binary / java to binary)

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

Attributes of Java and why it makes it easier for programmers to use.

A

User friendly, aplicable to different kinds of hardware, runs slower than lower-level languages, must be translated to machine code.

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

What is java used for (except minecraft)

A

Web applications and software development

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

Who and where was Java created

A

Developed by James Gosling + other extras, at Sun Microsystems in Cali.

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

Variable

A

a group of characters whos values can be changed as needed. Stores data in RAM (Random access memory)

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

Que es un “Identifier”?

A

A name for a parameter, variable, user-defined method, constant/ user-defined class.

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

Characteristics of an identifier

A

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)

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

More do’s and don’ts of identifiers

A

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 (. , !, ?)

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

Final Variable

A
  • 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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Non-Numeric Data

A

string, which consists of a combination of letters, numbers, and symbols.
Cannot be used in CALCULATIONS

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

nUMERIC data

A

CAN be used in calculations

17
Q

Java’s Built-In Data Types

A

Int (single and negative digits), Double,