国家公务员担任不同层次领导职务的最高任职年龄应由谁规定?A.由同级政府规定B.由上一级政府规定C
国家公务员担任不同层次领导职务的最高任职年龄应由谁规定?
A.由同级政府规定
B.由上一级政府规定
C.由国家规定
D.由国家人事部门规定
国家公务员担任不同层次领导职务的最高任职年龄应由谁规定?
A.由同级政府规定
B.由上一级政府规定
C.由国家规定
D.由国家人事部门规定
第1题
阅读下列程序,写出程序的运行结果【 】。
include<iostream. h>
void main() { char str1[ ]: "Hello, World?;
char str2[100];
int i=0;
do{
if (str1[i]>= 'a'&& str1[i]<= 'z' )
str2[i]=str1[i]-32;
else
str2[i]=strl [i];
i++;
}while(strl[i]!='\0');
str2[i]='\0';
cout<<str1<<end1;
cout<<str2<<end1;
}
第2题
下列程序的运行结果为【 】。
include <iostream. h>
class myclass
{
private:
int a, b, c;
public:
void fun()
{
int a;
a=10;
this->,a=5;
b=6;
this->c=7;
cout<<"a="<<a<<",this->a="<<this->a<<endl;
}
};
void main()
{
myclass obj1;
obj1.fun()
}
第3题
下面程序的运行结果为 【10】 。
#include(iostream. h>
void fun(int x=0,int y=0)
{
cout<<
}
void main()
{
fun(5);
}
第4题
下列程序的输出结果为
#include< iostream. h>
int func(int n)
{
if〔n<1)return 1;
else return n+tune(n-1):
return 0;
}
void main()
{
cout<<
A. 0
B.10
C.15
D.16
第5题
下列程序的执行结果为【15】。
#include(iostream. h>
void main()
{
Cout.fill(’*’);
cout. width(10);
cout <<”hello”<
}
第6题
下列程序的执行结果是【 】。
include <iostream. h>
int a;
int sum_a(void)
{
a=a+5;
return a;
}
void main(void)
{
a = a+sum_a();
cout<<a<<endl;
}
第7题
下列程序的输出结果为【 】。
include <iostream. h>
void main()
{
char a[]="abcdabcabfgacd";
int i1=0,i2=0,i=0;
while (a[i])
{
if (a[i]=='a') i1++;
if (a[i]=='q') i2++;
i++;
}
cout<<i1<<''<<i2<<end1;
}
第8题
下列程序的运行结果是【 】。
include<iostream. h>
include<string. h>
void main()
{
char * a[5]={"stuent","worker","teacher","soldier"," peasant"};
char * p1, * p2;
p1=p2=a[0]
for(int i=0;i<5;i++)
{
if(strcmp(a[i],p1)>0)
p1=a[i];
if(strcmp(a[i],p2)<0)
p2=a[i];
}
cout<<p1<<","<<p2<<endl;
}
第9题
下列程序不能通过编译,应该在划线部分填写的语句是【 】。
include<iostream. h>
include<stdlib. h>
double Fune(int a, int b, char ch)
{
double x;
switch(ch)
{
case '+':
x=double(a) +b;
break;
case '--':
x= double(a) --b;
break;
case '/':
x=double(a) * b;
break;
case '/':
if(B) x=double(a) /b;
else
exit(1)
break
default:
exit(1);
}
______
}
void main()
{
cout<<Func(32 , 6 ,'--')<< ",";
cout<<Func(32, 6 ,'*') <<",";
cout<<Func(32, 6 ,'/') <<end1;
}
第10题
A.1.2 34
B.2.2 34
C.1.2 43
D.2.2 43
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!