WEB DEVELOPMENT & PROGRAMMING
CHAPTER 1-7 QUESTIONS AND
CORRECT ANSWERS
WhichA2ofA2theA2followingA2statementsA2bestA2describesA2theA2PHPA2Language?A2-A2Ans--
PHPA2isA2aA2cross-platformA2Server-
SideA2ScriptingA2languageA2thatA2runsA2onA2theA2serverA2whereA2theA2websiteA2resides
PHPA2codeA2cannotA2beA2viewedA2byA2usingA2theA2viewA2sourceA2optionA2insideA2aA2webA
2browser.A2-A2Ans--True
PHPA2scriptsA2cannotA2beA2runA2directlyA2againstA2aA2webA2browserA2withoutA2theA2useA2o
fA2aA2PHPA2interpretorA2suchA2asA2Apache?A2-A2Ans--True
WhichA2ofA2theA2followingA2commentA2statementsA2areA2validA2insideA2theA2PHPA2delimite
rsA2<?phpA2?>A2(MultipleA2AnswersA2areA2Allowed)A2-A2Ans--#A2myA2program
/*A2myA2programA2*/
//A2myA2program
WhichA2ofA2theA2followingA2PHPA2statementsA2areA2validA2-A2Ans--
$student_IDA2=A2"Mary";
WhatA2outputA2willA2beA2displayedA2basedA2onA2theA2PHPA2StatementA2below
$companyA2=A2"MarketA2Store";
printA2'$company';A2-A2Ans--$company
ToA2retrieveA2dataA2fromA2anA2HTMLA2formA2inA2theA2PHPA2section,A2whichA2ofA2theA2follo
wingA2isA2aA2validA2PHPA2statementA2-A2Ans--$nameA2=A2$_POST['name'];
BothA2ofA2theseA2statementsA2willA2storeA2theA2sameA2valueA2inA2theA2variableA2$number
$numberA2+=A25;
$numberA2=A2$numberA2+A25;A2-A2Ans--True
WhatA2valueA2willA2beA2storedA2inA2theA2variableA2$resultA2basedA2onA2theA2followingA2cod
e
$resultA2=A2number_format((100A2+A250)A2/A22,2);A2-A2Ans--75.00
CHAPTER 1-7 QUESTIONS AND
CORRECT ANSWERS
WhichA2ofA2theA2followingA2statementsA2bestA2describesA2theA2PHPA2Language?A2-A2Ans--
PHPA2isA2aA2cross-platformA2Server-
SideA2ScriptingA2languageA2thatA2runsA2onA2theA2serverA2whereA2theA2websiteA2resides
PHPA2codeA2cannotA2beA2viewedA2byA2usingA2theA2viewA2sourceA2optionA2insideA2aA2webA
2browser.A2-A2Ans--True
PHPA2scriptsA2cannotA2beA2runA2directlyA2againstA2aA2webA2browserA2withoutA2theA2useA2o
fA2aA2PHPA2interpretorA2suchA2asA2Apache?A2-A2Ans--True
WhichA2ofA2theA2followingA2commentA2statementsA2areA2validA2insideA2theA2PHPA2delimite
rsA2<?phpA2?>A2(MultipleA2AnswersA2areA2Allowed)A2-A2Ans--#A2myA2program
/*A2myA2programA2*/
//A2myA2program
WhichA2ofA2theA2followingA2PHPA2statementsA2areA2validA2-A2Ans--
$student_IDA2=A2"Mary";
WhatA2outputA2willA2beA2displayedA2basedA2onA2theA2PHPA2StatementA2below
$companyA2=A2"MarketA2Store";
printA2'$company';A2-A2Ans--$company
ToA2retrieveA2dataA2fromA2anA2HTMLA2formA2inA2theA2PHPA2section,A2whichA2ofA2theA2follo
wingA2isA2aA2validA2PHPA2statementA2-A2Ans--$nameA2=A2$_POST['name'];
BothA2ofA2theseA2statementsA2willA2storeA2theA2sameA2valueA2inA2theA2variableA2$number
$numberA2+=A25;
$numberA2=A2$numberA2+A25;A2-A2Ans--True
WhatA2valueA2willA2beA2storedA2inA2theA2variableA2$resultA2basedA2onA2theA2followingA2cod
e
$resultA2=A2number_format((100A2+A250)A2/A22,2);A2-A2Ans--75.00