DEFINITIONS(Part-6)
Test Condition: Each loop contains a test condition. It determines whether the loop has to be repeated or terminated.
Linear Search: It is the simplest way of searching a value. Every element of the array is checked with the value given by the user until the last element. It starts from the 0th position of the array.
Binary Search: Binary Search takes place only on sorted data items where the array is divided into halves and the value is checked in the desired half.
Bubble Sort: In this method, many iterations takes place during each iteration pairs of consecutive elements are compared and arranged according to the order.
Selection Sort: In this method, Successive rounds are executed to select the elements in some order and place them in their positions.
Single Dimensional array: When the elements of an array are specified by a single Subscript, the array is called the subscripted variable or single dimensional array.
Scanner class: It is available in System package java.util. It is used to enter values from the user from the console during the execution of the program.
Delimiter: It is a special character used to take out tokens using Scanner class.
Constructor: It is a member function with name same that of the class name used to initialize the values of instant variables.
Invoking: The process of using a method in the function in the program in called Invoking a method.
Module: It is a program segment.
Function prototype: The function prototype is the first line of the function definition that tells the program about the type of the value returned by the function and the number and types of arguments.
Function Signature: Function signature basically refers to the number and types of arguments, it is the part of the prototype.
Function Header: It is the first line of a method. It contains parameters list, return type, access specifier, and method name.
Parameter list: It is a list of parameters which are called during its invoking.
Access Specifier: It gives the publicity modes of the method. It can be either public or private or protected.
Return Statement: The statement which sends value from method to caller program is known as Return statement.
Actual Parameter: The parameter that appears in the function call statement is called the actual parameter.
Formal Parameter: The parameter that appears in function definition are called formal parameter.
Pass by Value (or) Call by Value: Pass by value is the process of passing a copy of actual parameters to the formal Parameters.
Pass by reference (or) Call by Reference: It is the process of passing the reference of actual parameters to the formal parameters.
Pure Function (or) Accessor: It is a Function which returns a value to the caller module. It does not change the state of an object.
No comments:
Post a Comment