php mcq questions with answers


                                
Can a private static member be accessed from a public static method of the same class?
A.Yes
B.No
C.Only if the class is defined as an abstract
                                
After performing the following operations: $a = array('a', 'b', 'c'); $a = array_keys(array_flip($a)); What will be the value of $a?
A.array('c', 'b', 'a')
B.array(2, 1, 0)
C.array('a', 'b', 'c')
D.None of the above
                                
What is the name of the key pointing to the domain name in the array returned by parse_url()?
A.domain
B.path
C.host
D.2
E.scheme
                                
Which of the following superglobals does not contain data from the client?
A.$_POST
B.$_SESSION
C.$_GET
D.$_SERVER
                                
What tags can always be used to begin a PHP script (Choose 2)?
A.<?php
B.<?
C.<%
D.<%php
E.<script language="php">