JS中正确定义数组的代码是?()A、vararr=newArray(1:"George",2:"John",3:"Thomas")B、vararr=newArray("George","John","Thomas")C、vararr=newArray:1=("George")2=("John")3=("Thomas")D、vararr=["George","John","Thomas"]

题目

JS中正确定义数组的代码是?()

  • A、vararr=newArray(1:"George",2:"John",3:"Thomas")
  • B、vararr=newArray("George","John","Thomas")
  • C、vararr=newArray:1=("George")2=("John")3=("Thomas")
  • D、vararr=["George","John","Thomas"]
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

以下哪个选项定义了10个整型数构成的数组,数组元素为NewArray(1)至NewArray(10)? ( )。

A.Dim NewArray(10)As Integer

B.Dim NewArray(1 To 10)As Integer

C.Dim NewArray(10) Integer

D.Dim NewArray(1 To 10) Integer


正确答案:B

第2题:

according to the author, who was to be credited for the development of the “american system of production“ in the early nineteenth century?

A. John H. Hall.

B. Henry Ford.

C. Eli Whitney.

D. Thomas Edison.


参考答案:A

第3题:

vararr=[1,2,3,'a'] 转换成数值型,结果是?

A.123

B.1230

C.1

D.NaN


参考答案:D

第4题:

The community college embodies ________ belief that an education should be practical as well as liberal.

A.George Washington's

B.Thomas Jefferson's

C.Abraham Lincoln's

D.Franklin Roosevelt's


正确答案:B

第5题:

The 18th century saw selective breeding of cattle, sheep and houses by _________.

A.Jethro Tull

B.Thomas Coke

C.George III

D.Robert Bakewell


正确答案:D

第6题:

VBA语句“Dim NewArray(10)as Integer”的含义是

A.定义10个整型数构成的数组NewArray

B.定义11个整型数构成的数组NewArray

C.定义1个值为整型数的变量NewArray(10)

D.定义1个值为10的变量NewArray


正确答案:B
解析:数组的定义格式为:Dim数组名([下标下限to]下标上限),缺省情况下,下标下限为0,数组元素从“数组名(0)”至“数组名(下标上限)”

第7题:

以下返回true的表达式有()

A.“george”==“george”

B.”george”=“george”

C.“george”.equals(newString(“george”))

D.“george”==newString(“george”)


参考答案:AC

第8题:

George Gordon Byron, John Keats and Percy Bysshe Shelley are three influential figures in the English Romantic Movement.()

此题为判断题(对,错)。


正确答案:√

第9题:

_______ realized that he could win support for the Union at home and abroad by making the war a just war against slavery.

A.Frederick Douglass

B.George Washington

C.John Adams

D.Abraham Lincoln


正确答案:D

第10题:

以下哪个选项定义了10个整型数构成的数组,数组元素为NewArray(1)至NewArray(10)

A.Dim NewArray(10)As Integer

B.Dim NewArray(1 T0 10)As Integer

C.Dim NewArray(10)Integer

D.Dim NewArray(1 To 10)Integer


正确答案:B
解析:A)选项定义了11个整型数构成的数组,C)选项和D)选项语法错误。

更多相关问题