comp 3 Flashcards

1
Q

Anatomy of the statement

A

Arguments

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

pieces of information that are sent to a
method

A

Arguments

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

use to define Java class using any name.

A

Identifier

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

T or F
Identifiers must not use the reserved words

A

T

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

Pascal casing
- style that joins words which each word begins
with an uppercase letter.
- used in classes and variables

A

Upper Camel Casing

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

specifies the accessibility or scope of a field, method, constructor or class.

A

access specifiers

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

specifies the accessibility or scope of a field, method, constructor or class.

A

access specifiers

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

Types of Java Access Specifiers

A

Public
Private
Protected
Default

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

access level is everywhere

A

public

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

access level is only within the class.

A

Private

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

access level is within package and outside the package through child class.

A

protected

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

access level is only within the package

A

default

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

this method works without instantiating an object of the class

A

static

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

access specifier

A

public

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

method’s return type

A

void

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

it is a class, any arguments to this method must be string objects

A

string

15
Q

the argument to this method is an array of strings

A

square brackets

16
Q

the identifier of the array of strings that is the argument of this method

A

args

17
Q

Types of indentions

A

K & R Indention
Allman style

18
Q

named after Kernighan &
Ritchie (wrote the first book in
C language)

A

K & R Indention

19
Q

named after Eric Allman (popularized the style)

A

Allman style

20
Q

T or F
In this subject, the style
that will be use depends on the
preference of the students.

A

T