Test Your Programming Skills with Safcode!


Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 10
Each question carry 10 mark , no negative marking"


Quiz Start


__FILE__
__LINE__
__DATE__
__CLASS__

/* commented code here */
# commented code to end of line
all of the above
// commented code to end of line

Echo can take multiple parameters where as print cannot
They both behave the same.
Print can take multiple parameters where as echo cannot
Print is a function where as echo is not.

none of the above
Used to store variables of the current session
Used to register a global variable
Used to initialize a session.

$a[2]
$a[4]
$a[3]
$a[1]

headers_list()
Header_send()
header_sent()
header()

!=
<=>
<=!
<=

Private Home Page
Php pre processor
Personal Home Page
Hypeetext pre-processor

$REMOTE_ADDR
$DOMAIN
$_ENV
$GLOBALS

Search for character within a string
Locate position of a string’s first character
Find the last character of a string
None of these