下列生成的Locale对象为汉语语种相关的是()A、Locale locale=new Locale("ko","");B、Locale locale=new Locale("ja","");C、Locale locale=new Locale("en","US");D、Locale locale=new Locale("zh","");E、Locale locale=new Locale("es","");

题目

下列生成的Locale对象为汉语语种相关的是()

  • A、Locale locale=new Locale("ko","");
  • B、Locale locale=new Locale("ja","");
  • C、Locale locale=new Locale("en","US");
  • D、Locale locale=new Locale("zh","");
  • E、Locale locale=new Locale("es","");
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

What is the name of the file that identifies the set of available locale definitions?()

A. locale.def

B. lxdef.ora

C. lx1boot.nlb

D. lx1boot.ora

E. lang.def


参考答案:C

第2题:

安装AWS的操作系统Solaris时,locale应选择()。

  • A、En,ISO8859-1
  • B、En,ISO8859-5
  • C、En,ISO8859-10
  • D、En,ISO8859-15

正确答案:A

第3题:

Given:1.disavalid,non-nullDateobject2.dfisavalid,non-nullDateFormatobjectsettothecurrentlocaleWhatoutputsthecurrentlocale’scountrynameandtheappropriateversionofd’sdate?()

A.Localeloc=Locale.getLocale();System.out.println(loc.getDisplayCountry()+""+df.format(d));

B.Localeloc=Locale.getDefault();System.out.println(loc.getDisplayCountry()+""+df.format(d));

C.Localeloc=Locale.getLocale();System.out.println(loc.getDisplayCountry()+""+df.setDateFormat(d));

D.Localeloc=Locale.getDefault();System.out.println(loc.getDisplayCountry()+""+df.setDateFormat(d));


参考答案:B

第4题:

Given:   1.d is a valid, non-null Date object   2.df is a valid, non-null DateFormat object set to the current locale    What outputs the current locale’s country name and the appropriate version of d’s date?()

  • A、Locale loc = Locale.getLocale(); System.out.println(loc.getDisplayCountry()+ " " + df.format(d));
  • B、Locale loc = Locale.getDefault(); System.out.println(loc.getDisplayCountry()+ " " + df.format(d));
  • C、Locale loc = Locale.getLocale();System.out.println(loc.getDisplayCountry()+ " " + df.setDateFormat(d));
  • D、 Locale loc = Locale.getDefault();System.out.println(loc.getDisplayCountry()+ " " + df.setDateFormat(d));

正确答案:B

第5题:

User defined locale files can be stored in which two locations?()

  • A、DRAM
  • B、SDRAM
  • C、CME flash,slot0
  • D、CUE flash,slot0
  • E、TFTP directory specified by cnf-file location command

正确答案:C,E

第6题:

Which is not a valid locale definition file type?()

A. Language

B. Linguistic sort

C. Calendar

D. Territory

E. Character set


参考答案:C

第7题:

下列选项中不能能获得Locale实例是()

  • A、Locale locale=new Locale();
  • B、Locale locale=new Locale("ch","CH");
  • C、Locale locale=Locale.CHINA;
  • D、Locale locale =request.getLocale();

正确答案:A

第8题:

Given:Which two statements are true about the result if the default locale is Locale.US?()

A.The value of b is 2.

B.The value of a is 3.14.

C.The value of b is 2.00.

D.The value of a is 3.141.

E.The value of a is 3.1415.

F.The value of a is 3.1416.

G.The value of b is 2.0000.


参考答案:C, F

第9题:

The George Char Broiler Company wants to create its own locale file to accommodate a non-supported German language among its customers from Brunswick. This is the first locale file the company has tried to create. Which tag number will it assign to this locale?()

  • A、0
  • B、1
  • C、U0
  • D、U1
  • E、It is impossible to create a locale with Cisco Unity Express.
  • F、There will be no tag number, since it is only possible to create one locale.

正确答案:D

第10题:

NumberFormat nf= NumberFormat.getInstance();  nf.setMaximumFractionDigits(4);  nf.setMinimumFractionDigits(2);  String a = nf.format(3.1415926);  String b = nf.format(2);  Which two are true about the result if the default locale is Locale.US?()

  • A、 The value of b is 2.
  • B、 The value of a is 3.14.
  • C、 The value of b is 2.00.
  • D、 The value of a is 3.141.
  • E、 The value of a is 3.1415.
  • F、 The value of a is 3.1416.
  • G、 The value of b is 2.0000.

正确答案:C,F

更多相关问题