未分类题

已知有如下语句: s='hello, world' r=Mid(s,7,5) 运行上面的语句后,变量r的值为 ( )
D.orld

A.hello
B.wotld
C.llo,w

【参考答案】

B
解析:Mid(s,7,5)表示从字符串 s中的第7位开始向右取出5个字符。题中s为'hello,world'......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
<上一题 目录 下一题>
热门 试题

判断题
毡圈密封适用于油润滑密封。 A、正确 B、错误
未分类题
在窗体中添加一个命令按钮Commandl和一个文本框Text1,编写命令按钮Com-mand1 的 Click事件代码; Private Sub Command1_Click() Dim S As String*20 S=TextText End Sub 该程序的功能是当单击按钮Command1时,把变量S中内容写入一个顺序文件 datl. dar中,正确的程序段是 ( )A.Open 'datl. dat', For lnput As#1 Write井1,SB.Open'datl. dat' For Output As#1 Write#1, SC.Open'dat', For Binary As #1 Write #1, S Close #1D.Open datl. dat'For Random As #1 Write #1, S Close #1
A.Open
B.Open'datl.
C.Open'dat',
D.Open
相关试题
  • 脂蛋白代谢途径有
  • ___ instructions from the importe...
  • 根据《中国药典》(2015版)相关要求,...
  • The word 'weaklings'(Paragraph 2)...
  • 一位成年男子走在街上,突然以手抱胸,呻吟...