dancers fault she should try to turn off the power source
Answer:
B
Explanation:
It should be Do While or repeat until and Do until is wrong
Answer:
001101000111 is the bcd no for 347
Explanation:
try{
String[] names={"Tom","Suzie","Lina","Harry","Rosy"};
Scanner input=new Scanner(System.in);
System.out.println("Enter an integer: ");
int position=input.nextInt();
System.out.println(names[position]);
}catch(ArrayIndexOutOfBoundsException e){
System.out.println("Subscript out of range.");
}
Answer:
return instruction used to return a value from a function.
Explanation:
Function is a block of statement which perform the special task.
Syntax for define a function:
type name(parameter_1, parameter_2,...)
{
statement;
return variable;
}
In the syntax, type define the return type of the function. It can be int, float, double and also array as well. Function can return the array as well.
return is the instruction which is used to return the value or can use as a termination of function.
For return the value, we can use variable name which store the value or use direct value.