NEW
Font size
WorksheetsDTS VSGA - PHP FEEDBACK QUIZ
Total questions: 20
Worksheet time: 3mins
PHP is.....
a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
a backend scripting language, and a powerful tool for making dynamic and interactive Web pages.
a dynamic scripting language, and a powerful tool for making dynamic and interactive Web pages.
a static scripting language, and a powerful tool for making dynamic and interactive Web pages.
PHP files can contain....
text, HTML, CSS, JavaScript, and PHP code
rows, HTML, CSS, JavaScript, and PHP code
text, column, rows, table, HTML, CSS, JavaScript, and PHP code
table, text, HTML, CSS, JavaScript, and PHP code
What Can PHP Do?....
PHP can generate dynamic page content
PHP can create, open, read, write, delete, and close files on the server
PHP can collect form data
All Answers are correct
<?php
$txt = "PHP";
echo "I love $txt!";
?>
the result is......
I love PHP!
I love PHP
I Love PHP!
I Love PHP
Which folder you should save your php project...
htdocs
htacces
http
xampp
PHP has three different variable scopes:.....
local
global
static
All answers are correct
if...else statement used for
executes some code if a condition is true and another code if that condition is false
executes some code if one condition is true
executes different codes for more than two conditions
selects one of many blocks of code to be executed
With PHP, there are two basic ways to get output:...
echo and print
echo and select
echo and print.out
echo and println
A comment in PHP code is.....
a line that is not executed as a part of the program
a line that is an executed as a part of the program
a line that is in executed as a part of the program
a line that is out executed as a part of the program
PHP supports the following data types:...
String, Integer, Float (floating point numbers - also called double), Boolean, Array, Object, NULL, Resource
String, Integer, Float (floating point numbers - also called double), Boolean, Array, Object, NULL
String, Integer, Float (floating point numbers - also called double), Boolean, Array, Object, Resource
String, Integer, Float (floating point numbers - also called double), Boolean, Array, NULL, Resource
What is SQL?
SQL stands for Structured Query Language
SQL lets you access and manipulate databases
SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987
All answers are correct
A FOREIGN KEY is....
a key used to join one tables together.
many keys used to link two tables together.
a field (or collection of fields) in one table that refers to the PRIMARY KEY in another table
many field (or collection of fields) in one table that refers to the PRIMARY KEY in another table
Untuk menerim data/informasi yang dikirim dari form menggunakan metode GET adalah?
$_GET
$_POST
$_GLOBAL
$_VAR
function SetNilai( $nilai= 50) {
echo $nilai;
}
SetNilai();
Program diatas akan menghasilkan output?
0
Null
50
Sintax Error
for ($x = 1; $x < 10; $x++) {
echo $x." ";
}
Kode tersebut menghasilkan output?
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9
Tidak menampilkan output karena kondisi tidak terpenuhi
Mengalami error syntax
Setiap variabel di PHP diawali dengan simbol?
#
$
%
*
Untuk membuat komentar di PHP menggunakan tanda?
//
/*
%
$
$a=5;
switch ($a){
case 1 : echo 1;break;
case 2 : echo 2;break;
case 3 : echo 3;break;
default : echo 4;
}
Program diatas menghasilkan output?
1
2
3
4
Fungsi/method untuk membuat enskripsi di PHP adalah?
number_format()
md5()
ltrim()
date()
Kode PHP diawali dan di akhiri dengan tanda?
<?php … </?php>
<script> … </script>
<?php … ?>
<php … /?>
