Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

PHP Interview Questions - 46 Questions

You are here : Home » PHP » Interview Questions


Question: 1

(A) Client-side scripting language
(B) Server-side scripting language
(C) Middleware scripting language
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 2

(A) <?php echo "Hello" ?>
(B) <php? echo "Hello"; ?>
(C) <?php echo Hello; ?>
(D) <?php echo "Hello"; ?>

[Posted by: Admin | Location: Chicago, USA]



Question: 3

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 4

(A) //echo "Hello";
(B) 'echo "Hello";
(C) /* echo "Hello"; */
(D) /* //echo "Hello"; */

[Posted by: Admin | Location: Chicago, USA]



Question: 5

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 6

(A) 2
(B) 3
(C) 4
(D) 5

[Posted by: Admin | Location: Chicago, USA]



Question: 7

(A) $-a = 10;
(B) $1a = 10;
(C) $1a1 = 10;
(D) $a1 = 10;

[Posted by: Admin | Location: Chicago, USA]



Question: 8

(A) $a1 = 10;
(B) $$a = 10;
(C) $$$a = 10;
(D) $1a = 10;

[Posted by: Admin | Location: Chicago, USA]



Question: 9

(A) 5
(B) 6
(C) 7
(D) 8

[Posted by: Admin | Location: Chicago, USA]



Question: 10

(A) 5
(B) 6
(C) 7
(D) 8

[Posted by: Admin | Location: Chicago, USA]



Question: 11

(A) 5
(B) 6
(C) 7
(D) 8

[Posted by: Admin | Location: Chicago, USA]



Question: 12

(A) 01234
(B) 012345
(C) 24
(D) 024

[Posted by: Admin | Location: Chicago, USA]



Question: 13

(A) 32
(B) 27.67
(C) 27
(D) 34.33

[Posted by: Admin | Location: Chicago, USA]



Question: 14

(A) HiBye
(B) Hi
(C) Bye
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 15

(A) Sun
(B) Moon
(C) SunMoon
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 16

(A) Sun
(B) Moon
(C) Error
(D) None of these

[Posted by: Admin | Location: Chicago, USA]



Question: 17

(A) Sun
(B) Moon
(C) Error
(D) Sun Moon

[Posted by: Admin | Location: Chicago, USA]



Question: 18

(A) Sun
(B) Moon
(C) Sun Moon
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 19

(A) Sun
(B) Moon
(C) SunMoon
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 20

(A) 2
(B) 3
(C) 4
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 21

(A) 1
(B) 3
(C) 7
(D) 6

[Posted by: Admin | Location: Chicago, USA]



Question: 22

(A) 3
(B) 14
(C) 0
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 23

(A) 11 13 14 22 -3
(B) 3 11 13 14 22
(C) -3 22 14 13 11
(D) -3 11 13 14 22

[Posted by: Admin | Location: Chicago, USA]



Question: 24

(A) Error: Argument missing
(B) a is :
(C) a is: 50
(D) a is : 0

[Posted by: Admin | Location: Chicago, USA]



Question: 25

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 26

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 27

(A) Sun
(B) Moon
(C) SunMoon
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 28

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 29

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 30

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 31

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 32

(A) Sun
(B) Moon
(C) SunMoon
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 33

(A) 23
(B) 63
(C) 90
(D) 80

[Posted by: Admin | Location: Chicago, USA]



Question: 34

(A) 63
(B) 103
(C) 23
(D) 160

[Posted by: Admin | Location: Chicago, USA]



Question: 35

(A) ()
(B) *
(C) /
(D) ++

[Posted by: Admin | Location: Chicago, USA]



Question: 36

(A) 1.67
(B) 1.60
(C) 1.6666666666667
(D) 1.0

[Posted by: Admin | Location: Chicago, USA]



Question: 37

(A) 0
(B) 5-5
(C) $a-$a
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 38

(A) Sun
(B) Moon
(C) SunMoon
(D) SunSunMoon

[Posted by: Admin | Location: Chicago, USA]



Question: 39

(A) Sun
(B) Moon
(C) SunMoon
(D) SunSunMoon

[Posted by: Admin | Location: Chicago, USA]



Question: 40

(A) Sun
(B) SunMoon
(C) Compilation Error
(D) SunMoonSunMoon

[Posted by: Admin | Location: Chicago, USA]



Question: 41

(A) hello
(B) hello hello
(C) hello is printed infinite times
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 42

(A) Compilation Error
(B) cppbuzz
(C) "cppbuzz"
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 43

(A) cppbuzz
(B) ""
(C) "cppbuzz"
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 44

(A) cppbuzz
(B) "cppbuzz"
(C) ""
(D) Nothing is printed

[Posted by: Admin | Location: Chicago, USA]



Question: 45

(A) cppbuzz
(B) "cppbuzz"
(C) Nothing is printed
(D) error: can't access private property

[Posted by: Admin | Location: Chicago, USA]



Question: 46

(A) 0, 3
(B) 2, 3
(C) 3, 2
(D) 0, 4

[Posted by: Haze | Location: Serbia, Belgrade]


[Contribute Here]