• 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
PHP files have a default file extension of_______.

.xml
.ph
.html
.php

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
What will be the output of the following PHP code?
$user = array("Ashley", "Bale", "Shrek", "Blank");
for ($x=0; $x < count($user); $x++){
if ($user[$x] == "Shrek")
continue;
printf ($user[$x]);
}

AshleyBaleBlank
Shrek
AshleyBale
ShrekBlank

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
PHP considers the following values as False

both A and B
All of Above
constant NULL
the one-character string 0
the integer 0

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
The value of __NAMESPACE__ is a string that contains the current namespace name. In global, un-namespaced code, it contains . . . . . .

0
gibberish value
NULL
an empty string

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
Which of the conditional statements is/are supported by PHP?
1. if statements
2. if-else statements
3. if-elseif statements
4. switch statements

Only 1
1, 2 and 4
All of the mentioned.
2, 3 and 4

ANSWER DOWNLOAD EXAMIANS APP

Basic PHP
What will be the output of the following PHP code?
$a = "clue";
$a .= "get";
echo "$a";

false
clueget
true
get

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
↑