网页资讯贴吧知道视频音乐图片地图文库
进入贴吧全吧搜索吧内搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
04月13日漏签0天
php吧 关注:185,547贴子:1,133,177
  • 看贴

  • 图片

  • 精品

  • 视频

  • 游戏

  • 4回复贴,共1页
<<返回php吧
>0< 加载中...

请高人帮忙。

  • 收藏

  • 回复
  • 150.101.211.*
快试试吧,
可以对自己使用挽尊卡咯~
◆
◆
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
不是复杂的PHP的问题。谢谢大家,谁能告诉我一下答案?
1.What will the following code fragment output?
$num = 100;
(boolean) $num;
print $num;

2:
What will the following statement output?
print gettype("10");

3:
What will be the output from the following code fragment?
$test_val = 10.5466;
settype( $test_val, "integer" );
print $test_val;



4.Which of the following statements does not contain an expression?
4;
gettype(10);
5/12;



5:
Which of the statements in question 4 contains an operator?



6:
What value will the following expression return?
5 < 2
What data type will the returned value be?


7.Declare a variable with the name “student_ID” and store the value “ABC123


8.What value will the following expression return?
100 > 2









  • 小康菜
  • 路过酱油
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
建议楼主去“窗内网”上看看,或许能找到相关信息。


  • 拿芋
  • 路过酱油
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
本人刚学半个月……乱答 高手误喷……
1.输出:true  
2.输出:integer
3.输出:10
4.4;
5.gettype(10)
6.false
  boolean
7.$student_ID="ABC123"
8.TRUE

水平很菜 仅供参考……


  • 笨_笨_狗
  • 路过酱油
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
1.What will the following code fragment output?
$num = 100;
(boolean) $num;
print $num;//应该输出一个布尔true,但是我测试得到的输出100,用gettype()得到
//的$num的类型是integer,不明原因
2:
What will the following statement output?
print gettype("10");//string,因为10用引号括了

3:
What will be the output from the following code fragment?
$test_val = 10.5466;
settype( $test_val, "integer" );
print $test_val;//10,没有什么好说的



4.Which of the following statements does not contain an expression?
4;//这个,怎么感觉这个像是应试题
gettype(10);
5/12;



5:
Which of the statements in question 4 contains an operator?

//唉,单词都认识,就是不知怎么编译......

6:
What value will the following expression return?
5 < 2 //false
What data type will the returned value be?//boolean


7.Declare a variable with the name “student_ID” and store the value “ABC123 //$student_ID='ABC123';


8.What value will the following expression return?
100 > 2
//true,和6题重复了

OK,交卷,楼主上标准答案吧?








  



  • 124.126.157.*
快试试吧,
可以对自己使用挽尊卡咯~
◆
◆
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
诚接php 网站开发维护 qq739068168


登录百度帐号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 4回复贴,共1页
<<返回php吧
分享到:
©2020 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示