下面程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是

题型:单项选择题

问题:

下面程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是
public class FindKeyWords
 public static void main(String[]args)
  String text="An array is a data structur that stores a collection of"
        +"values of the same type. You access each indMdual value"
        +"through an integer index. For example,if a is an array"
        +"of inergers,then a[i]is the ith integer in the array.";
  int arrayCount=0;
  int index=-1;
  String arrayStr="array";
  index=text.indexOf(arrayStr);
  while(index>=0)
   ++arrayCount;
   index+=arrayStr.length();
   index=text.indexOf(arrayStr,index);
  
  System.out.println("the text contains"+arrayCount+"arrays");
 

A.<

B.=

C.<=

D.>=

考点:计算机等级考试JAVA二级JAVA笔试
题型:单项选择题

一个滴水龙头每天要白白地流掉12千克水.照这样计算,这个龙头今年一月份要浪费掉______千克水.

题型:单项选择题

流行性出血热病毒感染中,最常见的是()

A.病原体被清除(一过性感染)

B.隐性感染

C.显性感染

D.病原携带状态

E.潜伏性感染

题型:单项选择题
Everyday, 340 million people speak it. One billion people are learning it and it is said that by 2050, half of the world’s population will be using it. What are we talking about? That is the global language—English.
The English language started in Britain in the 5th century. It is a mixed language. It was built up when German. Scandinavian and French invaders settled in England and created a common language for communication.
Today it is the official language of the UK, the USA, Australia, New Zealand, Canada, South Africa and Ireland as well as many islands in the Caribbean. Many other countries and regions use it for politics and business, for example, India. Pakistan, Nigeria and the Philippines. English is also one of the official languages of Hong Kong.
But global advertising and pop music mean that in most countries, you will see or hear some English. Thanks to McDonalds, we all know about “burgers”. “fries” and “milkshakes”. Songs by Madonna, Britney Spears and Celine Dion are in English. We can sing along, even if we do not understand what we are singing!
English is a messy (杂乱的) language. Every year, dictionaries include new words that talk about popular culture, for example, computer-related words such as "blogging", "download" and "chartroom". Also included are words that teenagers use. Who does not know “cool”, “OK” and “hello”?
Other languages also influence English. Many English words come from French. Words like “café” and expressions like “c'est la vie” (that is life) are all part of the English language. On the other hand, the French language includes English words like "le weekend" and "le camping". German words are also part of English. Words like "kindergarten" come from the German language.
Recently, British people have become interested in “yoga”. But the word comes from an ancient Hindu language in India.
小题1: The English language has a history of ______.
A.over 2000 yearsB.over 500 years
C.over 1500 yearsD.over 1000 years
小题2:The underlined expression “thanks to” can be replaced by ______.
A.because ofB.in order toC.as usual D.as if.
小题3:Which of the following statements is true about the language of English?
A.It has been changing all the time.
B.It has borrowed words from all the other languages.
C.French words are used by the English because dictionaries have French words.
D.Singers and film stars have the greatest influence on language.
小题4: How many people in the world are using English now?
A.One billion peopleB.340 million
C.almost all the people in the world.
D.not mentioned above, but the number is growing rapidly.
小题5: Many countries and regions use it for politics and business except______.
A.the USAB.Nigeria C.the PhilippinesD.Norway
题型:单项选择题

以下关于日界、对时的说法正确的有().

A.使用自动气象站的台站以自动气象站采集器的内部时钟为观测时钟

B.人工器测日照以日落为日界

C.使用自动气象站的台站以自动气象站计算机的时钟为观测时钟

D.台站观测时钟采用北京时

题型:单项选择题

邮政储蓄营业网点每月应将收缴假币上缴市县局(行),由假币专管员统一销毁。

A、正确

B、错误

更多题库