Prelim Extra Flashcards

1
Q

A (n) loop is a special loop that is used when a definite number of iterations required

A

for

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

Statements in which an if structure is contained inside another if structure are called ______ if statements

A

nested

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

in switch structure break is followed by one of the possible values for the expression and a colon
(True or False)

A

F

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

_______ error occurs when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it

A

logic

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

You use an import statement when you want to access a built-in-Java class that is contained in a group of classes called _______

A

package

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

*, /, % always take place after + or - in an expression

True or False

A

F

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

You can create a confirm dialog with 5 arguments

True or False

A

T

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

Describes the feature languages that allow the same word to be interpreted correctly in different situations based on the context

A

Polymorphism

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

It is important that the loop controlled ______ be altered within the body of the loop

A

Variable

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

The type to which all operands in an expression are converted so that they are compatible with each other

A

unifying type

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

Many seasoned programmers start counter values at 1 because they are used to doing so when working with arrays
(True or False)

A

F

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

When you place a block within if statement, it is crucial to place the _____ correctly

A

curly braces

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

When you block statements, you must remember that any ____ you declare within a block is local to that block

A

variable

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

one execution of any loop is called ______

A

iteration

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

is an error not detected until the program asks the computer to do something illegal or wrong while executing

A

run-time error

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

You can initialize more than one variable in a for loop by placing a(n) ______ between the separate statements

A

comma

17
Q

______ structure is one that involves choosing between alternative courses of action based on some value within a program

A

decision

18
Q

Failing to include a complete _____ on each side of an && operator in an if statement is a common error in Java programming

A

Boolean expression

19
Q

_______ requires 3 expressions separated with a (?) and (:)

A

Conditional operator

20
Q

is a loop that performs no actions other than looping

A

do-nothing loop

21
Q

Is the process the compiler uses to divide your source code into meaningful portions; the message means that the compiler was in the process of analyzing the code when the end of the file was encountered prematurely

A

parsing

22
Q

when a variable ceases to exist at the end of a method, programmers say the variable ______

A

goes out of scope

23
Q

Instance methods are static methods

True or False

A

F

24
Q

Method names that begin with _____ and set are very typical

read
call
get
next

A

get

25
Q

Methods that retrieve values are called ______ methods

A

accessor

26
Q

Parameters are the data items _____ by a method

A

required

27
Q

You can place a class’s methods first within the class. followed by fields
(True or False)

A

T

28
Q

A _______ constructor is one that requires no arguments

A

default

29
Q

When you write _____ for a class, you no longer have access to the automatically created version

A

constructor

30
Q

Public classes are accessible by all objects which means that public classes can be _____ or used as a basis for any other class

A

extended

31
Q

For ease in locating class methods, many programmers store them in ______ order

A

alphabetical

32
Q

A unique identifier is mostly used as a(n) ____ key in a database

A

primary

33
Q

Data items you use in a call to a method are called _____

A

arguments

34
Q

You can’t write a default constructor in Java; it must be provided automatically
(True or False)

A

F

35
Q

is a number appended to a field, typically an ID number or account number

A

check-digit

36
Q

is a method that creates and initializes class objects

A

constructor