【多选题】
(专基_Js) 已知数组 var arr = ["red","blue","yellow"];给该数组最后添加一项"green",以下`正确的有___
A. : arr[2] = "green"
B. : arr[3] = "green"
C. : arr[arr.length] = "green"
D. : arr[arr.length-1] = "green"
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
BC
解析
暂无解析
相关试题
【多选题】
(专基_Js) 检测数组的数据类型的操作符有___
A. : typeof
B. : type
C. : instanceof
D. : instance
【多选题】
(专基_Js) var str = "beiJingBaWei";截取BaWei,截取出来之后并将其转换为小写,以下写法`正确的是___
A. : var str = "beiJingBaWei";console.log(str.slice(7,12).toUpperCase())
B. : var str = "beiJingBaWei";console.log(str.substr(7,12).toUpperCase())
C. : var str = "beiJingBaWei";console.log(str.substring(7,12).toLowerCase())
D. : var str = "beiJingBaWei";console.log(str.substr(7,5).toLowerCase())
【多选题】
(专基_Js)以下创建数组的方式,有5个数据分别为1,2,3,4,5`正确的有___
A. : new Array( 1,2,3,4,5 )
B. : {0:1,1:2,2:3,3:4,4:5}
C. : [1,2,3,4,5]
D. : {1,2,3,4,5}
【多选题】
(专基_Js)数组方法操作行为以下不`正确的有( )。___
A. : 位置方法中,数据是要进行相等比较的,如果没有默认返回-1
B. : pop() 和 unshift()方法的返回值是数值类型的
C. : reverse() 方法是反转数组的项
D. : sort() 只能对数组做升序操作
【多选题】
(专基_Js)splice()有哪些功能( )。___
A. : 删除
B. : 插入
C. : 替换
D. : 拼接
【多选题】
(专基_Js) 以下是数组位置方法的有( )___
A. : indexOf()
B. : concat()
C. : lastIndexOf()
D. : lastIndex()
【多选题】
(专基_Js)以下是数组队列方法的为( )。___
A. : push()
B. : unshift()
C. : pop()
D. : shift()
【多选题】
(专基_Js) 以下数组方法操作行为`正确的有___
A. : 位置方法中,数据是要进行全等比较的,如果没有默认返回-1
B. : push() 和 unshift()方法的返回值是数值类型的
C. : reverse() 方法是反转数组的项
D. : sort() 只能对数组做升序操作
【多选题】
}以上函数实现的是补零功能,如传8返回"08",12就返回12,_____处的代码可以是( )。___
A. : if(i<10){return "0"+i;} else{return i;}
B. : if(i<10){return "0"+i;} return i
C. : return i<10?"0"+i:i
D. : return i<10?0+i:i
【多选题】
(专基_Js)定义函数的方式有( )。___
A. : 函数声明
B. : 函数表达式
C. : 函数提升
D. : 函数定义
【多选题】
(专基_Js)以下函数中,如果传入的值小于10则补0,如传递9返回09符合要求的有( )。___
A. : function addZero( i ){ if( i < 10 ){ return 0+i; }else{ return i } }
B. : function addZero( i ){ if( i < 10 ){ return "0 "+i; }else{ return i } }
C. : function addZero( i ){ if( i < 10 ){ return "0 "+i; } return i; }
D. : function addZero( i ){ return i < 10 ? "0 "+i : i ; }
【多选题】
(网站工程)以下函数的定义方法`正确的有哪些( ):___
A. : function (){}
B. : var getSum = function(){}
C. : function(x,y){}
D. : var fun() = function{}
【多选题】
addZero()函数实现对num的判断,如果num是一位数,则前面补0返回,否则直接返回,如传入6返回06,传入15,返回15,横线处的代码可以是( )___
A. : if(num<10){ return '0'+num; }else{ return num; }
B. : if(num<10){ return 0+num; }else{ return num; }
C. : if(num<10){ return '0'+num; } return num
D. : return num<10?'0'+num:num
【多选题】
(专基_Js)以下字符串方法是用于截取的有( )。___
A. : slice()
B. : substring()
C. : substr()
D. : split()
【多选题】
(专基_Js)以下哪些方法可以用于取整( )。___
A. : Math.abs()
B. : Math.floor()
C. : Math.ceil()
D. : Math.round()
【多选题】
(专基_Js)以下哪些属性或方法返回的结果是number类型( )。___
A. : unshift()
B. : charAt()
C. : indexOf()
D. : length
【多选题】
以下创建数组的方式,`正确的有?___
A. : var arr = []
B. : var arr = new Array()
C. : var arr = new Array(3)
D. : var arr = array()
【多选题】
(专基_Js)以下函数中,对传入函数小于10的补零的有( )。___
A. : function addZero( i ){ if( i < 10 ){ return 0+i; }else{ return i } }
B. : function addZero( i ){ if( i < 10 ){ return "0 "+i; }else{ return i } }
C. : function addZero( i ){ if( i < 10 ){ return "0 "+i; } return i; }
D. : function addZero( i ){ return i < 10 ? "0 "+i : i ; }
【多选题】
以下哪些方法属于日期对象的方法?___
A. : getFullYear()
B. : setMonth()
C. : getDate()
D. : getTime()
【多选题】
(专基_Js)获取目前时间戳的方法有( )。___
A. : new Date().getTime()
B. : +new Date()
C. : new
D. ate()*1
【多选题】
(专基_Js) 以下是获取当前时间的毫秒的取值范围不`正确的是___
A. : [0,100]
B. : [1,1000]
C. : [0,59]
D. : [0,999]
【多选题】
(专基_Js)获取当前时间的时间戳的方法有( )。___
A. : new Date().getTime()
B. : +new Date()
C. : new
D. ate()*1
【多选题】
(专基_Js)以下关于日期对象方法说法错误的有( )。___
A. : getFullYear()是设置年份
B. : 时间戳的单位是毫秒
C. : setWeek()是设置星期
D. : 因为设置了年月日所以星期会自动生成,因此没有setDay()这个方法
【多选题】
(专基_Js)正则表达式中以下可以使用的符号有( )。___
A. : ()
B. : []
C. : {}
D. : //
【多选题】
(网站)在正则表达式中可以使用的符号有( )___
A. : ()
B. : []
C. : {}
D. : //
【多选题】
正则表达式的修饰符有:___
A. : m
B. : g
C. : a
D. : i
【多选题】
(专基_Js)表示指定匹配位置限定符的有( )。___
A. : #
B. : $
C. : ^
D. : *
【多选题】
(专基_Js)以下可以表示匹配数字字母下划线的有( )。___
A. : [0-9A-z_]
B. : \w
C. : \W
D. : [0-9A-Za-z_]
【多选题】
console.log(trim(" hello world "));// 打印结果为"hello world",补全函数,实现去空格功能,则横线处的代码分别应该是( )?___
A. : /\s+/g
B. : /^\s+|\s+$/g
C. : return str.replace(re,'')
D. : str.replace(re,'')
【多选题】
(专基_Js)var reg1 = /[a-z]oo\w/;以下哪个字符串匹配reg1这个正则( )___
A. : abook
B. : book
C. : boao
D. : books
【多选题】
(专基)var str="Is this his miss"; var patt1=/^Is/g; console.log(str.match(patt1));打印结果的数组中不可能包含的值有( )___
A. : Is
B. : this
C. : his
D. : miss
【多选题】
(专基_Js)以下DOM设置语句语法`正确的有( )。___
A. : document.getElementById("box").style.border-top="1px solid #f00"
B. : document.getElementsByTagName("body")[0].style.paddingTop = "10px"
C. : document.getElementsByTagName("body")[0].innerHTML = "HELLO"
D. : document.getElementById("box").innerHTML = '<b>hello</b>'
【多选题】
(专基_Js)以下哪些是DOM对象的方法( )。___
A. : getElementById()
B. : getElementsByTagName()
C. : value
D. : innerHTML
【多选题】
(网站工程)以下语句语法`正确的有?( )___
A. : document.getElementById("box").style.border-top="1px solid #f00"
B. : document.getElementsByTagName("body").style.paddingTop = "10px"
C. : document.getElementsByTagName("body")[0].innerHTML = "HELLO"
D. : document.getElementsByTagName("div")[0].innerHTML = '<b>hello</b>'
【多选题】
(专基js)以下关于DOM说法`正确的是___
A. : document.getElementById()只能获取一个节点
B. : document.getElementByTagName()可以获取一个伪数组,保存节点的集合
C. : document.getElementById()如果没有获取到节点默认返回null
D. : 以上都不对
【多选题】
(专基js)innerHTML可以向指定节点内写入___
A. : 文本
B. : 注释
C. : 标签
D. : 以上都不对
【多选题】
(专基_Js)事件处理程序有( )。___
A. : HTML事件处理程序
B. : DOM0级事件处理程序
C. : DOM1级事件处理程序
D. :
E. S事件处理程序
【多选题】
(专基_Js)已知按钮节点btn,以下能实现单击btn按钮,弹出"hello JS"的语法`正确的有( )。___
A. : btn.onclick = function(){ alert( "hello JS" ); }
B. : btn.click = function(){ alert( "hello JS" ); }
C. : btn.onclick = fn ; function fn(){ alert( "hello JS" ); }
D. : btn.onclick = fn() ; function fn(){ alert( "hello JS" ); }
【多选题】
(专基_Js)以下属于键盘的事件有( )。___
A. : keydown
B. : keyup
C. : keypress
D. : keymove
【多选题】
(专基js)已知按钮节点btn,以下能实现单击btn按钮,弹出"hello world"的语法`正确的有___
A. : btn.onclick = function(){ alert( "hello world" ); }
B. : btn.click = function(){ alert( "hello world" ); }
C. : btn.onclick = fn ; function fn(){ alert( "hello world" ); }
D. : btn.onclick = fn() ; function fn(){ alert( "hello world" ); }
推荐试题
【单选题】
Flight level is a______of constant atmospheric pressure which is related to a specific pressure datum 1013.2hpa.___
A. standard
B. surface
C. height
D. number
【单选题】
Air traffic means all aircraft in flight or operating on the______of an aerodrome.___
A. highway
B. hanger
C. maneuvering area
D. terminal
【单选题】
The true airspeed is the airspeed of an aircraft relative to______air.___
A. turbulence
B. smooth
C. undisturbed
D. the
【单选题】
Air speed is the speed of an aircraft relative to its surrounding______.___
A. traffic
B. airmass
C. clouds
D. wind
【单选题】
“Aircraft” means any machine that can derive support in the______from there actions of the air other than there actions of the air against the earth's surface.___
A. atmosphere
B. water
C. sea
D. lake
【单选题】
If the radar receiver detects the retarding time tR=500mS between transmitting pulse and receiving pulse,now the target is______km from the radar station.___
A. 150
B. 120
C. 100
D. 75
【单选题】
“Advise______”means“ Tell me what you plan to do”.___
A. wanting
B. intentions
C. ideas
D. command
【单选题】
The recommendation is advisory in nature.The decision as to whether the flight can be conducted safely rests solely with the______.___
A. controller
B. manager
C. pilot
D. passengers
【单选题】
“There are broken______along the entire route between niner and one one thousand feet at the present time.”___
A. radial
B. clouds
C. weather
D. way
【单选题】
Th evertical speed in dicator measures______of climb or descent.___
A. time
B. point
C. rate
D. distance
【单选题】
A magnetic compass is the______air navigation instrument.___
A. basic
B. advanced
C. computer
D. improved
【单选题】
In the AFTN,the flight plan filing time shall consist of a______data-time group.___
A. four-digit
B. five-digit
C. six-digit
D. eight-digit
【单选题】
“______”is a notice containing information concerning the establishment,condition or change in any aeronautical facility service procedure or hazard,the timely knowledge of which is essential to personnel concerned with flight operations.___
A. AIP
B. SIGMT
C. NOTAM
D. AMP
【单选题】
“______”means visibility,cloud and present weather better than prescribed values or conditions.___
A. Weather clear
B. RVRQK
C. CAVOK
D. VisibilityOK
【单选题】
“______”is the height above the ground or water of the base of the lowest layer of cloud below 6000m covering more than half sky.___
A. roof
B. VFR Top
C. VMC
D. Ceiling
【单选题】
管制员在对空指挥过程中,应当主动地控制一句管制指令中所包含的管制指令的内容。一般情况下,管制员发布的一句管制指令中,包含的管制内容不应当超过___项
A. 1
B. 2
C. 3
D. 4
【单选题】
当观察到两个或多个雷达位置指示符相近,或观察到在同时作相似的移动以及遇到其它引起对目标怀疑的情况时,管制员应当___。
A. :根据进程单和现有雷达信息仍可以提供雷达管制服务
B. :向移交方了解是否是航空器的原因
C. :应当采用两种以上识别方法进行识别直至确认为止
D. :首先报告领班主任
【单选题】
“AIP”is“”___
A. Air Information Publication
B. Air traffic information Publication
C. Air traffic International Publication
D. Aeronautical Information Publication
【单选题】
An air show may with the consent of the______be the reason for an aerodrome being closed to all traffic for a few hours.___
A. Control tower
B. ACC
C. Approach Control
D. proper authorities
【单选题】
Who will be in charge for a flight?___
A. The first officer
B. The pilot-in-command
C. Fligh tattendant
D. Pilot
【单选题】
“APU”is______.___
A. a ground power facility
B. an air boarding facility
C. a hydraulic facility
D. a fueling facility
【单选题】
The magnetic compass indicates the______in which an aircraft is flying with respect to the magnetic north pole.___
A. level
B. bearing
C. route
D. direction
【单选题】
VHF communication frequency is_________
A. 100MHZ~350MHZ
B. 10MHZ~136.97MHZ
C. 30MHZ~300MHZ
D. 2MHZ~29.9999MHZ
【单选题】
The rmalth under storm is caused by_________
A. heating imbalance of the earth’s surface
B. the effect of the weather system
C. the up lifting effect of the terrain
D. the aclinicflow of temperature
【单选题】
Which is not included in a Flight Plan.___
A. Aircraft identification
B. Names of the crew members
C. Type of aircraft
D. Wake turbulence category
【单选题】
________is the number assigned to a particular multiple pulse reply signal transmitted by a transponder.___
A. SSRsignal
B. Transponder codes
C. Transmitter’s signal
D. Radio signal
【单选题】
________is the ratio of true air speed to the speed of sound.___
A. Mach number
B. Speed
C. Rate
D. Air speed ratio
【单选题】
_______is a specified area within or over which there may exist activities constituting a potential danger to aircraft___
A. Active area
B. Danger area
C. Special area
D. Over danger area
【单选题】
_______istheactualflightpathofanaircraftoverthesurfaceoftheearth___
A. Flyingpath
B. Overfly
C. Oversurfaceflight
D. Track
【单选题】
_______isageographicallocationinrelationtowhichthepositionofanaircraft,isreported___
A. Relativepoint
B. Geographicalpoint
C. Newpoint
D. Reportingpoint
【单选题】
Redoncolorweatherradardenotes___
A. mediumrain
B. heavyrain
C. lightrain
D. drizzle
【单选题】
_______istheintersectionoflinesofreference,usuallyexpressedindegrees/minutes/tenthsofminutesoflatitudeandlongitude,usetodeterminepositionorlocation___
A. Coordinates
B. Found
C. Reference
D. Determine
【单选题】
_______isthespeedofanaircraftrelativetothesurfaceoftheearth.___
A. Speed
B. Groundspeed
C. Surfacespeed
D. Airspeed
【单选题】
_______isthedirectioninwhichthenoseoftheairplanepointsduringflight___
A. Direction
B. Bearing
C. Heading
D. Distance
【单选题】
_______isanaltitudeorflightlevelmaintainedduringen-routelevelflight___
A. Cruisingaltitude
B. Flightlevel
C. Flyinglevel
D. Crosslevel
【单选题】
_______isacontrolareaorportionthereofestablishedintheformofacorridor,thecenterlineofwhichisdefinedbyradionavigationalaids___
A. Flyingarea
B. Airway
C. Lines
D. Radioline
【单选题】
_______isanaerodromespecifiedintheflightplantowhichaflightmayproceedwhenitbecomesinadvisabletolandattheaerodromeofintendedlanding___
A. landingaerodrome
B. Aerodromeinuse
C. Alternateaerodrome
D. Plannedaerodrome
【单选题】
_______isamagneticbearingextendingfromaVOR/VORTAC/TACANnavigationfacility___
A. Radial
B. Bearing
C. Magneticnumber
D. Radionumber
【单选题】
_______isaspecifiedgeographicallocationusedtodefineanareanavigationrouteortheflightpathofanaircraftemployingareanavigation___
A. Navigationpoint
B. Way–point
C. Gate
D. Route
【单选题】
TheflightplanasfiledwithanATSunitbythepilotorhisdesignatedrepresentative,withoutanysubsequentchangesiscalled__________
A. AFTN
B. Planmessage
C. Changeflightplan
D. Filedflightplan