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

A

Method

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
Q

Programming statements written in high-level programming language

A

Source Code

26
Q

A set of tools used to write programs

A

Development Environment

27
Q

–Statements saved in a file

–A binary program into which the Java compiler converts source code

A

Bytecode

28
Q

–Checks bytecode and communicates with the operating system

–Executes bytecode instructions line by line within the Java Virtual Machine

A

Java Interpreter

29
Q

Programs embedded in a Web page

A

Applets

30
Q

–Called Java stand-alone programs
–Console applications
•Support character output

A

Java applications

31
Q
  • Menus
  • Toolbars
  • Dialog boxes
A

Windowed Applications

32
Q

–Will appear in output exactly as entered

–Written between double quotation marks

A

Literal String

33
Q

Pieces of information passed to a method

A

Arguments

34
Q

Requires information to perform its task

A

Method

35
Q

Refers to the standard output device for a system

A

System Class

36
Q

Every Java statement ends with a _________.

A

semicolon

37
Q

________ separate classes, objects, and methods.

A

dots

38
Q

Method names are always followed by __________.

A

parentheses

39
Q

In the statement:
System.out.println(“First Java Application”); ,
“First Java Application” is an example of a ________ __________ and is an _________ to the println method.

A

literal string,

argument

40
Q

Everything used within a Java program must be part of a ____________.

A

class

41
Q

Define a Java class using any ______ or ________.

A

name, identifier

42
Q
–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
A

Requirements for identifiers

43
Q

Defines how a class can be accessed

A

Access Specifier

44
Q
–A reserved keyword 
–Means the method is accessible and usable even though no objects of the class exist
A

static

45
Q

–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

A

void