Given that c is&

题目

Given that c is a reference to a valid java.io.Console object, and: 11.String pw = c.readPassword("%s", "pw: "); 12.System.out.println("got " + pw); 13.String name = c.readLine("%s", "name: "); 14.System.out.println(" got ", name); If the user types fido when prompted for a password, and then responds bob when prompted for a name,what is the result?()

  • A、An exception is thrown at runtime
  • B、pw: fido got fido name: bob got bob
  • C、pw: got fido name: bob got bob
  • D、Compilation fails.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

___________, he can finish the work in a couple of weeks.

A. Giving good health

B. If give good health

C. Given good health

D. If he is good given health


参考答案:C

第2题:

[A] given [B] chosen [C] elected [D] delivered


正确答案:B

本题考查根据上下文选择恰当的词。选项为四个动词的过去分词形式,与was构成被动式。give意为“给”;choose意为“选择”;call意为“呼叫”;deliver意为“递送,传送”。由上文可知,“年轻男子抽出了写有女孩名字的纸条”,因此女孩的名字是被“选中”,[B]正确。

第3题:

Who was once given as a Christmas gift to a poor family?

________________________.


正确答案:
Anna.

第4题:

What are the components of Chinese names?

A、Given name and middle names

B、Family name

C、Family name and given name

D、Last name and surname


参考答案:C

第5题:

Pocahontas has an English name given by John Smith.()


参考答案:错误

第6题:

_________

[A] given up [B] got over [C] carried on [D] put down


正确答案:D

本题考查固定搭配。get down to的意思是归因于,符合句意。而give up to的意思是让给,get over to的意思是让某人明白某事,carry on的意思是继续开展,坚持,均不合题意。故答案为D

第7题:

She thought maybe she should consider_______her career and be a full-time mother

A.given up

B.to give up

C.giving up

D.having given up


正确答案:C

第8题:

A label was ________ to my bag.

(A) given

(B) attached

(C) handed

(D) turned


正确答案:B
解答参考:attach…to…“附上”,hand“交给,递给”,turn to“转向;求助于”。【译文】我的包被附上了一张标签。

第9题:

____ a lift in your car, I would not have been home.

A、Had you not given me

B、I had not given

C、You had not given me

D、Had I not given


答案:B

第10题:

ETA/PILOT REVERTING means:

A.ETA pilot station has been given

B.ETA pilot station will be given afterwards

C.ETA pilot station was not given

D.ETA pilot station is given


正确答案:B

更多相关问题