网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

(31)设有如下通用过程:

Public Function Fun(xStr As String)As String

Dim tStr As String, strL As Integer

tStr=""

strL=Len(xStr)

i=1

i=i+1

Loop

Fun=tStr

End Function

在窗体上画一个名称为 Command1 的命令按钮。然后编写如下的事件过程:

Private Sub Command1_Click( )

Dim S1 As String

S1="abcdef"

Print UCase(Fun(S1))

End Sub

程序运行后,单击命令按钮,输出结果是( )。

A)ABCDEF

B)abcdef

C)AFBECD

D)DEFABC


参考答案

更多 “ (31)设有如下通用过程:Public Function Fun(xStr As String)As StringDim tStr As String, strL As IntegertStr=""strL=Len(xStr)i=1i=i+1LoopFun=tStrEnd Function在窗体上画一个名称为 Command1 的命令按钮。然后编写如下的事件过程:Private Sub Command1_Click( )Dim S1 As StringS1="abcdef"Print UCase(Fun(S1))End Sub程序运行后,单击命令按钮,输出结果是( )。A)ABCDEFB)abcdefC)AFBECDD)DEFABC ” 相关考题
考题 设有如下通用过程: Public FunctionFun(x Str As String)As String DimtStr As String,strL As Integer tStr="" strL=Len(xStr) i=1 DoWhilei<=strL/2 tStr=tStrMid(xStr,i,1)Mid(xStr,strL-i+1,1)" i=i+1 Loop Fun=tStr End Function 在窗体A.ABCDEFB.abcdefC.AFBECDD.DEFABC

考题 You are consuming a Windows Communication Foundation (WCF) service in an ASP. NET Web application.The service interface is defined as follows:[ServiceContract]public interface ICatalog{ [OperationContract] [WebGet(UriTemplate="/Catalog/Items/{id}", ResponseFormat=WebMessageFormat.Json)] string RetrieveItemDescription(int id); } The service is hosted at Catalogsvc.You need to call the service using jQuery to retrieve the description of an item as indicated by a variable named itemId. Which code segment should you use?()A. $get(String.format(/Catalogsvc/Catalog/Items/id{0}, itemId) null, function (data) { ... }, javascript);B. $get(String.format(/Catalogsvc/Catalog/Items/{0}, itemId), null, function (data) { ... }, json);C. $get(String.format(/Catalogsvc/Catalog/Items/{0}, itemld), null, function (data) { ... }, xml);D. $get(String.format(/Catalogsvc/Catalog/Items/id{0}, itemld), null, function (data) { ... }, json);

考题 设有如下通用过程:Pubfic Function Fun(xStr As String)As StringDim tStr As String,strL As Integertstr=“”strL=Len(xStr)i=1Do While i=strL/2tStr=tStr&Mid(xStr,i,1)&Mid(xStr,strL-i+1,1)i=i+1LoopFun=tStrEndFunction在窗体上画一个名称为Commandl的命令按钮。然后编写如下的事件过程:Private Sub Commandl_Click()Dim S1 As StringS1=“abcdef”Print UCase(Fun(S1))End Sub程序运行后,单击命令按钮,输出结果是A.ABCDEFB.abedefC.AFBECDD.DEFABC

考题 假定程序中有以下语句: answer=MsgBox("String1",,"String2","String31",2) 执行该语句后,将显示一个信息框,此时如果单击“确定”按钮,则answer的值为______。A.String1B.String2C.String3D.1

考题 已知String类定义如下:class String{public:String(const char *str = NULL); // 通用构造函数String(const String another); // 拷贝构造函数~ String(); // 析构函数String perater =(const String rhs); // 赋值函数private:char *m_data; // 用于保存字符串};尝试写出类的成员函数实现。

考题 已知类 String 的原型为class string{public:string(const char *str=null);//普通构造函数string(const string other);//拷贝构造函数---string(void);string operate=(const string other);//赋值函数private:char * m-data;//用于保存字符串};请编写 string 的上述4 个函数

考题 编写类 String 的构造函数、析构函数和赋值函数已知类 String的原型为:class String{public:String(const char *str = NULL); // 普通构造函数String(const String other); // 拷贝构造函数~ String(void); // 析构函数String perate =(const String other); // 赋值函数private:char *m_data; // 用于保存字符串};请编写 String的上述 4 个函数。

考题 要求:1. 按如下类图写出相应数据库建表 sql 脚本。 其中 Student 和 Score 是1 对多的关系,Scroe 和 Course是多对 1 的关系。Student-id: String-name: String-birthday: Date-address: String-phone: String-email: StringScore-student: Student-course: Course-grade: floatCourse-id: String-name: String-description: String

考题 设有变量string=“四川省职称计算机应用能力考试”,能够显示“四川省计算机应用能力考试”的命令是( )。A.string-“职称”1B.?SUBSTR(string,1,6)+SUBSTR(string,11,28)C.?SUBSTR(string,1,3)+SUBSTR(string,6,9)D.?STR(string,1,3)+STR(string,17,14)

考题 21、以下程序执行后的结果为 。 #include "stdio.h" #include <string.h> void fun(char *s) { char a[10]; strcpy(a,"string"); s=a; } main() { char *p="gao"; fun(p); printf("%s\n",p); }A.gaoB.结果不确定C.strD.string