正确答案: C
解题方案的准确而完整的描述
题目:在计算机中,算法是指 ______ 。
查看原题
举一反三的答案和解析:
[单选题]若要定义a为3×4的二维数组,正确的定义语句是 ( )
float a[3][4];
[单选题]有如下程序: #includeiostream> using namespace std; class Base{ int x; public: Base(int n=0):x(n){coutn;} int getX( )const{return x;} }; class Derived:public Base{ int y; public: Derived(int m,int n):y(m),Base(n){toutm;} Derived(int m):y(m){coutm;} }; int main( ){ Derived dl(3),d2(5,7); return 0; } 程序的输出结果是
0375
解析:解析:有如下程序: #includeiostream> using namespace std; class Base{ int x; public: Base(int n=0):x(n){coutn;} int getX( )const{return x;} }; class Derived:public Base{ int y; public: Derived(int m,int n):y(m),Base(n){toutm;} Derived(int m):y(m){coutm;} }; int main( ){ Derived dl(3),d2(5,7); return 0; } 程序的输出结果是
[单选题]以下有关数组定义的语句序列中,错误的是______。
Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer ...... End Sub
解析:解析:在数组定义中,定义的数组元素个数不能是变量。而选项D中的n是一个变量。
[单选题]有关程序代码窗口的说法错误的是( )。
在窗口的垂直滚动条的上面,有一个"拆分栏",利用它可以把窗口分为两个部分,每个窗口显示代码的一部分
[单选题]Frame默认的布局管理器是( )。
BorderLayout
解析:解析:本题考查Java中的布局管理器。 FlowLayout是Pane和Applet默认的布局管理器,构件在容器中从上到下、从左到右进行放置;BorderLayout是Window、Frame和Dialog的默认布局管理器,选项B正确,在 BorderLayont布局管理器中,构件分成5个区域,每个区域只能放置一个构件:GridLayout使容器中各个构件呈网状布局,平均占据容器的空间;GardLayout把容器分成许多层,每层只能放置一个构件。
[单选题]在数据管理技术发展过程中,文件系统与数据库系统的主要区别是数据库系统具有
特定的数据模型