题目
A.is to
B.are to
C.is
D.are
第1题
A. is to
B. are to
C. is
D. are
第2题
A.A. is to
B.B. are to
C.C. is
D.D. are
第4题
statement made to the board of directors, the internal auditor said:
‘I think that someone is taking items from the warehouse. A physical inventory count is performed every three months,
and it has become apparent that about 200 boxes of flat-packed chairs and tables are disappearing from the
warehouse every month. We should get someone to investigate what has happened and quantify the value of the
loss.’
Required:
(c) Define ‘forensic accounting’ and explain its relevance to the statement made by the internal auditor.
(5 marks)
第5题
A.=SUM(D$3:F$3)-(H$3:I$3)B.=SUM(D$3:F$3) (H$3:I$3)C.=SUM(D3:F3)-(H3:I3)D.=SUM(D3:F3) (H3:I3)A.=COUNT(E3:E12,>=0)和=COUNT(E3:E12,=300)B.=COUNT(E3:E12,”>=0”)和=COUNT(E3:E12,”=300”)C.=COUNTIF(E3:E12,>=0)和=COUNT(E3:E12,=300)D.=COUNTIF(E3:E12,”>=0”)和=COUNT(E3:E12,”=300”)
第6题
下列程序的输出结果是非曲直【 】。
include<iostream, h>
class base
{
int x, y;
public:
base(int i, int j){x=i; y=j;}
virtual int add(){return x+ y;}
};
class three: public base
{
int z;
public:
three(int i, int j, int k) :base(i, j){z=k; }
int add() { return (base:: add()+z); }
};
void main()
{
three * q=new three(lO,20,30);
cout<<q->add()<<end1;
}
第7题
A.=SUM(D$3:F$3)-(H$3:I$3)B.=SUM(D$3:F$3)+(H$3:I$3)C.=SUM(D3:F3)-SUM(H3:I3)D.=SUM(D3:F3)+SUM(H3:I3)A.=COUNT(E3:E12,>=0)和=COUNT(E3:E12,=300)B.=COUNT(E3:E12,“>=0”)和COUNT(E3:E12,“=300”)C.=COUNTIF(E3:E12,>=0)和COUNTIF(E3:E12,=300)D.=COUNTIF(E3:E12,“=0”)和COUNTIF(E3:E12,“=300”)
第8题
在文件IN.dat中有200组数据,每组有3个数,每个数均是三位数。函数Rdata()读取这 200组数据存放到结构数组aa中,请编写函数greatSort(),其功能是:要求在200组数据中找出条件为每组中的第1个数大于第2个数加第3个数的和,其中满足条件的组数作为函数 greatSort()的返回值,同时把满足条件的数据存入结构数组bb中,再对bb中的数据按照每组数据的第1个数加第3个数之和的大小进行升序排列(第1个数加第3个数的和均不相等),排序后的结果仍重新存入结构数组bb中。最后调用函数Wdata(),把结果bb输出到OUT.dat文件中。
注意:部分源程序已经给出。请勿改动主函数main()、读数据函数Rdata()和输出数据函数Wdata()的内容。
include <stdio. h>
include <string.h>
include <conio. h>
typedef struct
{ int x1, x2, x3;
} data;
data aa[200], bb[200];
int greatSort ()
{
}
void Rdata ()
{ FILE *in;
int i;
in = fopen("IN.dat", "r");
for (i=0; i<200; i++)
fscanf (in, "%d %d %d", &aa[i]. x1, &aa[i] .x2, &aa[i] .x3);
fclose (in);
}
void Wdata(int count)
{ FILE *out;
int i;
ut = fopen("OUT.dat", "w");
for (i=0; i<count; i++)
{ printf("%d,%d,%d 第一个数+第三个数=%d\n", bb[i].x1,
bb[i].x2, bb[i].x3, bb[i].x1 + bb[i]. x3);
fprintf (out, "%d %d %d\n", bb[i] .x1, bb[i] .x2,
bb[i] .x3);
}
fclose (out);
}
void main ()
{ int count;
Rdata ();
count = greatSort() ;/* 返回满足条件的个数 */
Wdata (count);
}
第9题
已知数据文件IN.dat中存有200个四位数,并己调用读函数rData()把这些数存入数组a中,请编写函数spellNum(),其功能是:把个位数字和千位数字重新组成一个新的二位数(新二位数的十位数字是原四位数的个位数字,新二位数的个位数字是原四位数的千位数字),以及把百位数字和十位数字组成另一个新的二位数(新二位数的十位数字是原四位数的百位数字,新二位数的个位数字是原四位数的十位数字),如果新组成的两个二位数一个是奇数,另一个为偶数,并且两个二位数中至少有一个数能被17整除,同时两个新数的十位数字均不为 0,则将满足此条件的四位数按从大到小的顺序存入数组b中,并要计算满足上述条件的四位数的个数count。最后main()函数调用写函数wData(),把结果count以及数组b中符合条件的四位数输出到OUT.dat文件中。
注意:部分源程序已经给出。程序中已定义数组a[200]、b[200],己定义变量count。请勿改动数据文件IN.dat中的任何数据及主函数main()、读函数rData()和写函数wData()的内容。
include <stdio. h>
define MAX 200
int a[MAX], b[MAX], count = 0;
void spellNum ()
{
}
void rData()
{ int i;
FILE *fp;
fp = fopen("IN.dat", "r") ;
for (i=0; i<MAX; i++)
fscanf(fp, "%d,", &a[i]);
fclose (fp);
}
void wData ()
{ FILE *fp;
int i;
fp = fopen("OUT.dat", "w");
fprintf(fp, "%d\n", count);
for (i=0; i<count; i++)
fprintf(fp, "%d\n", b[i]);
fclose (fp);
}
void main ()
{ int i;
rData ();
spellNum ();
printf ("满足条件的数=%d\n", count);
for (i=0; i<count; i++)
printf("%d ", b[i]);
printf ("\n");
wData ();
}
第10题
阅读以下说明和C++代码,将解答写入对应栏内。
【说明】
请编写一个函数int SeqSearch(int list[],int start,int n,int key),该函数从start开始,在大小为n的数组list中查找key值,返回最先找到的key值的位置,如果没有找到则返回-1。请修改程序中画线部分的错误并将不同情况下的输出结果补充完整。
【程序】
文件search.cpp的内容如下:
include <iostream. h >
int SeqSearch(int list[ ] ,int start,int n,int key)
{
for(int i=start;i<=n;i++) //(1)
{
if(list[i] = key)//(2)
{
return i;
}
}
return -1;
}
void main()
{
int A[10]
int key,count=0,pos;
cout <<" Enter a list of 10 integers:";
for(pos=0;pos<10;pos++)
{
cin >>A; //(3)
}
cout <<" Enter a key; ";
cin >> key;
pos=0;
while((pos = SeqSearch (A, pos, 10, key)) !=-1 )
{
count ++;
pos ++;
}
cout<<key<<"occurs" <<count<< (count!=1?" times":" time") <<" in the list,"
<< endl;
}
第一种情况:输入2 3 12 6 8 45 8 33 7输入key:8
输出:(4)
第二种情况:输入2 3 126 8 45 8 33 7输入k6y:9
输出:(5)
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!