Which of the following is the correct syntax for an if-else statement in PHP? Mark as favorite Copy Link Answer the question in 30 seconds! if(condition){ code }else{ code } if(condition) code; else code; if{condition} code; else code; if condition then code else code endif; Check Answer
Which of the following is the correct way to concatenate two strings in PHP? Mark as favorite Copy Link Answer the question in 30 seconds! $string1 . $string2 $string1 + $string2 $string1 : $string2 $string1 - $string2 Check Answer
Which keyword is used to define a function in PHP? Mark as favorite Copy Link Answer the question in 30 seconds! def function func define Check Answer
Which of the following is the correct way to create an indexed array in PHP? Mark as favorite Copy Link Answer the question in 30 seconds! $array = (1, 2, 3); $array = [1, 2, 3]; $array = {1, 2, 3}; $array = array(1, 2, 3); Check Answer
Which of the following is not a type of loop in PHP? Mark as favorite Copy Link Answer the question in 30 seconds! while for foreach repeat Check Answer
What is the correct way to define a variable in PHP? Mark as favorite Copy Link Answer the question in 30 seconds! $var = 10; var $var = 10; $var : 10; int var = 10; Check Answer
What is the purpose of a proximity sensor in robotics? Mark as favorite Copy Link Answer the question in 30 seconds! To detect the distance between two objects To measure the rotation of a joint To track the movement of a robot To scan the environment for obstacles Check Answer