网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
There's a new cafeteria at the corner. How about going there for supper? ()
- A、Fine. But it‘s my treat this time.
- B、It‘s newly decorated.
- C、Let‘s look at the menu first.
- D、I have no idea about what to order.
参考答案
更多 “There's a new cafeteria at the corner. How about going there for supper? ()A、Fine. But it‘s my treat this time.B、It‘s newly decorated.C、Let‘s look at the menu first.D、I have no idea about what to order.” 相关考题
考题
下列Application程序中,指定as为字符串数组类型,先创建一个HashSet对象并赋值,然后在屏幕输出s,请将程序补充完整。import java.util.*;public class test17_1{public static void main(String[] args){__________s=new HashSet();s.add("Hello");s.add("World");s.add(new Character('我'));s.add(new Integer(23));s.add("Hello");__________as={"W","o","r","1","d"};s.add(as);s.add(null);s.add(new Integer(23));s.add(null);System.out.println(__________);
考题
I broke Tom's teacup yesterday, so I had to buy him _______.
A.a new oneB.an new oneC.the new oneD.one new
考题
A pencil-sharpener can be bought at ________.
A. the stationer’sB.a department storeC.a hardware shopD.a cafeteria
考题
下列程序段: String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); 的结果为A.falseB.trueC.1D.0
考题
下列语句能给数组赋值而不使用for循环的是A.myArray{[1]="One";[2]="Two";[3]="Three";}B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"};C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"};D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};
考题
写出程序运行的结果Public class BasePublic virtual string Hello() {return “Base”;}Public class Sub:BasePublic override string Hello() {return “Sub”;}1. Base b = new Base(); b.Hello;2. Sub s = new Sub(); s.Hello;3. Base b = new Sub (); b.Hello;4. Sub s = new Base(); s.Hello;
考题
下列语句输出结果为( )。 public class test { public static void main(StringArgsl[]) { String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); } }A.falseB.trueC.1D.0
考题
下列语句能给数组赋值,而不使用for循环的是A.myArray{[1]="One";[2]="Two";[3]="Three";}B.String s[5]=new String[] {"Zero","One","Two","Three","Four"};C.String s[]=new String[] {"Zero","One","Two","Three","Four"};D.String s[]=new String[]= {"Zero","One","Two","Three","Four"};
考题
A suitable title for this text might be( )[A] How to Develop U.S. Economy[B] The Relation between American Industry and New Economy[C]Digital Engine Powers New Economy[D] Our New Policy on Economy
考题
public class TestString3 { public static void main(String[] args) { // insert code here System.out.println(s); } } Which two code fragments, inserted independently at line 3, generate the output 4247?()A、 String s = “123456789”; s = (s-”123”).replace(1,3,”24”) - “89”;B、 StringBuffer s = new StringBuffer(”123456789”); s.delete(0,3).replace( 1,3, “24”).delete(4,6);C、 StringBuffer s = new StringBuffer(”123456789”); s.substring(3,6).delete( 1 ,3).insert(1, “24”);D、 StringBuilder s = new StringBuilder(”123456789”); s.substring(3,6).delete( 1 ,2).insert( 1, “24”);E、 StringBuilder s = new StringBuilder(”123456789”); s.delete(0,3).delete( 1 ,3).delete(2,5).insert( 1, “24”);
考题
针对Set s接口,下列哪项是正确的?() A、 s.add(2)B、 s.add(new Integer(2))C、 s.add(“2”)D、 s.add(new java.util.Date())
考题
34. HashMap props = new HashMap(); 35. props.put(”key45”, “some value”); 36. props.put(”key12”, “some other value”); 37. props.put(”key39”, “yet another value”); 38. Set s = props.keySet(); 39. // insert code here What, inserted at line 39, will sort the keys in the props HashMap?() A、 Arrays.sort(s);B、 s = new TreeSet(s);C、 Collections.sort(s);D、 s = new SortedSet(s);
考题
public class SyncTest{ public static void main(String args) { final StringBuffer s1= new StringBuffer(); final StringBuffer s2= new StringBuffer(); new Thread () { public void run() { synchronized(s1) { s2.append(“A”); synchronized(s2) { s2.append(“B”); System.out.print(s1); System.out.print(s2); } } } }.start(); new Thread() { public void run() { synchronized(s2) { s2.append(“C”); synchronized(s1) { s1.append(“D”); System.out.print(s2); System.out.print(s1); } } } }.start(); } } Which two statements are true? ()A、 The program prints “ABBCAD”B、 The program prints “CDDACB”C、 The program prints “ADCBADBC”D、 The output is a non-deterministic point because of a possible deadlock condition.E、 The output is dependent on the threading model of the system the program is running on.
考题
import java.util.*; public class WrappedString { private String s; public WrappedString(String s) { this.s = s; } public static void main(String[] args) { HashSet hs = new HashSet(); WrappedString ws1 = new WrappedString(”aardvark”); WrappedString ws2 = new WrappedString(”aardvark”); String s1 = new String(”aardvark”); String s2 = new String(”aardvark”); hs.add(ws1); hs.add(ws2); hs.add(s1); hs.add(s2); System.out.println(hs.size()); } } What is the result?() A、 0B、 1C、 2D、 3E、 4F、 Compilation fails.G、 An exception is thrown at runtime.
考题
单选题The only lucid arguments printed in the newspaper concerning the new bond proposal was put forth by the high school principal who wrote a series of letters to the newspaper’s editor.A
The only lucid arguments printed in the newspaper concerning the new bond proposal was put forth by the high school principal in a series of letters to the newspaper’s editor.B
The principal of the high school wrote a series of letters to the newspaper’s editor that put forth the only lucid argument concerning the new bond proposal that was printed in the newspaper.C
In a series of letters to the newspaper’s editor, the principal of the high school put forth the only lucid argument concerning the new bond proposal to be printed in the newspaper.D
The high schoolh principal’s series of letters to the newspaper’s editor lucidly put forth the only arguments concerning the new bond proposal to be printed in the newspaper.E
Putting forth the only lucid arguments concerning the new bond proposal to be printed in the newspaper, the series of letters to the newspaper’s editor were written by the high school’s principal.
考题
单选题import java.util.*; public class WrappedString { private String s; public WrappedString(String s) { this.s = s; } public static void main(String[] args) { HashSet hs = new HashSet(); WrappedString ws1 = new WrappedString(”aardvark”); WrappedString ws2 = new WrappedString(”aardvark”); String s1 = new String(”aardvark”); String s2 = new String(”aardvark”); hs.add(ws1); hs.add(ws2); hs.add(s1); hs.add(s2); System.out.println(hs.size()); } } What is the result?()A
0B
1C
2D
3E
4F
Compilation fails.G
An exception is thrown at runtime.
考题
单选题______ is from India.A
The mayor’s of New York’s catB
The mayor’s cat of New York’sC
The mayor of New York’s catD
The mayor’s cat of New York
考题
单选题The first state court to rule that gays had a constitutional right to wed was ______.A
the Maryland’s Supreme CourtB
the Massachusetts’ Supreme CourtC
the New Mexico’s Supreme CourtD
the New Jersey’s Supreme Court
考题
单选题针对Set s接口,下列哪项是正确的?()A
s.add(2)B
s.add(new Integer(2))C
s.add(“2”)D
s.add(new java.util.Date())
考题
单选题public abstract class Shape { int x; int y; public abstract void draw(); public void setAnchor(int x, int y) { this.x = x; this.y = y; } } and a class Circle that extends and fully implements the Shape class. Which is correct?()A
Shape s = new Shape(); s.setAnchor(10,10); s.draw();B
Circle c = new Shape(); c.setAnchor(10,10); c.draw();C
Shape s = new Circle(); s.setAnchor(10,10); s.draw();D
Shape s = new Circle(); s-setAnchor(10,10); s-draw();E
Circle c = new Circle(); c.Shape.setAnchor(10,10); c.Shape.draw();
考题
单选题Why was this memo written?A
To inform employees of the CEO’s resignationB
To warn employees of upcoming layoffsC
To welcome a new executive to the teamD
To explain the new CEO’s plans for the future
考题
单选题There's a new cafeteria at the corner. How about going there for supper? ()A
Fine. But it‘s my treat this time.B
It‘s newly decorated.C
Let‘s look at the menu first.D
I have no idea about what to order.
考题
单选题The day after the narrator’s father died, new life came into the family when .A
the narrator returned home to liveB
the neighbors came in to assist with the funeralC
The narrator’s mother had a new babyD
the narrator’s aunt moved in with them
考题
单选题34. HashMap props = new HashMap(); 35. props.put(”key45”, “some value”); 36. props.put(”key12”, “some other value”); 37. props.put(”key39”, “yet another value”); 38. Set s = props.keySet(); 39. // insert code here What, inserted at line 39, will sort the keys in the props HashMap?()A
Arrays.sort(s);B
s = new TreeSet(s);C
Collections.sort(s);D
s = new SortedSet(s);
考题
单选题For the UK kids, the new term is a chance to ______A
make a New Year’s decisionB
take up new hobbiesC
relax and have funD
enjoy their Christmas holidays
热门标签
最新试卷