Answer:
b. 16
Explanation:
The given PHP code segment consists of 2 statements.
$str="The quick brown fox jumps over the lazy dog";
This defines a variable $str and assigns the given text to it.
echo strpos($str,'fox');
This statement prints the location of 'fox' in the text associated with the variable $str.
Upon execution it will print the value 16 which corresponds to the position of 'fox' in the given sentence.
Answer:
It can take a negative input
Explanation:
When you declare a variable in Java and you get your input via Scanner library; the Scanner library will accept the input irrespective of whether it's negative or not.
Take for instance, the following segment
<em>Scanner input = new Scanner(System.in);</em>
<em>int userinput = input.nextInt()</em>
<em />
Irrespective of whether userinput is negative or positive, it'll accept it.
it's either C or D I am pretty sure that the answer is D
Answer: M and E
Explanation: Hope this helps