PHP Demo
Sign Up
Java
C++
C#
JavaScript
HTML & CSS
Scala
SQL
PHP
Python
All topics
What is the result of execution following code?
<?php $a = 500; $b = 200; echo $a % 2 * $b; ?>
0
Syntax error
500
200
100
Explanation
Arithmetic operators as * or % has the same priority. Remainder of 500 divided by 2 is 0.
Continue
Topic Statistics
25%
75
Right (%)
25
Wrong (%)
Sign Up
to get statistics
Follow Quizful
Send Feedback
or join
Test group