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
Q

Attributes

A

Also known as properties

Define an object

26
Q

Object

A

Specific, concrete instance of a class

27
Q

State (for an object)

A

Values of the properties of an object

28
Q

Method

A

Def contained block of program code that carries out some action

29
Q

Inheritance

A

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
Q

Polymorphism

A

Feature of languages that allows the same word or symbol to be interpreted correctly in different situations based on context

31
Q

Java

A

Object oriented language for general purpose business applications and for interactive, World Wide Web-based applications

32
Q

Architecturally neutral

A

Can be used on any operating system

33
Q

Java Virtual Machine

A

Java computer that runs on software not hardware. This allows it to be architecturally neutral

34
Q

Source code

A

Programming statements written in a high level programming language

35
Q

jGRASP

A

Free source code editor

36
Q

Development enviroment

A

A set of tools that help you write programs by providing such features as displaying a languages keywords in color

37
Q

Bytecode

A

Binary program

38
Q

Java interpreter

A

Checks bytecode and communicated with operating system, executing instructions line by line in the JVM

39
Q

Applets

A

Programs that are embedded in a web page

40
Q

Java applications

A

Stand alone applications

41
Q

Console applications

A

Java applications that support character or text output to a computer screen

42
Q

Windowed applications

A

Java applications that create a GUI with elements such as menus, toolbars, and dialog boxes

43
Q

Literal string

A

A series of characters that will appear in output exactly as entered.

Placed in double quotation marks

44
Q

Arguments

A

Pieces of information sent to a method

Ex.

println(“Hi”);

Hi is argument
println is method

45
Q

Passing arguments

A

Sending arguments to method

46
Q

Standard output device

A

Generally denoted by out

Mostly am monitor

47
Q

Access specifier

A

Defines circumstances under which a class can be accessed

48
Q

Class body

A

Any data items or methods in a class

Contained in { }

49
Q

Whitespace

A

Any combination of non printing characters

50
Q

Static

A

Keyword that’s says the method is accessible and usable even though no objects of the class exist

51
Q

Void

A

The method does not return any value when it is called

52
Q

Parsing

A

Process compiler used to divide source code into meaningful portions

53
Q

Run-time error

A

An error not detected until the program asks the computer to do something wrong while executing

54
Q

Java API

A

Java class library

Contains info about how to use every prewritten Java class with list of methods that correspond to those classes