Module 1 Flashcards

In this module, you will understand the basics of Java and learn how to create simple programs. Specifically, Define Basic Terminologies Compare Procedural and Object-Oriented Programming Describe the Features of the Java programming Language Analyze a Java Application that Produces Console Output Compile a Java class and Correct Syntax Errors Run a Java Application and Correct Logic Errors

1
Q

is a list of instructions that tell a computer what to do.

A

Computer Program

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

also referred to as machine code and is the most basic set of instructions that a computer can execute.

A

Machine language

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

Machine learning _________ programming language

A

Low-level

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

Machine learning has the most basic circuitry-level language
(True or False)

A

true

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

Machine learning is comprised of binary digits

True or False

A

True

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

Machine learning is comprised of ______ digits

A

Binary

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

What code is : 00010010010001010010010

01110110010101101001…..

A

Machine code

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

includes the physical parts of a computer such as a keyboard and monitor

A

Hardware

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

Software are programs and is divided into two:

A

application software and system software

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

is any program designed for end-users that performs a specific task that includes word processors, database programs.

A

application software

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

a program that is designed to run a computer’s hardware and application programs.

A

system software

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

defines the exact order of instructions needed to produce desired results.

A

Software Logic

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

the system that uses 1s and 0s to represent the on-and-off circuitry of computer systems.

A

Binary Numbering System

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

corresponds closely to a computer processor’s circuitry (0s and 1s) are used to write programs that relate to the specific architecture and hardware of a particular type of computer.

A

Low-level Programming Language

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

difficult to use and must be customized for every type of machine on which a program runs.

A

Low-level Programming Language

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

allows programmers to write instructions in a language that is easier to understand than low-level languages.

A

High-level Programming Language

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

Enables development of a programming contest and is generally independent of the computer’s hardware architecture

A

High-level Programming Language

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

High-level Programming Language is embedded in the central processing unit
(True or false)

A

true

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

o A specific set or rules for the language
o Rules of language: rules that define the structure
o It’s like the grammar in English

A

Syntax

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

Control the structure of symbols, punctuation, and words of a programing language

A

Syntax

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

Without ______, the meaning or semantics of a language is nearly impossible to understand.

A

Syntax

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

o Similar to English sentences

o Commands to carry out program tasks

A

Program statements

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

A program written in such a language is form by a sequence of one or more statements

A

Program statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
A statement may have internal components (e.g. Expressions)
Program statements
26
Translates language statements into machine code
Compiler or interpreter
27
Misuse of language rules
Syntax error
28
A misspelled programming language word
Syntax error
29
Mistakes in the source code, such as spelling and punctuation errors, incorrect labels, and so on, cause an error message to be generated by the computer
Syntax error
30
freeing program of all errors
Debugging
31
Also called semantic errors
Logic errors
32
Incorrect order or procedure
Logic errors
33
The program may run but provide inaccurate output
Logic errors
34
Occur when there is a fault in the logic or structure of the problem
Logic errors
35
Do not usually cause a program to crash. However, it can cause a program to produce unexpected results
Logic errors
36
used for linesss (comments)
/* and */
37
is used for one line (comments)
//
38
A _______ comment begins with /* and ends with */, and may span multiple lines.
multi-line
39
An _________________ comment begins with // and lasts till the end of the current line
end-of-line (single-line)
40
Comments are executable statements and are ignored by the computer (True or false)
False (Comments are NOT executable statements and are ignored by the computer ) hindi tinatanggap
41
Comments provide useful explanation and documentation | True or false
True
42
what is the symbol of braces of block
{ }
43
This group of statements is treated as one single unit
Block
44
Is a group of programming statements enclosed by a pair of braces { }
Block
45
Freeing program of all errors
Debugging
46
Translates language statements into machine code
Compiler or interpreter
47
Sets of operations executed in sequence
Procedural programming
48
Named computer memory locations that hold values
Variables
49
Individual operations grouped into logical units
Procedures
50
Is an extension of procedural programming in which you take a slightly different approach to write computer programs
Object-oriented programs
51
Object oriented programs can create:
 classes  objects from classes  applications
52
Object-oriented programming differs from traditional procedural programming (true or false)
true
53
is a feature of the object-oriented programming language, Java, which allows a single task to be performed in different ways.
Polymorphism (Code Reusability)
54
Is the process of extending the existing code functionality for removing the repetitive coding work
Inheritance
55
Concerned with the relationship between classes and method, which is like a parent and a child
Inheritance
56
Allows you to create class hierarchies, where a base class gives its behavior and attributes to a derived class
Inheritance
57
Refers to the bundling of data, along with the methods that operate on that data
Encapsulation
58
what are the object-oriented programming concepts
- object - class - inheritance - encapsulation - abstraction - polymorphism
59
programming style where implementation details are hidden
Encapsulation
60
is also known as data-hidden
Encapsulation
61
General purpose language
java
62
is an object-oriented programming language created by James Gosling from Sun Microsystems (Sun) in 1991.
java
63
The target of ____is to write a program once and then run this program on multiple operating systems (architecturally neutral).
java
64
Does not execute instructions on the computer directly
java
65
java runs on a hypothetical computer known as ___________
Java Virtual Machine (JVM)
66
what is JVM
Java Virtual Machine
67
Java’s Programming statements (source code) are written in _____-level programming language
high
68
An object-oriented language for general-purpose business applications and for interactive, Worldwide web-based internet applications
Java
69
Programming statements written in a high-level programming language
Source code
70
A set of tools used to write programs
Development environment
71
Statements saved in a file
Bytecode
72
A binary program into which the Java compiler converts source code
Bytecode
73
Checks bytecode and communicates with the operating system
Java interpreter
74
Executes bytecode instructions line by line within the Java Virtual Machine
Java interpreter
75
javac unrecognized command
Compilation outcomes
76
Program language error messages
Compilation outcomes
77
No messages indicating successful completion
Compilation outcomes
78
reasons for error messages: 4
- misspelled command - misspelled filename - not within correct subfolder or subdirectory on command line - java not installed properly
79
Will appear in output exactly as entered
Literal string
80
Written between double quotation marks
Literal string
81
Pieces of information passed to a method
Arguments
82
Requires information to perform its task
Method
83
Refers to the standard output device for a system
system class
84
``` o A reserved keyword o Means the method is accessible and usable even though no objects of the class exis ```
static
85
o Use in the main method header | o Does not indicate the main method is empty
void
86
o Indicates the main() method does not return a value when called o Does not mean that main() doesn’t produce output
void