Technical Test for Freshers 3

0%
2

Complete this test in 20 minutes.


Technical Test 3 (PHP, MySQL, JavaScript)

1 / 10

Which of the following is NOT a magic predefined constant?

2 / 10

What gets printed?

class MyException extends Exception {}try {  throw new MyException('Oops!');} catch (Exception $e) {  echo "Caught Exception";} catch (MyException $e) {  echo "Caught MyException";}

3 / 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

4 / 10

What gets printed?

<?php$RESULT = 11 + 011 + 0x11;echo "$RESULT";?>

5 / 10

What is the strpos() function used for?

7 / 10

Which of the following is NOT a valid PHP comparison operator?

8 / 10

How do we access the value of 'd' later?

$a = array(    'a',    3 => 'b',    1 => 'c',    'd');

9 / 10

Which statement about the code below is correct?

class A {}class B {}class C extends A, B {}

10 / 10

What does PHP stand for?

Your score is

0%