考试吧综合考试论坛's Archiver

考友录-真实的考友社区,邀请注册中!

月光族 发表于 2007-9-11 07:53

软设天天练第36期(有详解)

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 28pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0;"><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">&nbsp;&nbsp;5</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">.语句</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">"printf("%d\n"strlen("ats\nol2\1\\"))</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">;</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">"</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">的输出结果是(</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">)</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">①</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">②</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">③</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">④</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">&nbsp;8 <br/>&nbsp;&nbsp;6</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">.函数调用</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">“strcat(strcpy(strl</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str2)</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str3)”</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">的功能是(</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">)</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">①</span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">将字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">strl</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">复制到字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str2</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">中后再连接到字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str3</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">之后</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">②</span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">将字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">strl</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">连接到字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str2</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">中后再复制到字符率</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str3</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">之后</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">③</span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">将字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str2</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">复制到字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">strl</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">中后再将字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str3</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">连接到字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">strl</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">之后</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">
                                <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体;">④</span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">将字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str2</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">连接到字符率</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">strl</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">之后再将字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">strl</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">复制到字符串</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">str3</font></span><span style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">中</span><span lang="EN-US" style="FONT-SIZE: 14pt; LINE-HEIGHT: 150%;"><font face="Times New Roman">
                        </font><br style="mso-special-character: line-break;"/><br style="mso-special-character: line-break;"/><p></p></span></p>

月光族 发表于 2007-9-11 07:54

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%;"><span style="FONT-SIZE: 18pt; COLOR: red; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">详细解答</span><span lang="EN-US" style="FONT-SIZE: 18pt; COLOR: red; LINE-HEIGHT: 150%;"><p></p></span></p><p>**** Hidden Message *****</p></p>

fjutjw 发表于 2007-9-11 20:58

<p>直接给答案了?~&nbsp; 呵呵</p>

youyoupiaofeng 发表于 2008-3-12 18:49

5    ③
6    ③

hsybx 发表于 2008-4-1 12:37

谢谢啦!好期待答案哦!

rpybx 发表于 2008-4-3 00:40

两道题目的答案都是③!

iloveyss 发表于 2008-4-14 12:51

4      
3

iloveyss 发表于 2008-4-14 12:54

题目:语句"printf("%d\n"strlen("ats\nol2\1\\"));"的输出结果是(    )?
答案:在字符串"abs\no12\11\\" 中?
仔细看一下,我晕啦....

tianshiyulei 发表于 2008-4-26 17:51

3
3 ...饿 大概吧

yhxman 发表于 2008-4-29 07:51

3




5

keou 发表于 2008-4-29 16:04

第5题 是个什么东西啊 看不明白

purplebolt 发表于 2008-5-7 16:55

回复 1楼 的帖子

我还需要学习我还需要学习

kevin_305 发表于 2008-5-18 15:50

加油。。。。。。。。。。。。。。。。。。。。。。。。。。。。

q6321621 发表于 2008-5-19 00:19

看看我回答的对不对~~~

hope6868 发表于 2008-5-19 11:22

3,1

3,13,13,13,13,13,13,13,13,13,1

clm800627 发表于 2008-5-19 21:19

回复 1楼 的帖子

fesdsssssssssssd

封神无度 发表于 2008-5-21 20:42

2
3
侃侃答案

封神无度 发表于 2008-5-21 20:47

第一个是9
但是不那少了个 逗号 啊

gg138138 发表于 2008-5-21 21:56

2
3
jc= mmajs hlahsd

yking 发表于 2008-5-23 14:52

AA

aaaaaaaaaaaaaaaaaaaaaaaa

页: [1] 2 3

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.