Chapter 1 Flashcards

1
Q

A set of written instructions that tells the computer what to do

A

Computer Program

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

– The most basic circuitry-level language

– A low-level programming language

A

Machine Language

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

Allows you to use a vocabulary of reasonable terms

A

High-level programming language

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

A specific set of rules for the language

A

Syntax

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

– Similar to English sentences

– Commands to carry out program tasks

A

Program statements

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

Translates language statements into machine code

A

Compiler or Interpreter

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

– Misuse of language rules

– A misspelled programming language word

A

Syntax Error

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

Freeing program of all errors

A

Debugging

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

– Also called semantic errors
– Incorrect order or procedure
– The program may run but provide inaccurate output

A

Logic Errors

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

Sets of operations executed in sequence

A

Procedural Programming

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

Individual operations grouped into logical units

A

Procedures

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

Used to create classes, objects from classes, and applications

A

Object-oriented programs

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

Blueprints for an objects

A

Classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • Polymorphism
  • Inheritance
  • Encapsulation
A

Ways that object-oriented programming differs from traditional procedural programming

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

–Computer simulations

–Graphical user interfaces (GUIs)

A

Object-oriented programming was used most frequently for these two major types of applications

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

–Describes objects with common properties
–A definition
–An instance

A

Class

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

–Characteristics that define an object
–Differentiate objects of the same class
–The value of attributes is an object’s state

A

Attributes

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

Specific, concrete instances of a class

A

Object

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

–A self-contained block of program code that carries out an action
–Similar to a procedure

20
Q

–Conceals internal values and methods from outside sources
–Provides security
–Keeps data and methods safe from inadvertent changes

A

Encapsulation

21
Q

–An important feature of object-oriented programs
–Classes share attributes and methods of existing classes but with more specific features
–Helps you understand real-world objects

A

Inheritance

22
Q

–Means “many forms”

–Allows the same word to be interpreted correctly in different situations based on context

A

Polymorphism

23
Q
  • Security features

* Architecturally neutral

A

Advantages of the Java Programming Language

24
Q

–Developed by Sun Microsystems
–An object-oriented language
–General-purpose
–Can be run on a wide variety of computers
–Does not execute instructions on the computer directly
–Runs on a hypothetical computer known as a Java Virtual Machine (JVM)

A

Features of the Java Programming Language

25
Programming statements written in high-level programming language
Source Code
26
A set of tools used to write programs
Development Environment
27
–Statements saved in a file | –A binary program into which the Java compiler converts source code
Bytecode
28
–Checks bytecode and communicates with the operating system | –Executes bytecode instructions line by line within the Java Virtual Machine
Java Interpreter
29
Programs embedded in a Web page
Applets
30
–Called Java stand-alone programs –Console applications •Support character output
Java applications
31
* Menus * Toolbars * Dialog boxes
Windowed Applications
32
–Will appear in output exactly as entered | –Written between double quotation marks
Literal String
33
Pieces of information passed to a method
Arguments
34
Requires information to perform its task
Method
35
Refers to the standard output device for a system
System Class
36
Every Java statement ends with a _________.
semicolon
37
________ separate classes, objects, and methods.
dots
38
Method names are always followed by __________.
parentheses
39
In the statement: System.out.println("First Java Application"); , "First Java Application" is an example of a ________ __________ and is an _________ to the println method.
literal string, | argument
40
Everything used within a Java program must be part of a ____________.
class
41
Define a Java class using any ______ or ________.
name, identifier
42
``` –Must begin with one of the following: •Letter of the English alphabet •Non-English letter (such as α or π) •Underscore •Dollar sign –Cannot begin with a digit –Can only contain: •Letters •Digits •Underscores •Dollar signs –Cannot be a Java reserved keyword –Cannot be true, false, or null ```
Requirements for identifiers
43
Defines how a class can be accessed
Access Specifier
44
``` –A reserved keyword –Means the method is accessible and usable even though no objects of the class exist ```
static
45
–Used in the main() method header –Does not indicate the main() method is empty –Indicates the main() method does not return a value when called –Does not mean that main() doesn’t produce output
void