Complete JavaScript Exam
Complete JavaScript Exam
a) if(i != 5)
b) if(i != 5)
c) if i <> 5
d) if i != 5
Question 2:
Question 3:
a) ECMA
b) Mozilla
d) W3C
Question 4:
a) ceil(2, 4)
b) top(2, 4)
c) Math.ceil(2, 4)
d) Math.max(2, 4)
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 1/16
6/5/2019 Complete JavaScript exam
Question 5:
Question 6:
a) Mozilla
b) Netscape
c) Sun
Question 7:
In JavaScript, to obtain the length of the string 'cad', the following is used
a) strlen(cad)
b) len(cad)
c) cad.length
Pregunta 8:
b) Document Of Model
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 2/16
6/5/2019 Complete JavaScript exam
Question 9:
Question 10:
Pregunta 11:
In JavaScript, how do you round the number 7.25 to the nearest integer?
a) round(7.25)
Math.round(7.25)
c) Math.rnd(7.25)
d) rnd(7.25)
Question 12:
a) console.append()
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 3/16
6/5/2019 Complete JavaScript exam
b) console.log()
c) console.print()
d) console.write()
Question 13:
a) if i=5 then
b) if(i=5)
c) if i==5 then
if(i==5)
Question 14:
an attribute
b) A node
a table
Question 15:
a) Compiled
b) Interpreted
c) Unstructured
Question 16:
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 4/16
June 5, 2019 Complete JavaScript Exam
getElementsById()
b) getElementByName()
c) getElementsByTagName()
Question 17:
What is JSON?
Question 18:
c) for i = 1 to 5
Question 19:
c) Jump to the next iteration in the current for, while, or do-while loop
Question 20:
a) lower()
b) lowerCase()
toLower()
toLowerCase()
Question 21:
c) The progressive improvement in order to support the user agents that do not
admitan funcionalidades avanzadas de JavaScript
Question 22:
Question 23:
a) deleteChild()
b) dropChild()
c) removeChild()
gplsi.dlsi.ua.es/projects/examiner/test.php?id=24&lang=en 6/16
6/5/2019 Complete JavaScript exam
Question 24:
b) call miFuncion()
c) myFunction()
Question 25:
a) <script>
b) <javascript>
c) <scripting>
d) <js>
Question 26:
b) // Comment
c) ' Comment
Question 27:
brother
b) next
c) nextBrother
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 7/16
6/5/2019 Complete JavaScript Exam
Question 28:
In the DOM, to get the CSS class that is applied to an element, the
property
a) css
b) class
c) className
d) style
Question 29:
a) browser.appVersion
b) browser.version
c) navigator.appVersion
d) navigator.version
Pregunta 30:
a) Bill Gates
Bjarne Stroustrup
c) Brendan Eich
d) Dennis M. Ritchie
Question 31:
In JavaScript, what is the name of the method that checks a regular expression and
returns true if it is fulfilled?
check()
b) exec()
c) run()
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 8/16
6/5/2019 Complete JavaScript Exam
d) test()
Question 32:
a) match()
b) replace()
c) slice()
d) split()
Question 33:
In JavaScript, how can you navigate to the previous page in the history?
navigation?
a) navigator.go(-1)
b) document.url.prev()
c) url.return()
d) history.back()
Question 34:
a) char()
b) charAt()
c) value()
Pregunta 35:
a) In the <head>
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 9/16
6/5/2019 Complete JavaScript Exam
b) In the <body>
Question 36:
Should an external file with JavaScript code contain the <script> tag?
a) Yes
b) No
Question 37:
&
Question 38:
window.status("the message")
navigator.status("the message")
Question 39:
b) ECMA
c) ISO
gplsi.dlsi.ua.es/projects/examiner/test.php?id=24&lang=en 10/16
6/5/2019 Complete JavaScript Exam
d) W3C
Question 40:
c) No delimiter is used
Pregunta 41:
a) document.open("page.html")
document.new("page.html")
window.open("pagina.html")
window.new("pagina.html")
Question 42:
a) It cannot be
b) Exit for
c) break
Question 43:
a) function:myFunction()
b) function->myFunction()
c) function myFunction()
Question 44:
In the DOM, to obtain the textual content of a part of the page, one uses
the property
a) content
b) text
c) textContent
d) value
Question 45:
c) Jump to the next iteration in the current for, while, or do-while loop
Question 46:
Question 47:
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 12/16
6/5/2019 Examen de: JavaScript completo
Question 48:
In JavaScript, how do you display a window with the message 'Hello world!'?
alert('Hello world!');
alertBox("Hello world!");
d) msgBox("Hello world!");
Question 49:
In JavaScript, what is the name of the object that represents a regular expression?
a) There is no object
b) ExpReg
c) RegExp
d) Rexp
Question 50:
a) document.arrayCookie
b) document.cookie
c) document.getCookie()
Question 51:
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 13/16
6/5/2019 Examen de: JavaScript completo
a) elementType
b) nodeType
c) type
Question 52:
-1
b) 0
c) 1
Question 53:
a) # Comment
// Comment
c) ' Comment
Question 54:
a) "%"
Question 55:
gplsi.dlsi.ua.es/projects/examiner/test.php?id=24&lang=en 14/16
6/5/2019 Complete JavaScript Exam
check()
b) exec()
c) run()
d) test()
Question 56:
Question 57:
window.blank("pagina.html", "new")
b) window.new("page.html", "new")
c) window.create("page.html", "new")
Question 58:
In JavaScript, what is the correct way to write the string 'Hello world'?
a website?
document.print("Hello world")
document.write("Hello world")
window.print("Hello world")
window.write("Hello world")
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 15/16
6/5/2019 Complete JavaScript Exam
Question 59:
a tree
b) A list
c) A hash table
Question 60:
a) Math.rnd()
b) Math.round()
c) Math.random()
Question 61:
a) appendChild()
b) createChild()
newChild()
Correct exam
gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=24&lang=es 16/16