2002年全国文凭考试“计算机基础”试题(4)
2003-10-30 17:13:43
38.USB允许外部设备设备连接,具有___________的功能。
39.Internet组成部分中,除了通信线路、路游器、主机等软硬件设施外,还应包括___________。
40.WWW是以超文本标注语言HTML与___________为基础,能够提供面向Internet服务的信息浏览系统。
三、简答题:本大题共5个小题,每小题3分,共15分。
41.操作系统是计算机系统必不可少的系统软件,试简述其功能和作用。
42.在Windows98中,可使用多种切换窗口的方法,请列举三种(不必写出操作步骤)。
43.简述在Word中将文档中一段连续的文字加粗、加下划线的操作过程。
44.在Visual FoxPro中,创建表的三种方法是什么?
45.电子邮件软件通常可以完成哪些功能?
四、应用题:本大题共5个小题,每小题5分,共25分。
46.小张要购买一台家用电脑,小学习制作个人主页。他希望将平时用普通相机拍的照片放在主页上。为了达到这一目的。小张应购买哪些硬件设备和相应的软件?
47.在Windows98中,进入“写字板”文字编辑软件后,输入了三段文本。现要将第二段文本复制到“记事本”文字编辑器中,并在“记事本”窗口中以“TXT”格式存入C盘当前目录,文件取名为“我的文件”,请写出以下两组操作步骤。
(1)在“写字板”文字编辑软件中的操作步骤。
(2)在“记事本”文字编辑器的操作步骤。
48.在Word中,先建立下面某班级的课程成绩表,再按成绩由高到低排序后打印输出。要求表名栏(即“成绩单”)用三号宋体字、加粗、居中。写出操作步骤。
成绩单
学 号 姓 名 性 别 成 绩
980401 王 强 男 69
980402 孙 亮 男 87
980403 丁 亚 男 76
...
49.阅读下列Visual FoxPro程序,回答下列问题。
(1)执行DO WHILE循环后,将输出哪些内容?
(2)程序中变量n的用处是什么?
(3)执行条件语句IF时,在什么情况下会输出“Not find record for 年龄<40”
n=0
USE score
DO WHILE. NOT. EOF()
IF 年龄<40
姓名,单位,邮编,地址
n=n+1
ENDIF
SKIP
ENDDO
IF n>0
“Number of record for 年龄<40 is”, STR(n)
ELSE
“Not find record for 年龄<40”
ENDIF
RETURN
50.在微机已经与Internet连通之后,可以用三种方法启动Internet Explorer浏览器,然后链接到指定的站点http://www.pku.edu.cn 上。请简要叙述三种启动Internet Explorer的方法,以及链接到指定站点的过程。
《Visual C++程序设计》上机实验
实验一 C++程序的编辑、编译及运行
一、实验目的
(1)熟悉Visual C++的开发环境;
(2)掌握C++程序的编辑、编译、调试及运行;
二、实验过程
(1)输入教材P7的源程序ex1-1.cpp后进行编译、运行;
(2)选取单步等运行方式来调试程序;
(3)输入以下C++程序后进行编译、运行
教材P23习题2
教材P61源程序ex5-1.cpp
教材P68源程序ex6-2.cpp
三、预习:P9-13的程序的编辑、编译及运行;
实验二 类的定义及对象的生成
一、实验目的
掌握在C++中如何定义一个类以及如何使用类来生成对象。
二、实验过程
(1) 输入P81的源程序ex7-1.cpp后进行编译、运行
(2) 输入以下源程序后进行编译运行
class Cube
{
public:
int height , width , depth ;
int volume( )
{
return height*width*depth ;
}
};
void main( )
{
Cube A , B ; //用Cube生成A和B两个对象
A.height = 1 ;
A.width = 2 ;
A.depth = 3 ;
B.height = 10 ;
B.width = 20 ;
B.depth = 30 ;
cout<<”A的体积为:\n”<
cout<<”B的体积为:\n”<
}
三、预习:P79-P82
实验三 类成员的访问权限:private、public
一、实验目的
掌握在类中用private、public所定义数据成员的访问权限。
二、实验过程
1.第一部分实验:test3-1.cpp
(1)输入以下源程序后进行编译运行
#include
class Cube
{
private:
int height , width , depth ;
public:
int volume( )
{
return height*width*depth ;
}
};
void main( )
{
Cube A ;
A.height = 10 ;
A.width = 20 ;
A.depth = 30 ;
cout<<"A的体积为:"<
}
(2)进行编译,看编译系统提示什么错误。
(3)将类中private改成:public后再编译,看能否运行。
(4)分析:其它程序单元(外界) (能/不能)使用类的私有成员(能/不能)使用类的公有成员。
2.第二部分实验:test3-2.cpp
(1)输入以下源程序后进行编译运行
#include
class Cube
{
private:
int height , width , depth ;
public:
void Init( int i, int j, int k )
{
height = i ;
width = j ;
depth = k ;
}
int volume( )
{
return height*width*depth ;
}
};
void main( )
{
Cube A ;
A.Init(10,20,30);
cout<<"A的体积为:"<
}
(2)进行编译、运行
(3)分析:其它程序单元(外界)如何来使用类所定义的私有成员?
实验四 this指针在的隐含使用
一、实验目的
理解:当一个成员函数被调用时,会自动向它传递一个隐含的参数,该参数是一个指向这个函数成员所在对象的指针。
二、实验过程
1. 输入以下源程序:
#include
class Cube
{
private:
int height , width , depth ;
public:
void Init( int i, int j, int k )
{
height = i ;
width = j ;
depth = k ;
}
int volume( )
{
return height*width*depth ;
}
};
void main( )
{
Cube A ,B ;
A.Init(1,2,3);
B.Init(10,20,30);
cout<<"A的体积为:"<
cout<<"B的体积为:"<
}
(2)编译后单步运行
(3)分析:A.Init( 1, 2, 3 );
void Init( int i, int j, int k )
{
height = i ; // i A.height ? or i B.height ?
width = j ; // j A.width ? or j B.width ?
depth = k ; // k A.depth ? or k B.depth ?
}
执行B.Init(10,20,30)后,写出下面存储空间内容。
存储空间
A.height
A.width
A.depth
B.height
B.width
B.depth
实验五 构造函数与析构函数
一、实验目的
掌握在类中,构造函数和析构函数的函数名、以及如何自动被调用。
二、实验过程
1.输入以源程序 test5-1.cpp
#include
class Cube
{
private:
int height, width ,depth ;
public:
Cube(int ht, int wd, int dp) ; //构造函数
~Cube ( ) ; //析构函数
int volume ( ) ;
};
Cube::Cube ( int ht, int wd, int dp )
{
height = ht ;
width = wd ;
depth = dp ;
cout << “构造函数被调用!” ;
}
Cube:: ~Cube( )
{
cout <<”析构函数被调用!”;
}
int Cube::volume( )
{
return height*width*depth ;
}
main( )
{
Cube cubeone(10,20,30);
cout<<”cubeone的体积为:”<
}
2.编译成功后单步运行。
3.分析:构造函数和析构函数的函数名、及如何自动被调用。
实验六 成员函数的重载
一、实验目的
掌握在类中,成员函数的重载的形式及应用。
二、实验过程
1.输入以源程序 test6-1.cpp
#include
class Cube
{
private:
int height,width,depth;
public:
Cube( )
{
cout<<"构造函数被调用!"<<"\n" ;
}
~Cube()
{
cout<<"析构函数被调用!" << "\n" ;
}
int volume(int ht,int wd);
int volume(int ht,int wd,int dp);
}
int Cube::volume( int ht, int wd )
{
return ht*wd ;
}
int Cube::volume(int ht,int wd,int dp)
{
height = ht ;
width = wd ;
depth = dp ;
return height*width*depth ;
}
void main()
{
Cube cubeone ;
cout<<><>< strong="">
cout<<><"\n" strong="">"\n"><>
}
2.编译成功后单步运行。
实验七 构造函数的形式
一、实验目的
掌握在类中,构造函数的几种形式及应用。
二、实验过程
1、 带缺省值的构造函:
输入以下程序并运行分析
#include
class Cube
{
private:
int height,width,depth ;
public:
Cube(int ht = 1, int wd = 2, int dp = 3)
{
height = ht ;
width = wd ;
depth = dp ;
cout<<"构造函数被调用!"<<"\n" ;
}
~Cube( )
{
cout<<"析构函数被调用!"<<"\n" ;
}
int volume()
{
return heigth*width*depth;
}
};
main()
{
cube cubeone(10,20,30);
cube cubetwo;
cout<<><"\n" strong="">"\n"><>
cout<<><"\n" strong="">"\n"><>
}
2.构造函数的重载
输入以下程序并运行分析
#include
class Cube
{
private:
int height,width,depth ;
public:
Cube()
{
cout<<"构造函数被调用!" ;
}
Cube(int ht , int wd, int dp)
{
height = ht ;
width = wd ;
depth = dp ;
cout<<"构造函数被调用!"<<"\n" ;
}
~Cube( )
{
cout<<"析构函数被调用!"<<"\n" ;
}
int volume()
{
return heigth*width*depth;
}
};
main()
{
cube cubeone(10,20,30);
cube cubetwo;
cout<<><"\n" strong="">"\n"><>
cout<<><"\n" strong="">"\n"><>
}
联系客服