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
Q

A statement may have internal components (e.g. Expressions)

A

Program statements

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

Misuse of language rules

A

Syntax error

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

A misspelled programming language word

A

Syntax error

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

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

A

Syntax error

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

freeing program of all errors

A

Debugging

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

Also called semantic errors

A

Logic errors

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

Incorrect order or procedure

A

Logic errors

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

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
34
Q

Occur when there is a fault in the logic or structure of the problem

A

Logic errors

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

Do not usually cause a program to crash. However, it can cause a program to produce unexpected results

A

Logic errors

36
Q

used for linesss (comments)

A

/* and */

37
Q

is used for one line (comments)

A

//

38
Q

A _______ comment begins with /* and ends with */, and may span multiple lines.

A

multi-line

39
Q

An _________________ comment begins with // and lasts till the end of the current line

A

end-of-line (single-line)

40
Q

Comments are executable statements and are ignored by the computer
(True or false)

A

False (Comments are NOT executable statements and are ignored by the computer ) hindi tinatanggap

41
Q

Comments provide useful explanation and documentation

True or false

A

True

42
Q

what is the symbol of braces of block

A

{ }

43
Q

This group of statements is treated as one single unit

A

Block

44
Q

Is a group of programming statements enclosed by a pair of braces { }

A

Block

45
Q

Freeing program of all errors

A

Debugging

46
Q

Translates language statements into machine code

A

Compiler or interpreter

47
Q

Sets of operations executed in sequence

A

Procedural programming

48
Q

Named computer memory locations that hold values

A

Variables

49
Q

Individual operations grouped into logical units

A

Procedures

50
Q

Is an extension of procedural programming in which you take a slightly different approach to write computer programs

A

Object-oriented programs

51
Q

Object oriented programs can create:

A

 classes
 objects from classes
 applications

52
Q

Object-oriented programming differs from traditional procedural programming
(true or false)

A

true

53
Q

is a feature of the object-oriented programming language, Java, which allows a single task to be performed in different ways.

A

Polymorphism (Code Reusability)

54
Q

Is the process of extending the existing code functionality for removing the repetitive coding work

A

Inheritance

55
Q

Concerned with the relationship between classes and method, which is like a parent and a child

A

Inheritance

56
Q

Allows you to create class hierarchies, where a base class gives its behavior and attributes to a derived class

A

Inheritance

57
Q

Refers to the bundling of data, along with the methods that operate on that data

A

Encapsulation

58
Q

what are the object-oriented programming concepts

A
  • object
  • class
  • inheritance
  • encapsulation
  • abstraction
  • polymorphism
59
Q

programming style where implementation details are hidden

A

Encapsulation

60
Q

is also known as data-hidden

A

Encapsulation

61
Q

General purpose language

A

java

62
Q

is an object-oriented programming language created by James Gosling from Sun Microsystems (Sun) in 1991.

A

java

63
Q

The target of ____is to write a program once and then run this program on multiple operating systems (architecturally neutral).

A

java

64
Q

Does not execute instructions on the computer directly

A

java

65
Q

java runs on a hypothetical computer known as ___________

A

Java Virtual Machine (JVM)

66
Q

what is JVM

A

Java Virtual Machine

67
Q

Java’s Programming statements (source code) are written in _____-level programming language

A

high

68
Q

An object-oriented language for general-purpose business applications and for interactive, Worldwide web-based internet applications

A

Java

69
Q

Programming statements written in a high-level programming language

A

Source code

70
Q

A set of tools used to write programs

A

Development environment

71
Q

Statements saved in a file

A

Bytecode

72
Q

A binary program into which the Java compiler converts source code

A

Bytecode

73
Q

Checks bytecode and communicates with the operating system

A

Java interpreter

74
Q

Executes bytecode instructions line by line within the Java Virtual Machine

A

Java interpreter

75
Q

javac unrecognized command

A

Compilation outcomes

76
Q

Program language error messages

A

Compilation outcomes

77
Q

No messages indicating successful completion

A

Compilation outcomes

78
Q

reasons for error messages: 4

A
  • misspelled command
  • misspelled filename
  • not within correct subfolder or subdirectory on command line
  • java not installed properly
79
Q

Will appear in output exactly as entered

A

Literal string

80
Q

Written between double quotation marks

A

Literal string

81
Q

Pieces of information passed to a method

A

Arguments

82
Q

Requires information to perform its task

A

Method

83
Q

Refers to the standard output device for a system

A

system class

84
Q
o	A reserved keyword
o	Means the method is accessible and usable even though no objects of the class exis
A

static

85
Q

o Use in the main method header

o Does not indicate the main method is empty

A

void

86
Q

o Indicates the main() method does not return a value when called
o Does not mean that main() doesn’t produce output

A

void