成本计算的主要程序包括()。The main procedures of cost calculation include ().
A.确定成本计算期Determining the cost calculating period
B.确定成本计算对象Determining the cost calculating object
C.确定成本项目Determining cost items
D.归集和分配有关费用 Collecting and distributing expenses
第1题:
以下程序的输出结果是【 】。
include<iostream.h>
void main( )
}
int a=0;
a+=(a=8) ;
cout<<a;
}
第2题:
下面程序的执行结果是______。
include<iostream.h>
include<iomanip.h>
using namespace std;
void main()
{
cout<<setfill('x')<<setw(10);
cout<<"Hello"<<endl;
}
第3题:
以下程序的输出结果 ______。
include<iostream.h>
void main()
{
int a=0;
a+ =(a=8);
cout<<a;
}
第4题:
以下程序的输出结果是【 】。
include<iostream.h>
include <string.h>
void main 0 {
char s[50];
strcpy(&s[O], "No" );
strcpy(&s[1], "123" );
strcpy (&s[2], "23456" );
cout<<s;
}
第5题:
有以下程序
#include <stdio.h>
main( )
{ printf("%d\n",NULL); }
程序运行后的输出结果是
A.0
B.1
C.-1
D.NULL没定义,出错
第6题:
有以下程序: #include <stdio. h> main( ) { unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。
A.-1
B.65535
C.32767
D.-32768
第7题:
有以下程序:#include <stdio.h>#include <string.h>main( ) { char a[ 7 ] = "a0 \0a0 \0"; int i,j; i = sizeof(a); j = strlen(a); printf(" % d %d \n" ,i,j); }程序运行后的输出结果是( )。
A.22
B.76
C.72
D.62
第8题:
有以下程序 #include <stdio.h> main() { char a=4; printf("%d/n,a=a<<1); } 程序的运行结果是______。
A.40
B.16
C.8
D.4
第9题:
以下程序的运行结果是【 】。
include<iostream>
include<string>
using namespace std;
void main(){
chara[10]="China",b[]="Chin",c[]="ese";
cout<<strlen(strcat(strcpy(a,b),c))<<endl;
}
第10题:
有以下程序: #include < stdio. h > main( ) { ehar str[ ] [10] = { "China" ," Beijing" } , * p = str[o]; printf( "% s \n", p + 10); }程序运行后的输出结果是( )。
A.China
B.Beijing
C.ng
D.ing
第11题:
以下4个程序中,完全正确的是
A.#include <stdio.h> main(); {/*programming*/ printf("programming!\n");}
B.#include <stdio.h> main(); {/*/ programming /*/ printf("programming!\n");}
C.#include <stdio.h> main() {/*/*programming*/*/ printf("programming!\n");}
D.include <stdio.h> main() {/*programming*/ printf("programming!\n");}
第12题:
有以下程序: #include <stdio.h> main( ) { intc = 35; printf( "% d \n" , e&c); } 程序运行后输出结果是( )。
A.0
B.70
C.35
D.1
第13题:
下列程序的运行结果为______。
include<iostream.h>
void main( )
{
int i;
for(i=1;i<6;i++)if(i==3)break;
cout<<"i="<<i<<endl;
}
第14题:
有如下程序:#include <iostream>#include <iomanip>using namespace std;int main(){cout.fill('*');cout<<left<<setw(4)<<123<< "OK"<<end1;return 0;}执行这个程序的输出结果是( )。
A.123*OK
B.123*OK**
C.*123OK
D.*123**OK
第15题:
下面程序运行输出的结果是【 】。
include <iostream>
using namespace std;
int main(){
char a[]="Chinese";
a[3]='\0';
cout<<a<<endl;
return 0;
}
第16题:
下列程序的输出结果是【 】。
include<iostream.h>
include<string.h>
void main(){
char b[30];
strcpy(&b[0],"XY");
strcpy(&b[1],"YZW");
strcpy(&b[2],"ZXY");
cout<<b<<end1;
}
第17题:
下面程序的执行结果是【 】。
include<iostream>
include<iomanip>
using namespace std;
void main()
{
cout<<setfill('x')<<setw(10);
cout<<"Hello"<<endl;
}
第18题:
以下程序的运行结果是 ( ) #definePI 3.141593 #include<stdio.h> main( ) { printf("PI=%fn",PI); }
A.3.141593=3.141593
B.PI=3.141593
C.3.141593=PI
D.程序有误,无结果
第19题:
下面程序的运行结果是( )。
include<stdio.h>
main()
{int a=25;
fun(&A);
}
fun(int *x)
{ printf("%d\n",++*x);
}
第20题:
有以下程序: #include <iostream> #include <fstream> using namespace std; int main ( ) { ofstream ofile; char ch; ofile.open ("abc.txt"); cin>>ch; while (ch!='#' ) { cin>>ch; ofile.put(ch);
A.程序编译时出错
B.abc#
C.abc
D.#
第21题:
有以下程序: #include<iostream> #include<string> using namespace std; int main() { char arr[2][4]; strcpy(arr[0],"you"); strcpy(arr[1],"me"); arr[0][3]='&'; cout<<arr[0]<<end1; return 0; } 执行后的输出结果是( )。
A.you&me
B.you
C.me
D.err
第22题:
下面程序的运行结果是 ( ) # include<stdio.h> # include<string.h> main( ) { char * a="AbcdEf",* b="aBcD" a + +;b + +; printf("%d\n",strcmp(a,b)); }
A.0
B.负数
C.正数
D.无确定值
第23题:
以下四个程序中,完全正确的是______。
A.#include <stdio.h> main(); {/*programming*/ printf("programming!\n");}
B.#inc lude<stdio.h> main() {/*/programming/*/ printf("programming!\n");}
C.#include <stdio.h> main() {/*programming*/ printf("programming!\n");}
D.include<stdio.h> main() {/*/*programming*/*/ printf("programming!\n");}
第24题:
有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是( )。
A.2
B.3
C.4
D.5