Answer:
51015
Explanation:
Var b is a string, and it'll treat addition like <em>string concatenation </em>(aka just adding a message.) Since it's concatenation, it'll then turn the numbers/integers into strings.
This kind of behavior might be different depending on the language, though. Some languages might not allow this. (For example, C and C++)
The answer to this question is A
the following C++ function will return true if the given non - negative number is multiple of 5 or 3 else it will return false.
bool function( int x ){
// variable to check if it is multiple of both or not
int number =0;
if(3%x == 0){
number++;
}
if(5%x == 0){
number++;
}
// Now returning by deciding
if( number <=1)
return true;
else
return false
}
Answer:
Explanation:
pop(): Remove an item from the end of an array
push(): Add items to the end of an array
shift(): Remove an item from the beginning of an array
unshift(): Add items to the beginning of an array