全部题库 / VB / 试题详情
单选题 VB
2018-02-08

[单选题] 以下不能输出“Program”的语句是

A.Print Mid(”VBProgram”,3,7)
B.Print Right(”VBProgram”,7)
C.Print Mid(”VBProgram”,3)
D.Print Left(”VBProgram”;7)

参考答案

D

答案解析

参考解析:Mid$(字符串,P,n)的功能是从位置P开始取字符串的n个字符;Right$(字符串,n)的功能是取字符串右部的n个字符;Left$(字符串,n)的功能是取字符串左部的n个字符.Left(”VBProgram”,7)的结果为”VBProgr”.

你可能感兴趣的试题

A.Label控件的Enabled属性与TextBox控件的Enabled属性
B.OpfionBraon控件的Value属性与CheckBox控件的Value属性
C.Commantt控件的Default属性与Command控件的Cancel属性
D.Command控件的Visible属性与Frame控件的Visible属性
A.Width或Height
B.Width和Height
C.Top或Left
D.Top和Left