
【名词&注释】
模块化(modularization)、不存在(there is no)、程序结构(program structure)、逐步求精(stepwise refinement)、结构化程序设计方法(structured programming method)、新文件(new file)
[单选题]语句ofstreamf(“SALARY.DAT”,ios_base::app)的功能是建立流对象f,并试图打开文件SALARY.DAT 与f 关联,而且______。
A. 若文件存在,将其置为空文件;若文件不存在,打开失败
B. 若文件存在,将文件指针定位于文件尾;若文件不存在,建立一个新文件(new file)
C. 若文件存在,将文件指针定位于文件首;若文件不存在,打开失败
D. 若文件存在,打开失败;若文件不存在,建立一个新文件(new file)
查看答案&解析
举一反三:
[单选题]下列选项中,( )属性是用来描述表单的名称。
A. Caption
B. Name
C. TabStop
D. WindowType
[单选题]在设计程序时,应采纳的原则之一是( )。
A. 不限制goto语句的使用
B. 减少或取消注释行
C. 程序越短越好
D. 程序结构应有助于读者理解
[单选题]下列程序的输出结果是______。#include stdio.h>main (){ printf("%d\n",NULL);}
A. 0
B. -1
C. 1
[单选题]函数main()的功能是:在带头结点的单链表中查找数据域中值最小的结点.请填空
A. include
B. struct node
C. { int data;
D. struct node *next;
E. };
F. int min(struct node *first)/*指针first为链表头指针*/
G. { strct node *p; int m;
H. p=first->next; m=p->data;p=p->next;
I. for(;p!=NULL;p=_[20]_______)
J. if(p->datadata;
K. return m;
L. }
[单选题]下列选项中不属于结构化程序设计方法(structured programming method)的是
A. 自顶向下
B. 逐步求精
C. 模块化
D. 可复用
本文链接:https://www.zhukaozhuanjia.com/download/545n04.html