题目内容 (请给出正确答案)
[单选题]

现有: String s="write a line to a file"; w.print(s+"\n"); 哪一个是对的?

A.w可以是PrintWriter类型,也可以足BufferedWriter类型。

B.w不可以是PrintWriter类型,也不可以足BufferedWriter类型。

C.w 可以是BufferedWriter类型,但不可以是PrintWriter类型。

D.w可以是PrintWriter类型,但不可以是BufferedWriter类型。

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“现有: String s="write a line to …”相关的问题

第1题

现有:Strings="writealinetoafile";w.print(s+"\n");哪一个是对的?()

A.w即可以是PrintWriter类型,也可以足BufferedWriter类型。

B.w即不可以是PrintWriter类型,也不可以足BufferedWriter类型。

C.w可以是BufferedWriter类型,但不可以是PrintWriter类型。

D.w以是PrintWriter类型,但不可以是BufferedWriter类型。

点击查看答案

第2题

以下代码段的输出结果是()Strings="Java World";System.out.print(s.index Of("a",4));

A.-1

B.O

C.1

D.4

点击查看答案

第3题

现有:classPencil{publicvoidwrite(Stringcontent){System.out.println("Write"+content);}}classRubberPencilextendsPencil{publicvoiderase(Stringcontent){System.out.println("Erase"+content);}}执行下列代码的结果是哪项?()Pencilpen=newRubberPencil();pen.write("Hello");pen.erase("Hello");

A.WriteHelloEraseHello

B.EraseHelloWriteHello

C.编译错误

D.运行时抛出异常

点击查看答案

第4题

现有:classPencil{publicvoidwrite(Stringcontent){System.out.println("Write",+content){}}classRubberPencilextendsPencil{publicvoidwrite(Stringcontent){System.out.println("RubberWrite"+content);}publicvoiderase(Stringcontent)}}执行下列代码的结果是哪项?()Pencilpen=newPencil();((RubberPencil)pen).write("Hello");

A.WriteHello

B.RubberWriteHello

C.编译失败

D.运行时抛出异常

点击查看答案

第5题

顺序执行下列两条语句,输出结果是______。

String s="You are a pretty boy!";System.out.println(s.length( ));

点击查看答案

第6题

A regression is a ______ movement along a line of print.

点击查看答案

第7题

不属于Write类子类的是( )。

A.PrintWrite类

B.ReaderWrite类

C.OutputStreamWriter类

D.FileWrite类

点击查看答案

第8题

A child who has once been pleased with a tale likes, as a rule, to have it retold in identically the same words, but this should not lead parents to treat printed fairy stories as sacred texts. It is always much better to tell a story than read it out of a book, and if a parent can produce what, in the actual circumstances of the time and the individual child, is an improvement on the printed test, so much the better.

A charge made against fairy tales is that they harm the child by frightening him or arousing his sadistic impulses. To prove the latter, one would have to show in a controlled experiment that children who have read fairy stories were more often g0.ilty of cruelty than those who had not. Every child has aggressive, destructive, sadistic impulses and, on the whole, their symbolic verbal discharge seems to be rather a safety valve than an incitement to overt action. As to fears, there are I think, well-authenticated cases of children being dangerously terrified by some fairy story. Often, however, this arises form. the child having heard the story once. familiarity with the story by repetition turns the pain of fear into other pleasure of the fear faced and mastered.

There are also people who object fairy stories on the grounds that they are not objectively true, that faints, witches, two-headed dragons, magic carpets, etc, do not exist, and that, instead of indulging his fantasies in fairy tales, the child should be taught how to adapt to reality by studying history and mechanics. I find such people, I must confess, so unsympathetic and peculiar that I do not know how to argue with them. If their ease were sound, the world should be full of madmen attempting to fly from New York to Philadelphia on a broomstick or covering a telephone with kisses in the belief that it was their enchanted girlfriend.

No fairy story ever claimed to be a description of the external work and no sane child had ever believed that it was.

The author considers that a fairy story is more effective when it is ______.

A.repeated without variation

B.treated with reverence

C.adapted by the parent

D.set in the present

点击查看答案

第9题

A child who has once been pleased with a tale likes, as a rule, to have it retold in identically the same words, but this should not lead parents to treat printed fairy stories as sacred texts. It is always much better to tell a story than read it out of a book, and, if a parent can produce what, in the actual circumstances of the time and the individual child, is an improvement on the printed text, so much the better.

A charge made against fairy tales is that they harm the child by frightening him or arousing his sadistic impulses. To prove the latter, one would have to show in a controlled experiment that children who have read fairy stories were more often guilty of cruelty than those who had not.

Aggressive, destructive, sadistic impulses every child has and, on the whole, their symbolic verbal discharge seen is to be rather a safety valve than an incitement to overt action. As to fears, there are, I think, well-authenticated cases of children being dangerously terrified by some fairy stories.

Often, however, this arises from the child having heard the story once. Familiarity with the story by repetition turns the pain of fear into the pleasure of the fear faced and mastered. There are also people who object to fairy stories on the grounds that they are not objectively true, that giants, witches, two-headed dragons, magic carpets, etc., do not exist; and that, instead of indulging his fantasies in fairy tales, the child should be taught how to adapt to reality by studying history and mechanics. I find such people, I must confess, so unsympathetic and peculiar that I do not know how to argue with them. If their case were sound, the world should be full of mad men attempting to fly from New York to Philadelphia on a broomstick or covering a telephone with kisses in the belief that it was their enchanted girl-friend.

No fairy story ever claimed to be a description of the external world and no sane child has ever believed that it was.

The author considers that a fairy story is more effective when it is ______.

A.repeated without variation

B.treated with reverence

C.adapted by the parent

D.set in the present

点击查看答案

第10题

A child who has once been pleased with a tale likes, as a rule, to have it retold in identically the same words, but this should not lead parents to treat printed fairy stories as sacred texts. It is always much better to tell a story than read it out of a book, and, if a parent can produce what, in the actual circumstances of the time and the individual child, is an improvement on the printed text, so much the better.

A charge made against fairy tales is that they harm the child by frightening him or arousing his sadistic impulses. To prove the latter, one would have to show in a controlled experiment that children who have read fairy stories were more often guilty of cruelty than those who had not. Aggressive, destructive, sadistic impulses every child has and, on the whole, their symbolic verbal discharge seems to be rather a safety valve than an incitement to overt action. As to fears, there are, I think, well-authenticated cases of children being dangerously terrified by some fairy stories. Often, however, this arises from the child having heard the story once. Familiarity with the story by repetition turns the pain of fear into the pleasure of a fear faced and mastered.

There are also people who object to fairy stories on the grounds that they are not objectively true, that giants, witches, two-headed dragons, magic carpets, etc. do not exist; and that, instead of indulging his fantasies in fairy tales, the child should be taught how to adapt to reality by studying history and mechanics. I find such people, must confess, so unsympathetic and peculiar that I do not know how to argue with them. If their case were sound, the world should be full of madmen attempting to fly from New York to Philadelphia on a broomstick or covering a telephone with kisses in the belief that it was their enchanted girl friend.

Not fairy story ever claimed to be a description of the external world and no sane child had ever believed that it was.

In the writer's opinion, a fairy tale ______.

A.cannot be read to children without variation because they find no pleasure in it

B.will be more effective if it is adapted by parents

C.must be made easy so that children can read it on their own

D.is no longer needed in developing children's power of memory

点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
上学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
上学吧
点击打开微信