CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL Javascript Linux Forum

You are here : Home » PHP » Objective Questions

PHP Objective Questions - 52


Question: 1

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

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 2

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

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 3

(A) True
(B) False

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 4

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

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 5

(A) Yes
(B) No

Compiler DiscussOnForum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 6

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 7

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

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 8

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

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 9

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 10

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 11

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 12

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

Compiler DiscussOnForum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 13

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

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 14

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 15

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

Compiler DiscussOnForum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 16

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

Compiler DiscussOnForum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 17

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

Compiler DiscussOnForum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 18

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

Compiler DiscussOnForum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 19

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

Compiler DiscussOnForum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 20

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

Compiler DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 21

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

Compiler DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 22

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

Compiler DiscussOnForum
Beginner arrays[Posted by: Admin | 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

Compiler DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 24

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

Compiler DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 25

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 26

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 27

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 28

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 29

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 30

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

Compiler DiscussOnForum
Practionar methods[Posted by: Admin | Chicago, USA]



Question: 31

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 32

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 33

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

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 34

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

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 35

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

Compiler DiscussOnForum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 36

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

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 37

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

Compiler DiscussOnForum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 38

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

Compiler DiscussOnForum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 39

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 40

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

Compiler DiscussOnForum
Practionar conditional[Posted by: Admin | Chicago, USA]



Question: 41

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

Compiler DiscussOnForum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 42

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

Compiler DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 43

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

Compiler DiscussOnForum
Practionar classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 44

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

Compiler DiscussOnForum
Practionar classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 45

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

Compiler DiscussOnForum
Practionar classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 46

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

Compiler DiscussOnForum
Expert variables[Posted by: Haze | Serbia, Belgrade]



Question: 47

(A) validateAddress
(B) ValidateMail
(C) CheckAddress
(D) CheckMail

Compiler DiscussOnForum
Beginner methods[Posted by: Harshit Gupta | Allahabad India]



Question: 48

(A) 10 10
(B) 6 4
(C) 4 10
(D) 10 4

Compiler DiscussOnForum
Practionar operators[Posted by: Harshit Gupta | Allahabad India]



Question: 49

(A) 10 10
(B) 4 6
(C) 10 6
(D) 6 10

Compiler DiscussOnForum
Beginner variables[Posted by: Harshit | Gupta]



Question: 50

(A) 80
(B) 0.008
(C) 0.08
(D) 8

Compiler DiscussOnForum
Beginner methods[Posted by: KWED | Lagos Nigeria]



Question: 51

(A) 0 Odd . 1 Even . 2 Odd . 3 Even . 4 Odd . 5 Even . 6 Odd . 7 Even . 8 Odd . 9 Even .
(B) 0 Even . 1 Odd . 2 Even . 3 Odd . 4 Even . 6 Even . 7 Odd . 8 Even . 9 Odd . 10 Even .
(C) 0 Even . 1 Odd . 2 Even . 3 Odd . 4 Even . 5 Odd . 6 Even . 7 Odd . 8 Even . 9 Odd . 10 Even .
(D) 0 Error. 1 Odd . 2 Even . 3 Odd . 4 Even . 5 Odd . 6 Even . 7 Odd . 8 Even . 9 Odd ..

Compiler DiscussOnForum
Beginner loops[Posted by: KWED | Lagos Nigeria]



Question: 52

(A) Compiler Error
(B) 122135.1
(C) Runtime Error
(D) None of the above

Compiler DiscussOnForum
Beginner operators[Posted by: beginner | GJ INDIA]


[Contribute Here]