This passage implies that _________.
A.buying a false degree is not moral
B.personnel officers only consider applicants from famous schools
C.most people lie on applications because they were dismissed from school
D.society should be greatly responsible for lying on applications
第1题
下列程序的输出结果为()。 public class Reentrant { public synchronized void a() { b(); System.out.println("here I am,in a()"); } public synchronized void b() { System.out.println("here I am,in b()"); } public static void main(String args[]) { Reentrant r=new Reentrant(); r.a(); } }
A.here I am,in a()/here I am,in b()
B.here I am,in b()/here I am,in a()
C.here I am,in a()
D.here I am,in b()
第2题
以下程序的输出结果为 。 class Person { public Person() { System.out.println("Person"); } } class Student extends Person { public Student() { System.out.println("Student"); } } class CollegeStudent extends Student { public CollegeStudent() { System.out.println("CollegeStudent"); } } public class Test { public static void main(String[] args) { CollegeStudent cs = new CollegeStudent(); } }
第3题
写出程序的输出结果
public abstract class A
{
public A()
{
Console.WriteLine('A');
}
public virtual void Fun()
{
Console.WriteLine("A.Fun()");
}
}
public class B: A
{
public B()
{
Console.WriteLine('B');
}
public new void Fun()
{
Console.WriteLine("B.Fun()");
}
public static void Main()
{
A a = new B();
a.Fun();
}
}
第4题
在下列程序的横线处填上适当的内容,使程序执行后的输出结果为ABCD。 #include<iostream> using namespace std; class A { public:A(){cout<<‘A’;} }; Class B: { public:B(){cout<<‘B’;} }; class C:virtual public A { public:C(){cout<<‘C’;} }; class D:p
A.public A
B.private A
C.protected A
D.virtual public A
第5题
在下列程序的横线处填上适当的内容,使程序执行后的输出结果为ABCD。 #include<iostream> using namespace std; class A { public:A(){cout<<'A';} }; class B: ______ { public:B(){cout<<'B';} }; class C:virtual public A { public:C(){cout<<'C';} }; class D:public B,public C { public:D(){cout<<'D';} }; void main(){D obj;}
A.public A
B.private A
C.protected A
D.virtual public A
第6题
执行下列程序段之后,输出的结果为______。 public class ex43 { public static void main(String[] args) { short a=127; short b=4; a>>>=--b; System.out.println(a); } }
A.10
B.15
C.30
D.128
第7题
分析下列程序的输出结果 #include <iostream.h> class A{ public: A() { cout<<"a’s } virtual ~a() { void f() g() f(); }; b : public a{ public: b() ~b() c b{ c() ~c() main() a *a="new" c; a-> g(); delete a; }
第8题
下列程序的输出结果为()。 public class MainClass { public static void main(String args[]) { int i, s = 0; int num[] = { 11, 22, 33, 44, 55, 66, 77, 88, 99 }; for (i = 0; i < num.length; i++) if (num[i] % 3 == 0) s += num[i]; System.out.println(s); } }
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!