题目
A student, ____________ name I don't know, came to see me.
A.that
B.who
C.whose
D.whom
第1题
Speaker B: My name is Peter Brown and I left my hat in Mr. Johnson’s class this morning. Do you have it()
A.this is the Unisex Hairdresser’s
B.this is the Mrs. Right’s Hat Shop
C.this is the Lost and Found
D.this is the Student Union
第2题
阅读以下说明和C++程序,将应填入(n)处的字句写在答题纸的对应栏内。
【说明】
本程序用于评选优秀教师和学生。当输入一系列教师或学生的记录后,将优秀学生及教师的姓名列出来。其类结构如下图所示:
【程序】
include <iostream.h>
include <stdio. h>
class base
{
protected:
char name[8];
public:
void getname(){cout<<"name:"; cin>>name;}
void printname(){cout<<"name:"<<name<<endl;}
(1)
};
class student: (2)
{
int num;
public:
void getnum()
{cout<<"score:"; cin>>num;}
bool isgood()
{return (3) }
};
class teacher: (2)
{
int num;
public:
void getnum()
{cout<<"paper:"; cin>>num;}
bool isgood()
{return (num>3)?true:false;}
void main()
{
base *p[50];
student *pstud;
teacher *ptech;
char ch;
int count=0;
do{
cout<<"input teacher(t) or student(s):";
cin>>ch;
if(ch=='s')
{
pstud=new student;
pstud->getname();
pstud->getnum();
p[count++]=pstud;
}
else if(ch=='t')
{
(4)
ptech->getname();
ptech->getnum();
p[count++]=ptech;
}
else
cout<<"input is wrong"<<endl;
cout<<"continue to iput(y/n)?";
cin>>ch;
}while(ch=='y');
for(int i=0;i<count;i++)
if((5))
p[i]->printname();
}
第3题
阅读以下说明和C++程序,将应填入(n)处的字句写在对应栏内。
【说明】
设计一个评选优秀教师和学生的程序,其类结构如图6所示。当输入一系列教师或学生的记录后,将优秀学生及教师的姓名列出来。
【程序】
include<iostream.h>
include<stdio.h>
enum boolean {False,True}
class base
{
protected:
char name[8];
public:
void getname() {cout<<"姓名:" ;cin>>name; }
void printname() {cout<<"姓名:"<<name<<endU3
virtual boolean isgood() =0;
}
class student:(1)
{
int num;
public:
void getnum()
cout<<"考试成绩:" cin>>num;
boolean isgood() {return (2);{
};
class teacher:(3) public base
int num;
public:
void getnum()
cout<<"每年发表论文数:" ;cin>>num;
boolean isgood() {return (4);}
};
void main()
base* p[50];
student * pstud;
teacher * ptech;
char ch;
int count =0;
do
cout<<"输入教师(t)或学生(s):"
cin>>ch;
if(ch =='s')
{
pstud = new student;
pstud ->getname();
pstud ->getnum();
p[count ++ ] = pstud;
}
else if(ch == 't')
{
ptech = newteacher;
ptech - >getname()
ptech ->getnum();
p[count++]=ptech;
}
else
cout<<"输入错误<<endl;
cout<<"继续输入码(Y/n)";
cin>>ch;
} while(ch == 'y')
for(int i=0;i<count;i++)
{
if((5)) //若为优秀,则输出
p[i]->printname();
}
}
第4题
第5题
●试题七
阅读以下说明和C++程序,将应填入(n)处的字句写在答题纸的对应栏内。
【说明】
设计一个评选优秀教师和学生的程序,其类结构如图6所示。当输入一系列教师或学生的记录后,将优秀学生及教师的姓名列出来。
图6
【程序】
include<iostream.h>
include<stdio.h>
enum boolean{False,True};
class base
{
protected:
char name[8];
public:
void getname(){cout<<"姓名:";cin>>name;}
void printname(){cout<<"姓名:"<<name<<endU3
virtual boolean isgood()=0;
}
class student: (1)
{
int num;
public:
void getnum()
{
cout<<"考试成绩:"; cin>>num;
}
boolean isgood(){return (2) ;}
};
class teacher: (3) public base
{
int num;
public:
void getnum()
{
cout<<"每年发表论文数:";cin>>num;
}
boolean isgood(){return (4) ;}
};
void main()
{
base*p[50 ];
student*pstud;
teacher*ptech;
char ch;
int count=0;
do
{
cout<<"输入教师(t)或学生(s):";
cin>>ch;
if(ch==′s′)
{
pstud=new student;
pstud->getname();
pstud->getnum();
p[count++]=pstud;
}
else if(ch==′t′)
{
ptech=newteacher;
ptech->getname();
ptech->getnum();
p[count++]=ptech;
}
else
cout<<"输入错误"<<endl;
cout<<"继续输入吗(Y/n)";
cin>>ch;
}while(ch==′y′);
for(int i=0;i<count;i++)
{
if((5) )∥若为优秀,则输出
p[i]->printname();
}
}
第6题
A.No, I am
B.Yes, I am.
C.This is my sister.
D.Nice to meet you.
第7题
A.Thank you very much.
B.Nice to see you here.
C.Certainly. What's your name please?
D.Sorry. Can I see your passport please?
第8题
A.three
B.four
C.five
D.six
第9题
若有如下程序: struct student {char name[10]; float score[3];}stu[3]={{"lili",75,90,90}, {"liudan",90,85,75}; {"guoli",85,85,70}}; main() {int i;float sum=0,aver; for(i=0;i<3;i++) sum=sum+stu[i].score[1]; aver=sum/i; printf("%6.2f\n",aver); } 则程序运行后的输出结果是()
A.83.33
B.85
C.86
D.86.67
第10题
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!