试题与答案

用于定义类成员的访问控制权限的一组关键字是A. extends 和 implemen

题型:单项选择题

题目:

用于定义类成员的访问控制权限的一组关键字是

A. extends 和 implements

B. public,private 和 protected

C. class和public

D. char,int,float和double

答案:

参考答案:B

解析:修饰符分为访问限制符和非访问限制符。其中访问限制符有pub-lic.orivate.protected和default。非访问限制符有static,final和abstract等。

试题推荐
题型:完形填空
Once again, I was in a new school. So was a girl in my class named Phoebe. That’s   36  the similaritiesended.
I was tall and she was small. I was one of the oldest in the class while she was the youngest. I was   37 and shy. She wasn’t. I couldn’t   38  her, considering her my enemy. But she wanted to be friends.
One day, she invited me over and I said yes — I was too   39  to say no. Actually no one has invited me over to play before. But this girl, who wore the latest fashion, wanted to see me.
She lived on the fourth floor in a two-room place with her mother, her stepfather, her two brothers and her sister. When we got to the room she shared with her sister, she took out a big case of Barbies(芭比娃娃)- which was my next   40 . I would have thought she’d outgrown them. I had never played with them. But we sat on the floor of a walk-in cupboard laughing as we made up crazy stories about the Barbies. That’s   41  we found out that we both wanted to be writers when we were older. We both had wild   42 .
We had a great day that afternoon. Our jaws ached from   43  so much. She showed me her outfits, which had mostly come from a designer clothing store down the block. The woman who owned it used her   44  a model sometimes for her newspaper ads and gave her clothes in exchange.
Phoebe had the whole neighborhood   45 . The bookstore owners lent her fashion magazines, the movie theater gave her free passes and the pizza place let her have free slices. Soon I was included in her magic world. We slept over at each other's houses and spent every free moment together. My dark hair grew out and I learned to love being   46 .
Phoebe, my first real friend since childhood, helped me get through the through teenage years and taught me an amazing and very surprising thing about making friends: your “worst enemy” can   47  to be your best friend.
小题1:
A.howB.whyC.thatD.where
小题2:
A.beautifulB.awkwardC.braveD.clever
小题3:
A.likeB.hateC.standD.help
小题4:
A.shockedB.worriedC.shamedD.happy
小题5:
A.surpriseB.puzzleC.issueD.question
小题6:
A.whereB.howC.whenD.why
小题7:
A.profileB.imaginationC.imageD.thinking
小题8:
A.cryingB.shoutingC.smilingD.doing
小题9:
A.forB.fromC.ofD.as
小题10:
A.confusedB.charmedC.addictedD.annoyed
小题11:
A.shortB.highC.funnyD.tall
小题12:
A.turn outB.look outC.watch outD.work out
查看答案
微信公众账号搜索答案