Data Structures and Algorithms Topic - 2 Flashcards

1
Q

executable statements are placed in functions, known
as ________.

A

Method

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

Any set of statements between the braces “{” and “}” define a ________.

A

Program Block

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

The name of a class, method, or variable in Java is called an _________.

A

Identifier

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

Most commonly used data types :

A
  1. boolean
  2. char
  3. byte
  4. short
  5. int
  6. long
  7. float
  8. double
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • also called as “fields”
  • represent the data associated with an object of a class
A

Instance Variables

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

are blocks of code that can be called to perform actions

A

Method

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

a method that returns information to the caller without changing any instance variables

A

Accessor Method

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

a method that may change one or more instance variables when called

A

Update Method

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

is effectively a mutable version of a string

A

StringBuilder Class

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