Mar 6, 2007

PHP written test for Gameloft, NewPostofNewSemester,

More than 30 days passed since last update.
Recently I am learning and preparing some foundational knowledge for programming, something like OOP,data structure and C/C#/Java language etc.


Gameloft PHP test,most of the questions are very basic conceptions and functions,involving PHP array operations,mysql query, and session tricks. for me the most difficult one maybe the bubble arithmetic for number sort.so let's mark it here.

function bubble_sort($array)
{
$count = count($array);
if ($count <= 0) return false; for($i=0; $i<$count; $i++)
{
for($j=$count-1; $j>$i; $j--)
{
if ($array[$j] < $array[$j-1])
{
$tmp = $array[$j];
$array[$j] = $array[$j-1];
$array[$j-1] = $tmp;
}
}
}
return $array;
}

Gameloft is known for the cell phone games.so WAP is also involved in this test. for this part , i did nothing.

1 comment:

Vu said...

you don't do this part, do you pass the test?