• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

Basic PHP

Basic PHP
What will be the output of the following PHP code?
$score = 1234;
$scoreboard = (array) $score;
echo $scoreboard[0];

1234
1
Error
2

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
Which of the below symbols is a newline character?

/r
\r
\n
/n

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
PHP files have a default file extension of_______.

.ph
.xml
.html
.php

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
Which of the following php statement/statements will store 111 in variable num?
1. int $num = 111;
2. int mum = 111;
3. $num = 111;
4. 111 = $num;

Only 3
Both 1 and 2
Only 1
All of the mentioned

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
Which statement will output $x on the screen?

echo “$$x”;
echo “/$x”;
echo “\$x”;
echo “$x;”;

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
Multiple namespaces cannot be defined in the same file.

TRUE
FALSE

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON Basic PHP

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑