03-02-2010, 02:12 PM
|
#12
|
تاريخ التسجيل: Nov 2008
التخصص: نظم معلومات حاسوبية (CIS)
نوع الدراسة: إنتظام
المستوى: متخرج
الجنس: أنثى
المشاركات: 175
|
رد: Finals _ IS _ 07_ 1st 2010
CPIS 358 (Female)
Web Programming
Mon.1-2-2010
Q1 : (5 points/5 marks) Choose the correct answer
Q2: (10 points/5 marks) True / False
Q3: 4 major deferences between java and PHP and one similerty
Q4: Defined
- Apache Server
- MySQL
- SCV file
Q5: what is the functions and list the parameters
- feoF(..)
- mysql_connect(...,...,...,...)
- fgets(...,...)
Q6: (a) find the output
كود:
<?php $p1 = array("name" => "apple",
"color" => "red", "price" => 1.85);
$p2 = array("name" => "pear",
"color" => "green", "price" => 1.25);
$p3 = array("name" => "banana",
"color" => "yellow", "price" => 0.65);
$fruits = array($p1, $p2, $p3);
foreach ($fruits as $x)
{ echo $x["name"] . "<br />"; } ?>
( b)
write a php code that generate an html page that display the above data in dynamic table
|
|
|
|
|