일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 아스널
- 치차리토
- UX/UI
- 루카쿠
- 유벤투스
- 베식타스
- 오피셜
- 라카제르
- 맨시티
- JavaScript
- Eclipse
- 첼시
- export
- 간편정리
- 파탄잘리
- 바르셀로나
- 마동석
- CSS
- 이클립스
- 맨유
- 레스터
- HTML
- 네이마르
- HTML/CSS
- jQuery
- 마티치
- HTML 제어
- 프로젝트
- jsp
- UI/UX
- Today
- Total
Be a groovy man by positive thinking
Ui/UX_019(자바스크립트 평가) 본문
1. Inside which HTML element do we put the JavaScript?
① <js> ② <scripting> ③ <script> ④ <javascript>
2. What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>
① #demo.innerHTML = "Hello World!";
② document.getElementByName("p").innerHTML = "Hello World!";
③ document.getElementById("demo").innerHTML = "Hello World!";
④ document.getElement("p").innerHTML = "Hello World!";
3. Where is the correct place to insert a JavaScript?
① Both the <head> section and the <body> section are correct
② The <head> section ③ The <body> section
4. What is the correct syntax for referring to an external script called "xxx.js"?
① <script src="xxx.js"> ② <script href="xxx.js"> ③ <script name="xxx.js">
5. The external JavaScript file must contain the <script> tag.
① True ② False
6. How do you write "Hello World" in an alert box?
① msgBox("Hello World"); ② alertBox("Hello World");
③ alert("Hello World"); ④ msg("Hello World");
7. How do you create a function in JavaScript?
① function:myFunction() ② function myFunction() ③ function = myFunction()
8. How do you call a function named "myFunction"?
① call myFunction() ② myFunction() ③ call function myFunction()
9. How do you find the number with the highest value of x and y?
① Math.max(x, y) ② Math.ceil(x, y) ③ ceil(x, y) ④ top(x, y)
10. What is the correct JavaScript syntax for opening a new window called "w2" ?
① w2 = window.link("http://www.test.com"); ② w2 = window.new("http://www.test.com");
③ w2 = window.open("http://www.test.com"); ④ w2 = window.reload("http://www.test.com");
11. What is the correct JavaScript syntax to change the style of the HTML?
① document.getElementById("test").style.font-size = "20px";
② document.getElementById("test").style.font.size = "20px";
③ document.getElementById("test").style.fontSize = "20px";
④ document.getElementById("test").style.font = "20px";
12. Change the correct syntax to acess parents window the HERE
function changeParents() {
HERE.document.getElementById("test").value = "홍길동";
}
① self ② opener ③ parents ④ top
13. What will the following code result?
var str = "javascript";
var str2 = str.substring(1,3);
var str3 = str.substr(7,3);
document.write(str2+" - ");
document.write(str3);
① jav - ipt ② jav - rip ③ av - ript ④ av - ipt
14. How do you round the number 7.25, to the nearest integer?
① Math.round(7.25) ② rnd(7.25) ③ Math.rnd(7.25) ④ round(7.25)
15. What is the correct way to write a JavaScript array?
① var colors = (1:"red", 2:"green", 3:"blue")
② var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
③ var colors = "red", "green", "blue"
④ var colors = ["red", "green", "blue"]
1. ③
2. ③
3. ①
4. ①
5. ②
6. ③
7. ②
8. ②
9. ①
10. ③
11. ③
12. ②
13. ④
14. ①
15. ④
'IT > _HTML_CSS_JS' 카테고리의 다른 글
UI/UX_021 (0) | 2017.08.07 |
---|---|
UI/UX_020(JQuery) (0) | 2017.08.03 |
UI/UX_018 (0) | 2017.08.02 |
UI/UX_017 (0) | 2017.07.31 |
UI/UX_016 (0) | 2017.07.28 |