问题 选择题

下面关于光学现象和光学知识的连线正确的是(  )

A.水中的筷子变弯--光的直线传播

B.日食的形成--镜面反射

C.黑板反光--光的折射

D.上课时,教室里的学生都能看到老师--漫反射

答案

A、水中筷子向上偏折是光的折射现象,故本选项错误;

B、日食是光的直线传播现象,故本选项错误;

C、黑板反光是由于黑板太光滑,光在这儿发生里镜面反射,故本选项错误;

D、上课时,教室里的学生都能看到老师是由于发生了漫反射,故本选项正确.

故选D.

单项选择题
多项选择题

请使用“答题”菜单或使用VC6打开考生文件夹proj2下的工程proj2。此工程包含程序文件main.cpp,其中有类AutoMobile(“汽车”)及其派生类Car(“小轿车”)、Truck(“卡车”)的定义,还有主函数main的定义。请在程序中//************found************下的画线处填写适当的代码,然后删除横线,以实现上述类定义。此程序的正确输出结果应为:
车牌号:冀ABC1234品牌ForLand类别:卡车当前档位:0最大载重量:1~
车牌号:冀ABC1234品牌ForLand类别:卡车当前档位:2最大载重量:1~
车牌号:沪XY25678品牌QQ类别:小轿车当前档位:0座位数:5
车牌号:沪XY25678品牌QQ类别:小轿车当前档位:-1座位数:5
注意:只能在画线处填写适当的代码,不要改动程序中的其他内容,也不能删除或移动
//************found************。
//源程序
#include<iostream>
#include <iomanip>
#include <cmath>
using namespace std;
class AutoMobile //"汽车"类
char*brand; //汽车品牌
char*number; //车牌号
int speed; //档位:1、2、3、4、5,空档:0,倒档:-1
public:

AutoMobile(const char*the_brand,const char*the_number): speed(0)
//************found************
______;
strcpy(brand,the_brand);
number=new char[strlen(the_nurnber)+1];
//************found************
______;~AutoMobile()delete[] brand; delete[] number;
const char*theBrand() const return brand; //返回品牌名称
const char*theNumber() const return number;
//返回车牌号
int currentSpeed() const return speed;
//返回当前档位
void changeGearTo(int the_speed)
//换到指定档位
if(speed>=-1&&speed<=5)speed=the_speed;virtual const char*category() const=0;
//类别:卡车、小轿车等
virtual void show() const
cout<<"车牌号:"<<theNumber()<<"品牌:"<<theBrand()
//************found************
<<"类别:"<<______<<"当前档位:"<<currentSpeed(); ;
class Car: public AutoMobile//"小汽车"类
int seats;//座位数
public:
Car(const char*the_brand,const char*the_number,int the_seats)
: AutoMobile(the_brand,the_number),seats(the_seats)
int numberOfSeat() const return seats,//返回座位数
const char*category() constreturn"小轿车";//返回汽车类别
void show() constAutoMobile::show();
cout<<"座位数:"<<numberOfSeat()<<endl; ;
class Truck: public AutoMobilel//"卡车"类
int max_load;//最大载重量
public:
Truck(const char*the_brand,const char*the_number,int the_max_load)
: AutoMobile(the_brand,the_number),max_load(the_max_load)
int maxLoad() const return max_load;//返回最大载重量
const char*category()const return"卡车";//返回汽车类别
void show() const
//调用基类的show()函数
//************found************
cout<<"最大载重量:"<<maxLoad()<<endl;;
int main()
Truck truck("ForLand","冀ABC1234",12);
truck.show();
truck.changeGearTo(2);
truck.show();
Car car("QQ","沪XY25678",5);
car.show();
car.changeGearTo(-1);
car.show();
cout<<endl;
return 0: