Quiz
JS/JQ Test
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (20)
1_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
- AClient-side
- BServer-side
- CLocal
- DNative
2Which of the following are capabilities of functions in JavaScript?
- AReturn a value
- BAccept parameters and Return a value
- CAccept parameters
- DNone of the above
3How does JavaScript store dates in a date object?
- AThe number of milliseconds since January 1st, 1870
- BThe number of days since January 1st, 1900
- CThe number of seconds since Netscape's public stock offering.
- DNone of the above
4What is the correct JavaScript syntax to write "Hello World"?
- ASystem.out.println("Hello World")
- Bprintln ("Hello World")
- Cdocument.write("Hello World")
- Dresponse.write("Hello World")
5Which is the correct way to write a JavaScript array?
- Avar txt = {"firstName":"John", "lastName":"Doe"};
- Bvar txt = "firstName":"John", "lastName":"Doe";
- Cvar txt = ["Saab", "Volvo", "BMW"];
- Dvar txt = new Array="tim","kim","jim";
6What is the correct jQuery code to set the background color of all p elements to red?
- A$("p").layout("background-color","red");
- B$("p").manipulate("background-color","red");
- C$("p").css("background-color","red");
- D$("p").style("background-color","red");
7Which is the correct way to write a JavaScript object?
- Avar txt = "firstName":"John", "lastName":"Doe";
- Bvar txt = {"firstName":"John", "lastName":"Doe"};
- Cvar txt = ["Saab", "Volvo", "BMW"];
- Dvar txt = new Array="tim","kim","jim";
8What does the <noscript> tag do?
- AEnclose text to be displayed by non-JavaScript browsers.
- BPrevents scripts on the page from executing.
- CDescribes certain low-budget movies.
- DNone of the above
9If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
- A"New Text"?
- Bpara1.value="New Text";
- Cpara1.firstChild.nodeValue= "New Text";
- Dpara1.nodeValue="New Text";
10JavaScript entities start with _______ and end with _________.
- ASemicolon, colon
- BSemicolon, Ampersand
- CAmpersand, colon
- DAmpersand, semicolon
11Choose the server-side JavaScript object?
- AFileUpLoad
- BFunction
- CFile
- DDate
12Which of the following is not considered a JavaScript operator?
- Anew
- Bthis
- Cdelete
- Dtypeof
13______method evaluates a string of JavaScript code in the context of the specified object.
- AEval
- BParseInt
- CParseFloat
- DEfloat
14JavaScript is interpreted by _________
- AClient
- BServer
- CObject
- DNone of the above
15which statement is faster in between switch and if?
- Aboth are equal
- BIf
- CSwitch
- Dnone
16Which of the following is the structure of an if statement?
- Aif (conditional expression is true) thenexecute this codeend if
- Bif (conditional expression is true)execute this codeend if
- Cif (conditional expression is true) {then execute this code>->}
- Dif (conditional expression is true) then {execute this code}
17To set up the window to capture all Click events, we use which of the following statement?
- Awindow.captureEvents(Event.CLICK);
- Bwindow.handleEvents (Event.CLICK);
- Cwindow.routeEvents(Event.CLICK );
- Dwindow.raiseEvents(Event.CLICK );
18____________ is the tainted property of a window object.
- APathname
- BProtocol
- CDefaultstatus
- DHost
19Which jQuery method is used to perform an asynchronous HTTP request?
- AjQuery.ajaxAsync()
- BjQuery.ajax()
- CjQuery.ajaxSetup()
- DjQuery.host()
20Which jQuery function is used to prevent code from running, before the document is finished loading?
- A$(document).load()
- B$(document).ready()
- C$(body).onload()
- Dwindow.on.load()
Informações
- Descrição
- Quiz sobre JS/JQ Test, criado por Zoran Zorovicevic em 14-01-2021.
- Autor
- Zoran Zorovicevic
- Idioma
- English
- Visualizações
- 32
- Avaliação
- Ainda sem avaliações Avalie este quiz