Lesson 1 - Creating Java Programs Flashcards

1
Q

Computer program

A

A set of instructions that you write to tell a computer what to do

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

Hardware vs Software

A

Hardware is computer equipment (keyboard or monitor)

Software is a computer program

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

Application software

A

Program that performs a task for the user

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

System Software

A

Program hat manages the computer itself

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

Logic

A

Determines the exact order of instructions to produce desired results

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

Machine language/code

A

Is the most basic set of instructions that a computer can execute

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

Low level programming language

A

A programming language that corresponds closely to a computers circuitry

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

High-level programming language

A

Allow you to use vocabulary of terms instead of sequences of binary to perform a task

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

Syntax

A

Rules about how language elements combine to produce usable commands

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

Program statements/Commands

A

Statements that carry out the tasks they want the program to perform

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

Compiler

A

Translates an entire program before executing tasks

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

Interpreter

A

Translation one program statement at a time, executing a statement as soon as it is translated

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

Syntax error

A

Invalid program statement

Text editor usually catches syntax errors

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

Bugs

A

Flaws in a program

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

Debugging

A

The process of removing flaws or errors from a program

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

Logic error

A

Bug that allows a program to run, but does not produce the desired result

Not a syntax error

Can only be fixed by reviewing the program

Also known as semantic errors

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

Procedural programming

A

Style of programming in which operations are executed one after another in a sequence

Create names that can hold values

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

Variables

A

Named computer memory locations

A name that can be assigned with a value

Ex.

rateOfPay
(It may contain different values based on the employee)

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

Procedures

A

Logical units that are groups of individual operations used in a computer program

Synonym: modules, methods, functions, subroutines

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

Object oriented programming

A
  • creating classes, which are blueprints for objects
  • creating objects, which are specific instances of this classes
  • creating applications that manipulate or use those objects

Extension of procedural programming

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

Computer simulations

A

Programs (typically object-oriented) that try to mimic real world activities so that their processes can be improved

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

Graphical User Interfaces (GUI)

A

Program (typically object-oriented) that allow users to interact with a. Program in a graphical environment

23
Q

Class

A

Term that describes a group or collection of objects with common properties

24
Q

Class definition

A

Describes what attributes it’s objects will have and what those objects can do

25
Attributes
Also known as properties Define an object
26
Object
Specific, concrete instance of a class
27
State (for an object)
Values of the properties of an object
28
Method
Def contained block of program code that carries out some action
29
Inheritance
The ability to create classes that share the attributes and methods of existing classes, but with more specific features. Automobile is a class Convertible inherited the attributes and methods of Automobile
30
Polymorphism
Feature of languages that allows the same word or symbol to be interpreted correctly in different situations based on context
31
Java
Object oriented language for general purpose business applications and for interactive, World Wide Web-based applications
32
Architecturally neutral
Can be used on any operating system
33
Java Virtual Machine
Java computer that runs on software not hardware. This allows it to be architecturally neutral
34
Source code
Programming statements written in a high level programming language
35
jGRASP
Free source code editor
36
Development enviroment
A set of tools that help you write programs by providing such features as displaying a languages keywords in color
37
Bytecode
Binary program
38
Java interpreter
Checks bytecode and communicated with operating system, executing instructions line by line in the JVM
39
Applets
Programs that are embedded in a web page
40
Java applications
Stand alone applications
41
Console applications
Java applications that support character or text output to a computer screen
42
Windowed applications
Java applications that create a GUI with elements such as menus, toolbars, and dialog boxes
43
Literal string
A series of characters that will appear in output exactly as entered. Placed in double quotation marks
44
Arguments
Pieces of information sent to a method Ex. println(“Hi”); Hi is argument println is method
45
Passing arguments
Sending arguments to method
46
Standard output device
Generally denoted by out Mostly am monitor
47
Access specifier
Defines circumstances under which a class can be accessed
48
Class body
Any data items or methods in a class Contained in { }
49
Whitespace
Any combination of non printing characters
50
Static
Keyword that’s says the method is accessible and usable even though no objects of the class exist
51
Void
The method does not return any value when it is called
52
Parsing
Process compiler used to divide source code into meaningful portions
53
Run-time error
An error not detected until the program asks the computer to do something wrong while executing
54
Java API
Java class library Contains info about how to use every prewritten Java class with list of methods that correspond to those classes