Technical Test for Freshers 1

0%
8

Complete this test in 20 minutes.


Technical Test 1 (PHP, MySQL, JavaScript)

1 / 10

What is the output ?

<?php define("x","5"); $x=x+10; echo x; ?>

2 / 10

Choose the correct query to obtain sum of salary department-wise for emp table:

dept

salary

X

1000

X

2000

Y

3000

Y

4000

3 / 10

Which of the following function is used for terminate the script execution in PHP?

4 / 10

What is the return value of this substr function?
<?php
$rest = substr("abcdef", 0, -1);
?>

6 / 10

What will be the output of below code ?

<?php
$x=array(2=>"mouse",7=>"keyboard");
$y=array_keys($x);
echo $y[1];
?>

7 / 10

8 / 10

Which is the default order of sort in ORDER BY clause?

9 / 10

What is the output of
<?php
$x=array(1,3,2,3,7,8,9,7,3);
$y=array_count_values($x);
echo $y[8];
?>

10 / 10

Your score is

0%