Line 35 will not compile.
Line 36 will not compile.
Line 37 will not compile.
Line 38 will not compile.
第1题:
A、1NF
B、2NF
C、3NF
D、BCNF
第2题:
( ) name is Jane. ( ) is from the USA.
A. Her, She
B. She's, She
C. Her, Her
第3题:
第4题:
请使用VC6或使用【答题】菜单打开考生文件夹projl下的工程projl。程序中位于每个“//ERROR****found料****之后的一行语句有错误,请加以改正。改正后程序的输出结果应为: Name:Smith Age:21 ID:99999 CourseNum:12 Record:970 注意:只修改每个“//ERROR****found****”下的那一行,不要改动程序中的其他内容。 include<iostream> using namespace std; class Studentlnfo { protected: //ERROR********************found**************** char Name; int Age; int ID: int CourseNum; float Record; public: Studentlnfo(char*name,int Age,int ID,int coumeNum,float record); //ERROR ********************found******************** void~Studentlnfo{} float AverageRecord{ return Record/CourseNum; } void showconst{ cout<<”Name:”<<Name<<”Age:”<<Age<<”ID:”<<ID <<”CourseNum:”<<CourseNum<<”Record:”<<Record<<endl; } }; //ERROR ******************found************** StudentInfo StudentInfo(char*Name,int Age,int ID,int CourseNum,float Record) { Name=name; Age=age; this一>ID=ID: CourseNum=courseNum: Record=record; } int main { Studentlnfo st(’’Smith”,21,99999,12,970); st.show; return 0; }
(1)char*Name;
(2)~Studentlnfo{}
(3)Studentlnf0::Studentlnfo(char*name,int age,,int ID,int eourseNum,float record)
第5题:
A.public Person(){}
B.public Person(String name,int age) { this.name = name; this.age = age; }
C.public Person(int age,String name) { this.age = age; this.name = name; }
D.public Person(String name) { this.name = name; }
第6题:
根据下列的定义,能打印出字母P的语句是( )。 struct stu {char name[10]; int age; }; struct sm s[10]={"John",11, "Pau1",12, "Mary",11, "adam",12 };
A.printf("%c",s[3].name);
B.printf("%c",s[3].name[1]);
C.printf("%c",s[2].name[1]);
D.printf("%c",s[1].name[0]);
第7题:
数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中所有的数据,下列哪个SQL语句是正确的()
第8题:
在Person的一个派生类Employee里调用Person类的构造函数正确方式为()。
第9题:
第10题:
Line 35 will not compile.
Line 36 will not compile.
Line 37 will not compile.
Line 38 will not compile.
第11题:
return super.hashCode();
return name.hashCode() + age * 7;
return name.hashCode() + comment.hashCode() /2;
return name.hashCode() + comment.hashCode() / 2 - age * 3;
第12题:
Line 35 will not compile.
Line 36 will not compile.
Line 37 will not compile.
Line 38 will not compile.
第13题:
向Applet传递参数的正确描述是( )。
A.<param name=age,value=20>
B.<applet code=Try.class width=100,height=100, age=33>
C.<name=age,value=20>
D.<applet code=Try.class name=age,value=20>
第14题:
A.Line 35 will not compile.
B.Line 36 will not compile.
C.Line 37 will not compile.
D.Line 38 will not compile.
第15题:
给出下面不完整的类代码,则横线处的语句应该为( )。 class Person { String name,department; int age; public Person (Strings) {name=s;} public Person (String s,int
A.{name=s;age=a;} public Person (String n,String d,intA){ __________ department=d; } }A)Person (n,A);
B.this (Person(n,A));
C.this(n,A);
D.this(name,age);
第16题:
用SQL写语句:在下列三张表中选出 CLASSID 为“1”的人的NAME和AGE。
表1 表2 表3
No Name Age No ID No
102 Ja 23 102 1 102
103 Ba 23 104 1 103
104 Na 24 103 2 104
第17题:
下列关于结构型变量的定义语句中,错误的是( )
A.typedef struct CCC
B.define GGG struct { char name[20];GGG CCC { char name[20]; int age; int age; }GGG; }; GGG abc ; GGG CCC abc;
C.struct
D.struct { char name[20]; { char name[20]; int age; int age; }ccc; }abc; CCC abc;
第18题:
A.Line35willnotcompile.
B.Line36willnotcompile.
C.Line37willnotcompile.
D.Line38willnotcompile.
第19题:
public class Person { private String name, comment; private int age; public Person(String n, int a, String c) { name = n; age = a; comment = c; } public boolean equals(Object o) { if(! (o instanceof Person)) return false; Person p = (Person)o; return age == p.age && name.equals(p.name); } } What is the appropriate definition of the hashCode method in class Person?()
第20题:
dataframe对象a有’Name’和’Age’两列,运行a.drop(’Age’,axis=1)后,a中的’Age’列被删除。
第21题:
Line 35 will not compile.
Line 36 will not compile.
Line 37 will not compile.
Line 38 will not compile.
第22题:
SORT BY age ASC, last_name
SORT BY age DESC, last_name
ORDER BY age DESC, last_name
ORDER BY age ASC, last_name
第23题:
base.Person(name,age)
base(name,age)
Person(name,age)
this(name,age)
第24题:
Person(n,a);
this(Person(n,a));
this(n,a);
this(name,age);