分析下列程序:public class class4{private string _sData = "";public string sData{set{_sData = value;}}}在Main 函数中,在成功创建该类的对象obj 后,下列哪些语句是合法的?()
A.obj.sData = "It is funny!";
B.Consol
C.WriteLine(obj.sData);
D.obj._sData = 100;
E.obj.set(obj.sData);
A.obj.sData = "It is funny!";
B.Consol
C.WriteLine(obj.sData);
D.obj._sData = 100;
E.obj.set(obj.sData);
第1题
A.编译失败
B.编译通过,没有结果输出
C.输出:除法正常运行
D.输出:除数不能为0
第2题
A.0
B.1
C.2
D.4
第3题
Continuing education gives these adults the opportunity to increase their knowledge about their own field or to learn about a new field. It also gives them a chance to improve their old skills or to learn new ones.
Continuing education classes give some adults the chance to learn new skills. There are usually many kinds of classes to choose from, foreign cooking, auto repair, or furniture repair. These are only some of the classes available.
Some adults take classes for fun or because the class will be useful for them. For example, they can choose a class in almost any language as a second language. There are classes in first aid or classes in sewing. There are also many other types of classes to choose from.
Other adults take continuing education classes to improve their own lives because they want to feel better about themselves. Overweight people can find exercise classes or classes in nutrition. Others can learn how to be good parents, or how to get along with other people.
There are many opportunities for adults to continue their learning. Almost any community college or public school system has a continuing education program. There are classes in schools, community buildings, or churches. Most classes are in the evening, so working people can attend. The classes are usually small, and they are inexpensive.
Thousands of people register for continuing education classes each year. They receive no diploma or certificate, and no grade for most of the classes they attend. For them, learning is something they do because they want to.
Some adults go to continuing education classes to ______.
A.get a college education
B.learn new skills
C.get a certificate
D.earn grades
第4题
When Bill de Blasio ran for New York City mayor last year, he promised to end a controversial (有争议的), citywide cell-phone ban(禁令)in public schools, which is not equally enforced in all schools. Now, under his leadership, the city is preparing to end the ban. It will be replaced by a policy that allows phones inside schools but tells students to keep them packed away during class.
Many schools have a rule about enforcing the ban that says, “If we don't see it, we don't know about it.” That means teachers are OK with students bringing in cell phones, as long as they stay out of sight and inside bags and pockets.
But at the 88 city schools with metal detectors, die ban has been strictly enforced. The detectors were installed to keep weapon out of schools,but the scanners(扫描器)can also detect cell phones. So students at these schools must leave their phones at home or pay someone to store it for them.
The ban was put into place in 2007 under mayor Michael Bloomberg. Ending the ban will also likely end an industry that has sprung up near dozens of the schools that enforce the ban. Workers in vans(厢式货车)that resemble food tracks store teens' cell phones and Other devices for a dollar a day,
Critics of the ban say cell phones are important safety devices for kids during an emergency. They also say that enforcement of the ban is uneven and discriminatory. Where the ban is enforced, it puts a disadvantage on students who can't afford to pay to store their phones.
Before putting an official end to the cell-phone ban, city education officials are working on creating a new policy. It will include rules about not using the phones during class or to cheat on tests.
1. Which of the following is the main idea of the passage?
A. New York City will give financial aid to poor students.
B. New York City plans to restrict cell phone use in libraries.
C. New York City plans to install metal detectors in all public schools.
D. New York City will soon end a ban on cell phones in schools.
2. Students pay___________ a day to leave their cell phones in a van parked near their school.
A. a dollar
B. two dollars
C. five dollars
D. ten dollars
3. Metal detectors were installed in 88 city schools, mainly to keep ___________ out of schools.
A. cell phones
B. weapons
C. alcohol
D. drugs
4. The word discriminatory in Paragraph 5 probably means ___________.
A. necessary
B. tough
C. strict
D. unfair
5. According to the passage, which of the following statements is TRUE?
A. After the cell-phone ban is ended, students can use their phones during class.
B. The cell-phone ban is equally enforced in all public schools.
C. The cell-phone ban was put into place in 2008 under Mayor Bill de Blasio.
D. A phone-storage industry has appeared outside the 88 metal-detector campuses.
第5题
A.abstract Animal{abstract void growl()}
B.class abstract Animal{abstract void growl()}
C.abstract class Animal{abstract void growl()}
D.abstract class Animal{ abstract void growl(){System.out.println("growl")};}
第6题
Some of the students in this class seem__________ to help others.
A.reluctant
B.reliable
C.responsible
D.intelligent
第7题
What the monitor said at the class meeting ______ quite all right.
A.heard
B.listening
C.sounded
D.pronounced
第8题
In some countries, ______ are called "public schools" are not owned by the public.
A.that
B.which
C.those
D.what
第9题
A.to
B.from
C.with
D.into
第10题
Tho public expressed____great concern about the disaster,
A.their
B.his
C.its
D.our