Font size
WorksheetsPost-Test AJAX - PHP
Total questions: 15
Worksheet time: 21mins
If a condition has two choices, namely true and false, then the syntax used is ...
IF
IF ... ELSE
IF - IF .. ELSE - ELSE
SWITCH
A PHP program will display the name of the month when entering a number between 1 and 12 in the input form. The use of the right branching is ...
IF
IF ... ELSE
IF - IF .. ELSE - ELSE
SWITCH
From the following program, the final score displayed is…
9
10
90
100
The program below is used to display numbers 1 - 5. Complete the PHP code in the black box below.
The right syntax used to stop a loop when a condition occurs and continue the next loop is ...
WHILE
DO ... WHILE
BREAK
CONTINUE
PHP is a server-side programming, where the code will be executed on the server side. The following which one can act as a server on a local computer ...
XAMPP
HTDOCS
APACHE
MYSQL
The following is not a way of writing PHP code in HTML is ...
<? dan ?>
<?php dan ?>
<script language=”php”> dan </script>
<$ dan $>
Which is the wrong way to write variables in PHP?
$name
$_address
$1student
$school?
Which operator is used to calculate the modulo?
*
/
+/
%
The program below is used to display the numbers 2,4 and 6 where each array element will be multiplied by the number 2. Complete the PHP code in the following black box.
Write the output of the following PHP program.
What is not an advantage of Jquery ...
Resolved inter-browser compatibility issues
Speed up form processing
Simple code
Complete documentation
The function in JQuery that is used to ensure all the desired elements are displayed on the web page is ...
document ready()
document complete()
document all()
document display()
The functions provided by JQuery to hide elements are ...
fadeOut
fadeIn
fadeToggle
fadeSlow
Which is an AJAX function?
can load data from the server to a web browser without reloading (refreshing)
make code more concise
add style to the web page
create slide animations
