Lesson 5 Flashcards

1
Q

A statement specifies one or more actions to be performed during the execution of a program. In Java, a
statement is one or more lines of code terminated by a semicolon (;).

A

Java Statements

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

In Java, statements can be combined to form a statement block. A block is formed by enclosing statements by
curly braces.

A

Java Blocks

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

used to add notes and documentation to source codes

A

Java Comments

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

used to add notes and documentation to source codes

A

Java Comments

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

There are three types of comments in Java

A
  • Block comment
  • Line comment
  • JavaDoc Comment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

It starts with a forward slash and asterisk (/) and ends with an asterisk and forward slash (/)

A

Block comment

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

Starts with two forward slashes (//) and ends at the end of the line the slashes appear on. If the
slashes are the first two characters, then the whole line is considered a comment

A

Line comment

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

It is used specifically to document classes, attributes, and methods. It starts with a forward
slash and two asterisks (/**). It ends with one asterisk and a forward slash (*/).

A

JavaDoc Comment

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

are words that are used by the programmers to properly identify or name a class, procedure, method,
or variables.

A

Java Identifiers

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

rules on how to name an identifier

A
  • alphabetic characters, both upper and lowercase (a-z and A-Z), numbers (0-9), underscores (_), and dollar sign ($).
  • cannot start with a number.
  • keywords (reserved words) cannot be used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

is a fixed set of symbols built into the syntax of the language

A

Java Keywords

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

are items in a program whose values do not change.

A

Java Literals

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

classification of literals in Java

A
  • Integers (hexadecimal, decimal, octal)
  • Floating point numbers
  • Booleans (true or false)
  • Characters
  • Strings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Represent different sets of data values and determine which standard operators can be applied.

A

Data types

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

are the building blocks and are an essential part of a program

A

Primitive Data Types

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

primitive data types supported by the Java programming language

A
  • boolean (logical)
  • char (for textual)
  • byte
  • short
  • int
  • long (integral)
  • double
  • float (floating point)
17
Q

are places in memory that store values

A

Java Variables

18
Q

are places in memory that store values

A

Java Variables

19
Q

Two types of Variables

A
  • Primitive Variables
  • Reference Variables
20
Q

These store data in the actual memory location of where the variable is.

A

Primitive Variables

21
Q

They point to another
memory location where the actual data is.

A

Reference Variables

22
Q

They point to another
memory location where the actual data is.

A

Reference Variables

23
Q

refer to those whose value does not change