Test
Quiz 1
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (60)
1What is not true about let, var, and const?
- Alet and const were new additions in ES6
- Blet can be defined in block scope
- Clet can be redeclared in the same scope
- Dconst cannot be reassigned
2By default, event handlers are set to the bubbling phase.
- AVerdadero
- BFalso
3What is the result of the following operation?
( 7 || 0 ) ? "hello" : world- A"hello"
- Bworld
- Cthe operation will result in a reference error
4This function of the XMLHttpRequest object sends the request to the server?
- Asend
- Brun
- Csubmit
- DNone of these.
5Which of these is not among the parameters used in the XMLHttpRequest open function?
- Ahttp method
- BURL
- Casync on/off
- Dform data
6This property of the XMLHttpRequest object will contain the event handler to be called when the readystatechange event is fired.
- Aonstatuschange
- Bonreadystate
- Conreadystatechange
- DNone of these.
7This property of the XMLHttpRequest object will have a value of 200 when the server sends back an HTTP response with an OK status code.
- Astatus
- BreadyState
- Conreadystatechange
- DNone of these.
8This property of the XMLHttpRequest object will have a value of 4 when the server completes the requested operation.
- Astatus
- BreadyState
- Conreadystatechange
- DNone of these.
9How can you add new DIV elements dynamically?
- Adocument.createElement('div')
- Bdocument.createNode('div')
- Cdocument.createDiv( )
- Ddocument.newElement('div')
10What is === operator?
- ACompares equality and, if equal, assigns the value of the left operator to the value of the right
- BCompares value equality as well as data type
- CBasic assignment operator
- DBasic comparison operator
11Which is not a JavaScript data type?
- ANumber
- BString
- CBoolean
- DFunction
- EObject
- FNull
- GUndeclared
12What is not true about JavaScript?
- AJavaScript is a scripting language
- BIt is object-based, lightweight and cross platform
- CIt is widely used for client side validation
- DJavaScript relies on server-side technologies to manage cookies
- EAble to build interactivity into otherwise static HTML pages
- FEmbedded in Netscape, Internet Explorer, and other web browsers
13!== will perform type coercion.
- AVerdadero
- BFalso
14In JavaScript, Array inherits from Object.
- AVerdadero
- BFalso
15In JavaScript, a closure is an inner function that has access to its outer function's scope, even after the outer function has returned.
- AVerdadero
- BFalso
16JavaScript code is compiled before being delivered to the browser (or other platform).
- AVerdadero
- BFalso
17What is the correct JavaScript syntax to change the content of the HTML element?
- A#demo.innerHTML = "Hello World!";
- Bdocument.getElementByName("demo").innerHTML = "Hello World!";
- Cdocument.getElementById("demo").innerHTML = "Hello World!";
- Ddocument.getElement("demo").innerHTML = "Hello World!";
18What is the correct way to write a JavaScript array?
- Avar colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
- Bvar colors = (1:"red", 2:"green", 3:"blue")
- Cvar colors = "red", "green", "blue"
- Dvar colors = ["red", "green", "blue"]
19Which of the following is not a valid JavaScript data type?
- Aint
- Bstring
- Cboolean
- Darray
20What does DOM stand for?
- ADocument Object Model
- BDocumented Object Model
- CDocument Objective Modeling
- DDormant Object Model
21Which of the following gets an HTML element with ID = "Main"
- Adocument.getElementById("Main");
- Bdocument.getElementWithId("Main");
- Cwindow.getElementById("Main");
- Ddocument.parseForId("Main);
22You are allowed to have more than one script tag on the page for multiple JavaScript references.
- AVerdadero
- BFalso
23Null is not a data type of JavaScript
- AVerdadero
- BFalso
24What is the opposite of bubbling?
- ACapturing
- BPopping
- CSeeking
- DDropping
25What is the correct syntax for referring to an external script called "my.js"
- A<script> my.js </script>
- B<script name="my.js">
- C<script href="my.js">
- D<script src="my.js">
26JavaScript Supports dynamic typing
- AVerdadero
- BFalso
27A String can be made using either the single or double quotes characters.
- AVerdadero
- BFalso
28How many elements does the following array have [1,2,'3']
- A1
- B2
- C3
- DFALSE
29The default value returned from a function is undefined.
- AVerdadero
- BFalso
30Which method do you call to output information to the Developer's Console?
- Aconsole.log
- Bconsole.print
- Cconsole.talk
- Dconsole.out
31An object is essentially a collection of key/value pairs.
- AVerdadero
- BFalso
32Given the following, which of the following correctly binds the click event to an element?
< button id="clicker" >Click Me< /button > ... var elem = document.getElementById("clicker");- Aelem.addEventListener("click", function(){?});
- Belem.attachEventListener("click", function(){?});
- Celem.addEventListener("mouseclick", function(){?});
- Delem.attachEvent("mouseclick", function(){?});
33A callback function is a function that is an argument of another function that is typically executed before returning.
- AVerdadero
- BFalso
34The number 1, is considered truthy
- AVerdadero
- BFalso
35Which of the following JSON would correctly model the following:
A Person with the name Kyle Miller and an age of 20- Aperson = { name: 'Kyle Miller', age: 20, }
- Bperson.name = 'Kyle Miller'; person.age = 20;
- Cperson = { 'Kyle Miller', 20, }
- Dperson = { name: "Kyle Miller"; age: 20; }
36Which of the following JSON would correctly model the following:
A list of numbers from 1, to 4- Adata = [1, 2, 3, 4] ***.....dumb question
- Bdata = { value: 1, value: 2, value: 3, value: 4 }
- Cdata = { [1,2,3,4]}
- Ddata = { 1: 2; 3:4 }
37The XHR object has a readyState property that can have a value of 0-4. What does 0 represent?
- Athe request was not initialized
- Bthe server connection was established
- Cthe request was received by the server
- Dthe server is still processing the request
- Ethe response is ready
38The XHR object has a readyState property that can have a value of 0-4. What does 1 represent?
- Athe request was not initialized
- Bthe server connection was established
- Cthe request was received by the server
- Dthe server is still processing the request
- Ethe response is ready
39The XHR object has a readyState property that can have a value of 0-4. What does 2 represent?
- Athe request was not initialized
- Bthe server connection was established
- Cthe request was received by the server
- Dthe server is still processing the request
- Ethe response is ready
40The XHR object has a readyState property that can have a value of 0-4. What does 3 represent?
- Athe request was not initialized
- Bthe server connection was established
- Cthe request was received by the server
- Dthe server is still processing the request
- Ethe response is ready
41JSON stands for
- AJava Object Notes
- BJavaScript Objective Notation
- CJavaScript Object Notation
- DJava Objective Notation
42Which of the following methods of the JSON object will convert data from a string to an object.
- Astringify()
- Bparse()
- CconvertString()
- DconvertObject()
43AJAX stands for Asynchronous JSON and XML
- AVerdadero
- BFalso
44Which HTML tag would you use to allow the user to navigate to a different page?
- A<link>
- B<a>
- C<button>
- D<nav>
45An attribute is
- AThe name of a tag
- BExtra data provided to a tag
- CAny child tag
- DA tag which cannot contain other tags
46Forms are
- AArbitrary structuring elements.
- BUsed to collect a group of input fields into a single set.
- CInput arbitrarily long text.
- DUsed to form complicated designs in CSS.
47Web browsers are primarly used for
- Acreating a visual representation of an HTML document.
- Bediting and manipulating HTML documents by developers.
- Cediting and manipulating CSS documents by developers.
48CSS stands for
- ACascading Sample Sheets
- BColorful Style Sheets
- CCascading Style Sites
- DCascading Style Sheets
49The three basic selectors are
- Aelement, tag, and class
- Bclass, ID, and pseudoclass
- Cname, class, and ID
- Dtag, class, and ID
50A CSS selector is
- Aa special keyword in CSS
- Bthe name of a styling option which we can modify.
- Can assignable value for a property.
- Da string of text used to target elements in an HTML document
51HTTP stands for
- AHyperText Transfer Protocol
- BHyperText Markup Language
- CHyperText Telephone Protocol
- DHyperTransfer Text Protocol
52What is the difference between XML and HTML?
- AHTML is used for exchanging data, XML is not.
- BXML is used for exchanging data, HTML is not.
- CHTML can have user defined tags, XML cannot
53What is the root element of an html page?
- A<html>
- B<root>
- C<!DOCTYPE html>
- D<body>
54How can you make an unordered list?
- A<ul>
- B<unorderedlist>
- C<list type="unordered">
- D<li>
55ID and CLASS are examples of HTML
- Aattributes.
- Belements.
- Ctags.
- Ddeclarations.
56What does HTML stand for?
- AHyper Text Markup Language
- BHyperlinks and Text Markup Language
- CHome Tool Markup Language
- DHyper Tool Markup Language
57HTML is a programming language.
- AVerdadero
- BFalso
58HTML attribute values are case-sensitive
- AVerdadero
- BFalso
59HTML is used to display data while XML is used to store data.
- AVerdadero
- BFalso
60HTML comments start with <!-- and end with ->
- AVerdadero
- BFalso
Información
- Descripción
- Test sobre Quiz 1, creado por Phillip Schneider el 11/06/2019.
- Autor
- Phillip Schneider
- Idioma
- English
- Visitas
- 14
- Valoración
- Aún sin valoraciones Valora este test