1) How a variable is declared in PHP? a) ?variableName=value; b) $variableName=value; c) =variableName=value; d) variableName=value; 2) What is the code to output "Hello World"? a) cout>>Hello World>/ b) cin>>Hello World>/ c) Hello World d) echo "Hello World"; 3) What is the correct opening tag and close tag for PHP scripts? a) opening tag = <?php / close tag = <? b) opening tag = <?php / close tag = ?> c) opening tag = include iostream / close tag = / d) opening tag = <? / close tag = ?> 4) What is the single-line comment in php? a) ** b) // c) */ d) *// 5) What is the multi-line comment in php? a) /* comment */ b) // comment // c) ** comment ** d) ?>php comment ?> 6) Create a variable named txt and assign the value "Hello" a) txt= "Hello"; b) <?php txt= "Hello"?> ; c) $txt= "Hello"; d) $Hello= "txt"; 7) Create an if else code when $a is greater than $b, it will print Hello. a) if ($a>$b) = cout Hello b) if ($a>$b) {echo "Hello World"; } c) if ($b>$a) {echo "Hello World"; } d) if ($a=$b) {echo "Hello World"; } 8) Call (execute) a function named myFunction a) int myFunction b) include int myFunction c) call myFunction; d) myFunction() 9) Here you see an associative array. Output "age" of Ben. $age = array("Peter"=>"35", "Ben"=>"37","Joe"=>"43"); a) echo "Ben is " .$age['Ben']. " years old."; b) echo "Ben is " .$age['37']. " years old."; c) echo "Ben is " .$array['37']. " years old."; d) echo "Ben is " .$age['Peter']. " years old."; 10) Create a session variable named "favcolor". a) session_start(); $_SESSION["green"] = "favcolor"; b) session_start(); $_SESSION["favcolor"] = "green"; c) session_stop(); $_SESSION["favcolor"] = "green"; d) session_stop(); $_SESSION["green"] = "favcolor";
0%
PHP
공유
공유
공유
만든이
Intannazira2110
콘텐츠 편집
인쇄
퍼가기
더보기
할당
순위표
더 보기
접기
이 순위표는 현재 비공개입니다.
공유
를 클릭하여 공개할 수 있습니다.
자료 소유자가 이 순위표를 비활성화했습니다.
옵션이 자료 소유자와 다르기 때문에 이 순위표가 비활성화됩니다.
옵션 되돌리기
게임쇼 퀴즈
(은)는 개방형 템플릿입니다. 순위표에 올라가는 점수를 산출하지 않습니다.
로그인이 필요합니다
비주얼 스타일
글꼴
구독 필요
옵션
템플릿 전환하기
모두 표시
액티비티를 플레이할 때 더 많은 포맷이 나타납니다.
결과 열기
링크 복사
QR 코드
삭제
자동 저장된
게임을 복구할까요?