I (11) (12) English girl. (13) name is Joan. I'm 12. I have a Chinese (14) . (15) name is Sun Hui. We're in the same(相同的)class. All her family (16) in China now. Her father is a teacher in our school. (17) teaches English.(18) mother is a nurse(护士) in a hospital(医院).(19) bas a brother.(20) is only 4.
( )11.
A.is
B.am
C.are
D.be
第1题:
有以下程序: #include 〈iostream〉 #include 〈string〉 using namespace std; class visited { private: int number; char *name; public: static int glob; void set mes(char *a); }; void visited::set mes(char *a) { name=new char[strlen(A) +1]; strcpy(name,A) ; number=++glob; } int visited::glob-O; int main() { visited person[10]; int i; char str[8]; for(i=0;i<5;i++) { cin>>str; person[i] .set mes(str); } cout<
A.5
B.4
C.3
D.2
第2题:
分析题1 下面的代码中可能会存在什么攻击?为什么会形成这种攻击?这种攻击方式有哪些危害。 int main(){ char name[16]; gets(name); for(int i=0;i<16&&name[i];i++) printf(“%c”,name[i]); }
第3题:
7、执行下列程序段后,变量i的值是()。 int i=10; switch(i) { case 9:i+=1; case 10:i+=1; case 11:i+=1; default:i+=1; }
A.13
B.12
C.11
D.14
第4题:
有以下程序: main() { intp[8]={11,12,13,14,15,16,17,18},i=0,i=0; while(i++<7)if(p[i]%2)j+=p[i]; printf(”%dn",j); } 程序运行后的输出结果是______。
A.42
B.45
C.56
D.60
第5题:
请写出如下程序输出的第三行____。 #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; } }