网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
程序 character*(*)name name=’apple’ L=len(name) Do10I=1,L 10name(I:I)=char(Ichar(name(I:I))+I print*,name end 程序运行后输出结果为( )
A
APPLE
B
brspj
C
jpsrb
D
apple
参考答案
参考解析
解析:
暂无解析
更多 “单选题程序 character*(*)name name=’apple’ L=len(name) Do10I=1,L 10name(I:I)=char(Ichar(name(I:I))+I print*,name end 程序运行后输出结果为( )A APPLEB brspjC jpsrbD apple” 相关考题
考题
( 29 )有如下程序:#includeiostreamusing namespace std;class Name{char name[20];public:Name(){strcpy(name,""); cout'?';}Name(char *fname)){strcpy(name,fname); cout'?';}};int main(){Name names[3]={Name(" 张三 "),Name(" 李四 ")};Return 0;}运行此程序输出符号?的个数是A ) 0B ) 1C ) 2D ) 3
考题
有以下程序段:char name[20】;int num;scanf(name=%S num=%d,name,num);当执行上述程序段,并从键盘输入:name=Lili mum=1001回车后,name的值为( )。A.LiliB.name=LiliC.Lili num=D.name=Lili num=1001
考题
哪个选项是下面代码的执行结果()name="Python语言程序设计课程"print(name[0],name[2:-2],name[-1])
A、Pthon语言程序设计课课B、Pthon语言程序设计课C、Pthon语言程序设计程D、Pthon语言程序设计课程
考题
有如下程序:#includeiostreamusing flamespace std;class Name{char name[20];public:Name(){strcpy(name,“”); cout‘?’;}Name(char*fname){strcpy(name,fname); cout‘?’;}};int main(){Name names[3]={Name(”张三”),Name(”李四”)};return 0;}运行此程序输出符号?的个数是A.0B.1C.2D.3
考题
有如下程序: include using namespace std; class Pet{ char name[10]; public: Pet(c
有如下程序:include<iostream>using namespace std;class Pet{char name[10];public:Pet(char*name){strcpy(this->name,name);}const char*getName()const {return name;}virtual void call()const=0;};class Dog:public Pet{public:Dog(char*name):Pet(name){}void call()const{cout<<"汪汪叫":}};class Cat:public Pet{public:Cat(char*name):Pet(name){}void call()const{cout<<"喵喵叫";}};int main(){Pet*pet1=new Dog("哈克"),*pet2=new Cat("吉米");cout<<pet1->getName();pet1->call();cout<<end1;cout<<pet2->getName();pet2->call();cout<<end1;return 0;}程序的输出结果是______。
考题
依据PEO.DGF中的字段名NAME制作一个单一的关键字索引文件N^MEl.IDX,填出下列程序段所缺内容。 CLOSE ALL USE PEO LIST _________ LASTA.USE INDEX ON NAME FOR NAME1B.USE INDEX ON NAME1C.INDEX 0N NAME WITH NAME1D.INDEX 0N NAME TO NAME1
考题
有如下程序:includeusing namespace std;class Name{char name[20];public:Name( ){s
有如下程序: #include<iostream> using namespace std; class Name{ char name[20]; public: Name( ){strepy(name," ");tout<<'?';} Name(char*fname){strcpy(name,fname);cout<<'?';} }; int main( ){ Name name[3]={Name("张三"),Name("李四")}; return 0; } 运行此程序输出符号“?”的个数是A.0B.1C.2D.3
考题
欲执行程序NAME.prg,应该执行的命令是( )。A. DO PRG NAME.prgB. DO NAME.prgC. DO CMD NAME.prgD. DO F(RM NAME.prg
考题
有如下程序: #includeiostream usingnamespacestd; className{ charname[20]; public: Name( ){ strcpy(name,"");cout?; } Name(char*fname){ strcpy(name,fname);cout?; } }; intmain( ){ Namenames[3]={Name(”张三”),Name(”李四”)); return0; } 运行此程序输出符号?的个数是( )。A.OB.1C.2D.3
考题
依据PEO.DBF中的字段名NAME制作一个单一关键字索引文件NAME1.IDX,下列程序段所缺的内容是( ) CLOSE ALL USE PEO LIST _____ LISTA.USE INDEX ON NAME FOR NAME1B.USE INDEX ON NAME1C.INDEX ON NAME WITH NAME1D.INDEX ON NAME TO NAME1
考题
Which command will allow the creation of a10-character login user name?()
A.chlogin -a log_name=10B.chdev -l sys0 -a max_logname=10C.chusr extended_logname=true [userid]D.chuser login_name=10 extended_logname=true [userid]
考题
Personal Information1. What is your name? Your name, please? Please give me your name. May I have your name?
考题
(16)有以下程序段char name[20]; int num;scanf("name=%s num=%d",name;num);当执行上述程序段,并从键盘输入:name=Lili num=1001回车后,name的值为A)LiliB)name=LiliC)Lili num=D)name=Lili num=1001
考题
html语言中,创建一个位于文档内部的靶位的标记是?()A、name="NAME" B、name="NAME"/name C、a name="NAME"/a D、a name="NAME"
考题
public class Employee{ private String name; public Employee(String name){ this.name = name; } public String getName(){ return name; } } public class Manager extends Employee{ public Manager(String name){ System.out.println(getName()); } } 执行语句new Manager(“smith”)后程序的输出是哪项?() A、 smithB、 nullC、 编译错误D、 name
考题
以下属于属性选择器的是()。A、$("input:name==a")B、$("div[name=’a1’]")C、$("span[name!=’a1’]")D、$("p[name^=’a1’]")
考题
Which command will allow the creation of a10-character login user name?()A、chlogin -a log_name=10B、chdev -l sys0 -a max_logname=10C、chusr extended_logname=true [userid]D、chuser login_name=10 extended_logname=true [userid]
考题
$str = "My name is Jack, and what is your name?";echo substr_count ($str,“name”);程序的输出结果为()。A、1B、2C、3D、4
考题
单选题You need to display the last names of those employees who have the letter "A" as the second character in their names.Which SQL statement displays the required results?()A
SELECT last_name FROM EMP WHERE last_ name LIKE '_A%';B
SELECT last_name FROM EMP WHERE last name ='*A%'C
SELECT last_name FROM EMP WHERE last name ='_A%';D
SELECT last_name FROM EMP WHERE last name LIKE '*A%'
考题
单选题有如下程序:#include #include main(){ char name[10]=c-book; char *str=name; printf(%d,%d,%d,%d, sizeof(name), strlen(name), sizeof(str), strlen(str));}程序运行后的输出结果是( )。A
10,6,4,6B
11,6,11,6C
11,6,1,6D
10,7,1,7
考题
单选题有以下程序段:char name[20];int num;scanf(name=%s num=%d,name,num);当执行上述程序段,并从键盘输入:name=Lili num=1001回车后,name的值为( )。A
LiliB
name=LiliC
Lili num=D
name=Lili num=1001
考题
单选题$str = "My name is Jack, and what is your name?";echo substr_count ($str,“name”);程序的输出结果为()。A
1B
2C
3D
4
考题
单选题public class Employee{ private String name; public Employee(String name){ this.name = name; } public String getName(){ return name; } } public class Manager extends Employee{ public Manager(String name){ System.out.println(getName()); } } 执行语句new Manager(“smith”)后程序的输出是哪项?()A
smithB
nullC
编译错误D
name
考题
单选题有如下程序:#include main(){ char name[10] = {'S','T','R','I','N','G'}; name[3]='E'; name[5]=0; printf(%s,name);}程序运行后的输出结果是( )。A
STRENGB
STRIEGC
STREND
STREN0
考题
单选题有以下程序:#include #include struct S{ char name[10];};main(){ struct S s1,s2; strcpy(s1.name,12345); strcpy(s2.name,ABC); s1=s2; printf(%s,s1.name);}程序运行后的输出结果是( )。A
ABC12B
ABC45C
12345D
ABC
考题
单选题有以下程序:#include #include struct S{ char name[10];};main(){ struct S s1,s2; strcpy(s1.name,XXX); strcpy(s2.name,=); s1=s2; printf(%s,s1.name);}程序运行后的输出结果是( )。A
=B
XXXC
=XXD
X=
考题
单选题程序 character*(*)name name=’apple’ L=len(name) Do10I=1,L 10name(I:I)=char(Ichar(name(I:I))+I print*,name end 程序运行后输出结果为( )A
APPLEB
brspjC
jpsrbD
apple
热门标签
最新试卷