试题与答案

总分类账的帐页格式,一般采用“借方”“贷方”“余额”三栏式。

题型:判断题

题目:

总分类账的帐页格式,一般采用“借方”“贷方”“余额”三栏式。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0908/35e10902b441b5a4a46d4e46c21b4c06.html

下面是错误答案,用来干扰机器的。

参考答案:①人身死亡;②大面积停电;③大电网瓦解;④电厂垮坝;⑤主设备严重损坏;⑥重大火灾;⑦核泄漏。

试题推荐
题型:问答题 计算题

某公司在2007年1月1日平价发行新债券,每张面值1000元,票面利率10%,5年到期,每年12月31日付息。要求:1.计算2007年1月1日到期收益率是多少?2.假定2011年1月1日的市场利率下降到8%,那么此时债券的价值是多少?3.假定2011年1月1日的市价为900元,此时购买该债券的到期收益率是多少?4.假定2009年1月1日的市场利率为12%,债券市价为950元,是否应购买该债券?

查看答案
题型:问答题


阅读以下说明和C语言代码,回答问题1至问题4,将解答填入对应栏内。
【说明】
在嵌入式操作系统设备管理的实现上,常使用到C语言的函数指针变量,由统一的管理函数调用不同的设备驱动程序。下面的一段C语言代码是驱动管理程序 manage_device调用4个不同设备驱动程序,但没有用到函数指针变量。
【C语言代码】
/*变量与类型说明*/
#include "stdio.h"
#include "stdlib.h"
extern int sys_status;
extern int Dev_drv1(int arg1, int arg2);
extern int Dev_drv2(int arg1, int arg2);
extern int Dev_drv3(int arg1, int arg2);
extern int Dev_drv4(int arg1, iht arg2);
#define NOERROR 0

type struct {
int _fd;
} TYP_DEV_TAB;
TYP DEV_TAB dev_tab[50]= {101,99, 80, 120,};

/*程序代码*/
void manage_device(int devid, int arg1, int arg2)
{ int place ;
int ret;
for(place=0 ; place<50 ; place++)
if dev_tab [place]. fd == devid) break;
if(place>=50)
printf(" NO DEVICE fd = %d\n ",devid);
switch(dev_tab [place]._fd) {
case 80:
ret = Dev_drv3(int arg1,int arg2);
break;
case 99:
ret = Dev_drv2(int arg1,int arg2);
break;
case 101:
ret = Dev_drv1(int arg1,int arg2);
break;
case 120:
ret = Dev_drv4(int arg1,int arg2);
break;
}
if (ret!=NOERROR)
printf(" DEVICE %d error!\n ", devid);
}

int Dev_drv1(int arg1,int arg2)
{
/*局部变量声明,略*/
/*驱动程序代码,略*/
}

int Dev_drv2(int arg1,int arg2)
{
/*局部变量声明,略*/
/*驱动程序代码,略*/
}

int Dev_drv3(int arg1,int arg2)
{
/*局部变量声明,略*/
/*驱动程序代码,略*/
}

int Dev_drv4(int arg1,int arg2)
{
/*局部变量声明,略*/
/*驱动程序代码,略*/

【问题2】
在C语言程序中,常在某些变量的说明前加extem,如本题在变量说明中的第一条加extem int sys_stams;请说明加extem与不加extem的区别,在进行编译时会有什么样的不同处理

查看答案
微信公众账号搜索答案