网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列对象中,属于字符串的是()
- A、"hello"
- B、’hello’
- C、""
- D、’’
参考答案
更多 “下列对象中,属于字符串的是()A、"hello"B、’hello’C、""D、’’” 相关考题
考题
下列实现C语言语句printf("Hello!")的相同功能的语句是( )。A.cout>>"Hello!"B.cin>>"Hello!"C.cout<<"Hello!"D.cin<<"Hello!"
考题
不能把字符串"Hello!"赋给数组b的语句是______。A.char b[10]={'H', 'e',' l',' l', 'o','!'};B.char b[10]={'h', 'e', 'l', 'l', 'o','!'};C.char b[10];strcpy (b, "Hello!"};D.char b[10]="Hello!";
考题
不能把字符串“Hello!”赋给数组的语是 ______。A.char b[10]={'H' ,' e' ,'1', '1', 'o' ,' !'};B.char b[10];b=" Hello!" ;C.char b[10];strcpy(b,"Hello!");D.char b[10]="Hello!"
考题
以下能正确进行字符串赋值操作的是______。A.char *sss;*sss="hello!";B.char *sss;sss="hello!";C.char sss[8];sss="hello!";D.char sss[8];*sss="hello!";
考题
不能把字符串:Hello!赋给数组b的语句是( )。A.char b[10]={’H’,’e’,’l’,’l’,’o’,’!’};B.char b[10]; b="Hello!";C.char b[10]; strcpy(b,"Hello!");D.char b[10]="Hello!";
考题
下列字符型常量Hello,world!表示方法中,错误的是______。A.[Hello,world!]B.'Hello,wOrld!'C.Hello,world!,D.{Hello,world!}
考题
在C语言中,关于字符串描述错误的是( )。A.C中的字符串是作为字符数组来处理的B.C语言规定:以‘\0’作为字符串结束标志C.char str[]={"hello\nworld!"}; puts(str); 输出: hello\n world!D.可以利用strlen(字符数组)测试字符串的长度
考题
在C语言中,利用数组a存放字符串“Hello”,以下语句中正确的是()。Achara[10]=“Hello”;Bchara[10];a=“Hello”;Cchara[10]=‘Hello’;Dchara[10]={‘H’,’e’,’l’,’l’,’o’};
考题
下列选项中,()是正确的表达式。 A、% String s = “hello world ” ;% B、% = “hello world ” ;% C、% = “hello world ” % D、% ! “hello world ” %
考题
在J2EE中,在自己定义的JavaBean中,有方法getComment(),返回字符串“hello!”,但是没有comment属性,当调用getComment()方法时会()。 A、抛出异常B、返回字符串“hello!”C、什么也没有D、编译不能通过
考题
在C语言中,利用数组a存放字符串“Hello”,以下语句中正确的是()。A、chara[10]=“Hello”;B、chara[10];a=“Hello”;C、chara[10]=‘Hello’;D、chara[10]={‘H’,’e’,’l’,’l’,’o’};
考题
Sql server提供了一些字符串函数,以下说法错误的是()。A、selec tright(’hello’,3)返回值为:helB、selec tltrim(rtrim(’hello’))返回值为:hello(前后都无空格)C、selec treplace(’hello’,’e’,’o’)返回值为:holloD、selec tlen(’hello’)返回值为:5
考题
C#中MyClass为一自定义类,其中有以下方法定义publicvoidHello(){⋯⋯}使用以下语句创建了该类的对象,并使变量obj引用该对象:MyClassobj=newMyClass();那么,可如何访问类MyClass的Hello方法?()。A、obj.Hello();B、obj::Hello();C、MyClass.Hello();D、MyClass::Hello();
考题
不能把字符串“Hello!”赋给数组b的语句是()A、char b[10]={’H’,’e’,’l’,’l’,’o’,’!’};B、char b[10];b="Hello!";C、char b[10];strcpy(b,"Hello!");D、char b[10]="Hello!";
考题
单选题在C语言中,利用数组a存放字符串“Hello”,以下语句中正确的是()。A
chara[10]=“Hello”;B
chara[10];a=“Hello”;C
chara[10]=‘Hello’;D
chara[10]={‘H’,’e’,’l’,’l’,’o’};
考题
单选题C#中MyClass为一自定义类,其中有以下方法定义publicvoidHello(){⋯⋯}使用以下语句创建了该类的对象,并使变量obj引用该对象:MyClassobj=newMyClass();那么,可如何访问类MyClass的Hello方法?()。A
obj.Hello();B
obj::Hello();C
MyClass.Hello();D
MyClass::Hello();
考题
单选题Sql server提供了一些字符串函数,以下说法错误的是()。A
selec tright(’hello’,3)返回值为:helB
selec tltrim(rtrim(’hello’))返回值为:hello(前后都无空格)C
selec treplace(’hello’,’e’,’o’)返回值为:holloD
selec tlen(’hello’)返回值为:5
考题
单选题SQL server提供了一些字符串函数,以下说法错误的是()。A
selectright(’hello’,3)返回值为:helB
selectltrim(rtrim(’hello’))返回值为:hello(前后都无空格)C
selectreplace(’hello’,’e’,’o’)返回值为:holloD
selectlen(’hello’)返回值为:5
考题
单选题下列选项中,()是正确的表达式。A
% String s = “hello world ” ;% B
% = “hello world ” ;% C
% = “hello world ” % D
% ! “hello world ” %
考题
单选题在J2EE中,在自己定义的JavaBean中,有方法getComment(),返回字符串“hello!”,但是没有comment属性,当调用getComment()方法时会()。A
抛出异常B
返回字符串“hello!”C
什么也没有D
编译不能通过
考题
单选题若有定义语句:char str1[] = "string", str2[8], *str3, str4[10] = "string";库函数strcpy的功能是复制字符串,以下选项中错误的函数调用是( )。A
strcpy(str3, "HELLO!");B
strcpy(str2, "HELLO!");C
strcpy(str1, "HELLO!");D
strcpy(str4, "HELLO!");
热门标签
最新试卷