ログイン

DCIT23

DCIT23
51問 • 1年前
  • Patrick Jay Dizon
  • 通報

    問題一覧

  • 1

    is a named block of code that performs a specific task or a set of tasks.

    method

  • 2

    are fundamental building blocks of programs, allowing developers to organize code into reusable units.

    methods

  • 3

    which is used to invoke or call the method from other parts of the program

    name

  • 4

    which are values provided to the method when it is called.

    parameters

  • 5

    allow methods to work with different data each time they are called.

    parameters

  • 6

    specifies the type of value that the method will return to the caller.

    return type

  • 7

    contains the code that defines what the method does. It is enclosed within curly braces {}. This is where the actual functionality of the method is implemented.

    method body

  • 8

    (such as public, private, protected, or package-private) to control their accessibility from other classes

    visibility modifiers

  • 9

    methods belong to the class itself

    static

  • 10

    methods belong to individual instances (objects) of the class and can only be called on those instances.

    instance

  • 11

    meaning that multiple methods within the same class can have the same name but different parameter lists

    overloading

  • 12

    set of instructions, allowing them to be treated as a single unit.

    encapsulation

  • 13

    allowing the same block of code to be reused multiple times.

    reusabillity

  • 14

    be broken down into smaller, more manageable modules.

    modularity

  • 15

    abstract away the implementation details of a particular task, providing a higher-level interface for interacting with the functionality they provide.

    abstraction

  • 16

    , allowing them to work with different data each time they are called.

    parameterization

  • 17

    return a value to the caller, which represents the result of the task they performed.

    return values

  • 18

    This allows methods to communicate information back to the calling code.

    return values

  • 19

    named according to their purpose or the action they perform, following naming conventions to improve code readability and maintainability

    naming conventions

  • 20

    common types of methods in java

    Instance methods, static methods, constructor methods, accessor methods (getters), mutator methods (setters)

  • 21

    associated with objects of a class.

    instance methods

  • 22

    belong to the class rather than to any specific instance of the class.

    static methods

  • 23

    special methods used for initializing objects.

    constructor methods

  • 24

    used to retrieve the values of private instance variables of a class

    accessor methods (getters)

  • 25

    used to modify the values of private instance variables of a class

    mutator methods (setters)

  • 26

    refers to the region of a program where a particular variable is accessible and visible

    scope

  • 27

    refers to the region within a block (method, constructor, or block of code enclosed within curly braces {}) where a variable is declared.

    local scope

  • 28

    refers to the region within a program where a variable is declared outside of any method, constructor, or block.

    global scope also known as class scope/file scope

  • 29

    types of scope in java

    class scope (static scope), instance scope ( object scope), local scope, block scope, method larameters scope, loop scope

  • 30

    Variables declared as static within a class have class scope

    class scope

  • 31

    are accessible to all instances of the class

    class scope

  • 32

    variables exist for the entire lifetime of the program

    class scope

  • 33

    are declared within a class but outside of any method

    instance scope

  • 34

    they are associated with individual instances (objects) of the class.

    instance scope

  • 35

    exist as long as the object exists

    instance scope

  • 36

    Variables declared within a method, constructor, or block (

    local scope

  • 37

    accessible only within the block

    local scope

  • 38

    nested blocks, where one block can be nested inside another.

    block scope

  • 39

    declared within an inner block

    block scope

  • 40

    accessible only within that block and any nested blocks

    block scope

  • 41

    passed to a method have scope within that method

    method parameters scope

  • 42

    accessible only within the method and are used to pass values to the method for computation.

    method parameters scope

  • 43

    Variables declared within the initialization part of a loop (e.g., for loop) have scope within the loop body.

    loop scope

  • 44

    are accessible only within the loop and are typically used as loop counters

    loop scope

  • 45

    process in which a function calls itself directly or indirectly to solve a particular

    recursion

  • 46

    involves the repetition of a set of instructions or similar processes in a self-referential manner,

    recursion

  • 47

    key aspects of recursion

    base case, recursive case, stack frames, stack overflow

  • 48

    defines the simplest possible scenario and provides a termination condition for the recursion.

    base case

  • 49

    where the function calls itself with a modified version

    recursive case

  • 50

    store the function's local variables and parameters.

    stack frames

  • 51

    , where the call stack becomes too large and exhausts the available memory.

    stack overflow

  • INTRO TO COM

    INTRO TO COM

    Patrick Jay Dizon · 63問 · 2年前

    INTRO TO COM

    INTRO TO COM

    63問 • 2年前
    Patrick Jay Dizon

    ETHICS - FINALS

    ETHICS - FINALS

    Patrick Jay Dizon · 87問 · 2年前

    ETHICS - FINALS

    ETHICS - FINALS

    87問 • 2年前
    Patrick Jay Dizon

    KWS

    KWS

    Patrick Jay Dizon · 31問 · 2年前

    KWS

    KWS

    31問 • 2年前
    Patrick Jay Dizon

    GNED 06

    GNED 06

    Patrick Jay Dizon · 44問 · 1年前

    GNED 06

    GNED 06

    44問 • 1年前
    Patrick Jay Dizon

    GNED01

    GNED01

    Patrick Jay Dizon · 34問 · 1年前

    GNED01

    GNED01

    34問 • 1年前
    Patrick Jay Dizon

    DALUMAT

    DALUMAT

    Patrick Jay Dizon · 58問 · 1年前

    DALUMAT

    DALUMAT

    58問 • 1年前
    Patrick Jay Dizon

    STS

    STS

    Patrick Jay Dizon · 100問 · 1年前

    STS

    STS

    100問 • 1年前
    Patrick Jay Dizon

    ITEC50

    ITEC50

    Patrick Jay Dizon · 67問 · 1年前

    ITEC50

    ITEC50

    67問 • 1年前
    Patrick Jay Dizon

    問題一覧

  • 1

    is a named block of code that performs a specific task or a set of tasks.

    method

  • 2

    are fundamental building blocks of programs, allowing developers to organize code into reusable units.

    methods

  • 3

    which is used to invoke or call the method from other parts of the program

    name

  • 4

    which are values provided to the method when it is called.

    parameters

  • 5

    allow methods to work with different data each time they are called.

    parameters

  • 6

    specifies the type of value that the method will return to the caller.

    return type

  • 7

    contains the code that defines what the method does. It is enclosed within curly braces {}. This is where the actual functionality of the method is implemented.

    method body

  • 8

    (such as public, private, protected, or package-private) to control their accessibility from other classes

    visibility modifiers

  • 9

    methods belong to the class itself

    static

  • 10

    methods belong to individual instances (objects) of the class and can only be called on those instances.

    instance

  • 11

    meaning that multiple methods within the same class can have the same name but different parameter lists

    overloading

  • 12

    set of instructions, allowing them to be treated as a single unit.

    encapsulation

  • 13

    allowing the same block of code to be reused multiple times.

    reusabillity

  • 14

    be broken down into smaller, more manageable modules.

    modularity

  • 15

    abstract away the implementation details of a particular task, providing a higher-level interface for interacting with the functionality they provide.

    abstraction

  • 16

    , allowing them to work with different data each time they are called.

    parameterization

  • 17

    return a value to the caller, which represents the result of the task they performed.

    return values

  • 18

    This allows methods to communicate information back to the calling code.

    return values

  • 19

    named according to their purpose or the action they perform, following naming conventions to improve code readability and maintainability

    naming conventions

  • 20

    common types of methods in java

    Instance methods, static methods, constructor methods, accessor methods (getters), mutator methods (setters)

  • 21

    associated with objects of a class.

    instance methods

  • 22

    belong to the class rather than to any specific instance of the class.

    static methods

  • 23

    special methods used for initializing objects.

    constructor methods

  • 24

    used to retrieve the values of private instance variables of a class

    accessor methods (getters)

  • 25

    used to modify the values of private instance variables of a class

    mutator methods (setters)

  • 26

    refers to the region of a program where a particular variable is accessible and visible

    scope

  • 27

    refers to the region within a block (method, constructor, or block of code enclosed within curly braces {}) where a variable is declared.

    local scope

  • 28

    refers to the region within a program where a variable is declared outside of any method, constructor, or block.

    global scope also known as class scope/file scope

  • 29

    types of scope in java

    class scope (static scope), instance scope ( object scope), local scope, block scope, method larameters scope, loop scope

  • 30

    Variables declared as static within a class have class scope

    class scope

  • 31

    are accessible to all instances of the class

    class scope

  • 32

    variables exist for the entire lifetime of the program

    class scope

  • 33

    are declared within a class but outside of any method

    instance scope

  • 34

    they are associated with individual instances (objects) of the class.

    instance scope

  • 35

    exist as long as the object exists

    instance scope

  • 36

    Variables declared within a method, constructor, or block (

    local scope

  • 37

    accessible only within the block

    local scope

  • 38

    nested blocks, where one block can be nested inside another.

    block scope

  • 39

    declared within an inner block

    block scope

  • 40

    accessible only within that block and any nested blocks

    block scope

  • 41

    passed to a method have scope within that method

    method parameters scope

  • 42

    accessible only within the method and are used to pass values to the method for computation.

    method parameters scope

  • 43

    Variables declared within the initialization part of a loop (e.g., for loop) have scope within the loop body.

    loop scope

  • 44

    are accessible only within the loop and are typically used as loop counters

    loop scope

  • 45

    process in which a function calls itself directly or indirectly to solve a particular

    recursion

  • 46

    involves the repetition of a set of instructions or similar processes in a self-referential manner,

    recursion

  • 47

    key aspects of recursion

    base case, recursive case, stack frames, stack overflow

  • 48

    defines the simplest possible scenario and provides a termination condition for the recursion.

    base case

  • 49

    where the function calls itself with a modified version

    recursive case

  • 50

    store the function's local variables and parameters.

    stack frames

  • 51

    , where the call stack becomes too large and exhausts the available memory.

    stack overflow