
【名词&注释】
文件系统(file system)、软件设计(software design)、数据类型(data type)、表达式、相关内容(related contents)、错误信息(wrong information)、最前面
[单选题]下列说法正确的是( )。
A. main函数必须放在C程序的最后面
B. main函数必须放在C程序的最前面
C. main函数可以放在C程序的中间部分,但在执行C程序时是从程序开头执行的
D. main函数可以放在C程序的中间部分,但在执行C程序时是从main函数开始的
查看答案&解析
举一反三:
[单选题]有如下的程序; #include ctring> #include iostream> using namespace std; class MyString { public: MyString(const char *s); ~MyString() {delete[]data;} protected: unsigned len; char *data; }; MyString:: MyString (const char *s) { len=strlen(s); data=new char[len+1]; strcpy(data,s); } int main() { MyString a("C++ Programing"); MyString b(a); return 0; } 在运行上面的程序时出错,出错的原因是______ 。
A. 没有定义实现深层复制(深拷贝)的拷贝构造函数
B. 构造对象a时实参与形参类型不符
C. 系统不能生成缺省的拷贝构造函数
[单选题]下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 print "A" Case 1 Print "B" End Select Case 2 Print "C" End Select
A. A
B. B
C. C
[单选题]软件设计中模块划分应遵循的准则是()。
A. 低耦合低内聚
B. 高耦合高内聚
C. 低耦合高内聚
D. 内聚与耦合无关
[单选题]下述关于数据库系统的叙述中,正确的是( )。
A. 数据库系统减少了数据冗余
B. 数据库系统避免了-切冗余
C. 数据库系统中数据的-致性是指数据类型-致
D. 数据库系统比文件系统能管理更多的数据
[单选题]下面程序: Private Sub Form_Click() Dim x,y,z As Integer x=5 y=7 z=0 CallPI(x,y,z) Print Str(z) End Sub SubP1(By Val a As Integer, By Val b As Integer, c As Integer) C=a+b End Sub 运行后的输出结果为______。
B. 12
C. Str(z)
D. 显示错误信息(wrong information)
本文链接:https://www.zhukaozhuanjia.com/download/lv90ko.html