PHP 相关问题解答 需解释原因

. 运行以下代码将显示什么?( )
"; ?>
A.The Value is: Dog B.The Value is: Cat
C.The Value is: Human D.The Value is: 10

  1. 如何给变量$a,$b 和$c 赋值才能使以下脚本显示字符串“Hello, World!”? ( )A.False, True, False B.True, True, False
    C.False, True, True D.False, False, True
  1. 考虑如下代码片段: 标记处填入什么代码才能产生如下数组输出?
    Array {
    [0] => 1
    [1] => 2
    [2] => 4
    [3] => 8
    [4] => 16
    [5] => 32
    [6] => 64
    [7] => 128
    [8] => 256
    [9] => 512
    }
    A.foreach($result as $key => $val)
    B.while($idx *= 2)
    C.for($idx = 1; $idx < STOP_AT; $idx *= 2)
    D.for($idx *= 2; STOP_AT >= $idx; $idx = 0)
    E.while($idx < STOP_AT) do $idx *= 2

51.运行以下代码将显示什么值?假设代码运行时的URL 是:index.php?c=25

A.25
B.-5
C.10
D.5

  1. 在index.php文件中有如下代码,如果用户在两个文字域中分别输入“php”和“great”,脚本输出什么? ( ) A.什么都没有 B.Array C.greatphp D.phpgreat

信息缺失严重,要根据啥猜呢

题目不完整,先把题目内容完善后才好解答