![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
出口食品生产企业在生产出口食品前,应当向直属检验检疫局申请卫生注册或者卫生登记,填写并提交《
A.正确
B.错误
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
A.正确
B.错误
第1题
阅读下面程序:
include<iostream.h>
void fun1(char a,char b)
{
char c;
c=a;a=b;b=c;
}
void fun2(char&a,char&b)
{
char c;
c=a;a=b;b=c;
}
void main()
{
char a,b;
a='x';b='y';
fun1(a,b);cout<<a<<b;
a='x';b='y';
fun2(a,b);cout<<a<<b;
}
则该程序的输出为______。
第2题
阅读以下程序
#include<iostream.h>
void main()
{
char line[10];
cin>>line;
cout<<line<<endl;
}
如运行时输入This is example.<CR>,则程序的输出结果是
A.This
B.This is
C.This is a
D.This is an example.
第3题
下面程序的输出结果是()。 #include<iostream.h> #include"stdng.h" void main() { char a[]="welcome",b[]="well"; strcpy(a,b); cout<<a<<endl; }
A.wellome
B.wellcom
C.well
D.wellwe
第4题
下面程序的结果是 #include" iostream.h" void main() { char * str; Str="test!"; cout < < str[5]; }
A.程序错误
B.!
C.'\0'
D.为空字符
第5题
下面程序的输出结果是 #include<iostream.h> #include<string.h> void main() { char p1[10],P2[10]; strcpy(p1,"abc"); strcpy(p2,"ABC"); char str[50]="xyz"; strcpy(str+2,strcat(P1,p2)); cout<<six; }
A.xyzabcABC
B.zabcABC
C.xyabcABC
D.yzabcABC
第6题
下面程序的结果是 #include"iostream.h" void main() { char * str; str="test!"; cout<<str[5]; }
A.程序错误
B.!
C.'\0'
D.为空字符
第7题
下面程序的运行结果是【 】。
include<iostream.h>
void main()
{
char s[]="9876",*p;
for(p=s;p<s+2;p++)
cout<<p;
}
第8题
下面程序的输出结果是 #include<iostream.h> #include<string.h> void main() { char p1[10],p2[10] strcpy(p1,"abc"); strcpy(p2,"ABC"); char str[50]="xyz"; strcpy(str+2,strcat(p1,p2)); cout<<str; }
A.xyzabcABC
B.zabcABC
C.xyabcABC
D.yzabcABC
第9题
阅读以下程序,写出程序运行后的输出结果是 ______。 #include<iostream.h> void main(){ char a[]={'H','e','1','1','o','\0'}; int i,j; i=sizeof(a)/sizeof(char); j=strlen(a) cout<<i<<‘ ’<<j;
A.6 6
B.5 6
C.1 5
D.6 5
第10题
阅读以下程序,写出程序运行后的输出结果是 ______。 #include<iostream.h> void main(){ char a[]={'H','e','r','1',‘o’,'\0'}; int i, j; i=sizeof(a)/sizeof(char); j=strlen(a) cout<<i<<' '<<j; }
A.6 6
B.5 6
C.1 5
D.6 5
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!