Hello. My name is Molly and I'm from Ireland. I train the staff and help the customers --- especially the important ones. Franco, the restaurant owner, discusses everything with me. I have two free evenings a week, but twice a year I work every evening when Franco is on holiday --- I hate that. I always have to work on Friday and Saturday evenings when the restaurant is busy. But I like it because I'm interested in food and people. My salary is good. I like working with Franco. I get along well with the other staff in the restaurant.
(1). Molly likes to work every evening.
A、 Right.
B、Wrong.
C、Doesn't say.
(2). Molly sometimes has to work on Friday and Saturday evenings.
A、 Right.
B、Wrong.
C、Doesn't say.
(3). Molly has a holiday twice a year.
A、 Right.
B、Wrong.
C、Doesn't say.
(4). Molly like working in the daytime.
A、 Right.
B、Wrong.
C、Doesn't say.
(5). Molly gets along well with all the staff in the restaurant.
A、 Right.
B、Wrong.
C、Doesn't say.
第1题:
有下列程序:
#include<stdi0.h>
#include”strin9.h”
typedefstruct{charname[9];charsex;floatscore
[2];}STU;
voidf(STUa)
{
STUb={"Zha0",'m',85.0,90.0);inti;
strcpy(a.name,b.name);
sex=b.sex;
for(i=0;i<2;i++)a.score[i]=b.score[i];
}
voidmain( )
{
STUc={"Qian",'f',95.0,92.0);
f(c);
printf("%s,%c,%2.Of,%2.Of\n",C.name,C.sex,
score[O],C.score[1]);
}
程序的运行结果是( )。
A.Qian,f,95,92
B.Qian,m,85,90
C.Zha0,f,95,92
D.Zha0,m,85,90
第2题:
有下列程序: #include<stdi0.h> #include”strin9.h” typedefstruct{charname[9];charsex;floatscore [2];}STU; voidf(STUa) { STUb={"Zha0",m,85.0,90.0);inti; strcpy(a.name,b.name); sex=b.sex; for(i=0;i<2;i++)a.score[i]=b.score[i]; } voidmain( ) { STUc={"Qian",f,95.0,92.0); f(c); printf("%s,%c,%2.Of,%2.Of\n",C.name,C.sex, score[O],C.score[1]); } 程序的运行结果是( )。
A.Qian,f,95,92
B.Qian,m,85,90
C.Zha0,f,95,92
D.Zha0,m,85,90
第3题:
分析题1 下面的代码中可能会存在什么攻击?为什么会形成这种攻击?这种攻击方式有哪些危害。 int main(){ char name[16]; gets(name); for(int i=0;i<16&&name[i];i++) printf(“%c”,name[i]); }
第4题:
有以下程序 #include <stdio.h> #include <string.h> typedef struct { char name[9]; char sex; float score[2]; } STU; STU f(STU a) { STU b={"Zhao", 'm', 85.0, 90.0}; int i; strcpy(a.name, b.name); a.sex = b.sex; for (i=0; i<2; i++) a.score[i] = b.score[i]; return a; } main() { STU c={"Qian", T, 95.0, 92.0}, d; d=f(c); printf("%s,%c,%2.0f,%2.0f\n", d.name, &sex, &score[O], d.score[1]); } 程序的运行结果是
A.Qian, f,95,92
B.Qian,m,85,90
C.Zhao,m,85,90
D.Zhao,f,95,92
第5题:
I () help. I can do it myself.
Aneed to
Bdon’t need
Cneedn’t
Dneed
第6题:
请写出如下程序输出的第三行____。 #include <iostream> using namespace std; int main() { const char* name = "****"; for(int i = 1; i <= strlen(name); i++) { cout.write(name, i); //输出name指针指向空间的前i个字符 cout << endl; } }