1. Javoblardan qaysi biri xatolikka EGA. A murojaat b murojaat c murojaat


“= = =” operatori nima vazifa bajaradi?


Download 94.67 Kb.
bet13/25
Sana23.02.2023
Hajmi94.67 Kb.
#1224797
1   ...   9   10   11   12   13   14   15   16   ...   25
Bog'liq
Web dasturlash test savollari

mystyle.css
C) 145. “= = =” operatori nima vazifa bajaradi?
A) Tipini keltirmasdan taqqoslaydi
B) Qiymat bo‘yicha emas, murojaat bo‘yicha taqqoslaydi
C) Bunday operator mavjud emas
D) Tiplar keltiriladi, so‘ngra taqqoslanadi
146. JavaScriptda qanday binar operator mavjud emas?
A) # B) ^ C) & D) >>
147. a massivning a.length uzunligi qanday?
var a = []
a[1] = 5
a[3] = 53
delete a[3]

A) 4 B) 2 C) 6 D) Katta
148. a massivning a.length uzunligi qanday?
var a = []
a[1] = 5
a[5] = 55

A) 6 B) 1 C) 3 D) Boshqa
149. alert orqali nima chiqariladi?


A) Bu kod kross-brauzerli emas, umuman ishlamasligi mumkin
B) 5 chiqaradi
C) Input uchun satrli ifodalanishni chiqaradi
D) “Besh” chiqaradi
150. Ro‘yxatdagi ikkinchi TD bosilganda nima chiqaradi?
var list = document.getElementsByTagName('TD')
for (var i=0; i < list.length; i++) {
list[i].onclick = function() { alert(i) } }

A) Hujjatdagi TD larning umumiy soniga bog‘liq B) 1 C) 3 D) 5
151. Quyidagi kod bajarilganidan keyin checked atributi nimaga teng bo‘ladi?
var input = document.createElement("input")
input.type = "checkbox" input.setAttribute("checked","checked")

A) checked, Internet Explorerdan tashqari B) true
C) false D) har doim checked
152. a+b+c nimaga teng?
var a = 1
var b = { toString:function() {return '1'} }
var c = Object(1)

A) 111 B) 11[object Object] C) 2[object Object] D) 55
153. day o‘zgaruvchisi nimaga teng?
var day = parseInt("08.01.2008".split('.')[0])

A) 0 B) 2 C) 4 D) 6
154. Quyidagi kod natijasida input.checked xossasi nimaga teng?
var input = document.createElement("input")
input.type = "checkbox" input.setAttribute("checked","checked")
document.body.appendChild(input)

A) Turli brauzerlarda turlicha B) checked
C) true D) Kodda xatolik

Download 94.67 Kb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   ...   25




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling