GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

JS/JQ Test

Zoran Zorovicevic 20 Fragen

Quiz starten

Fragen in diesem Quiz (20)

  1. 1_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
    1. AClient-side
    2. BServer-side
    3. CLocal
    4. DNative
  2. 2Which of the following are capabilities of functions in JavaScript?
    1. AReturn a value
    2. BAccept parameters and Return a value
    3. CAccept parameters
    4. DNone of the above
  3. 3How does JavaScript store dates in a date object?
    1. AThe number of milliseconds since January 1st, 1870
    2. BThe number of days since January 1st, 1900
    3. CThe number of seconds since Netscape's public stock offering.
    4. DNone of the above
  4. 4What is the correct JavaScript syntax to write "Hello World"?
    1. ASystem.out.println("Hello World")
    2. Bprintln ("Hello World")
    3. Cdocument.write("Hello World")
    4. Dresponse.write("Hello World")
  5. 5Which is the correct way to write a JavaScript array?
    1. Avar txt = {"firstName":"John", "lastName":"Doe"};
    2. Bvar txt = "firstName":"John", "lastName":"Doe";
    3. Cvar txt = ["Saab", "Volvo", "BMW"];
    4. Dvar txt = new Array="tim","kim","jim";
  6. 6What is the correct jQuery code to set the background color of all p elements to red?
    1. A$("p").layout("background-color","red");
    2. B$("p").manipulate("background-color","red");
    3. C$("p").css("background-color","red");
    4. D$("p").style("background-color","red");
  7. 7Which is the correct way to write a JavaScript object?
    1. Avar txt = "firstName":"John", "lastName":"Doe";
    2. Bvar txt = {"firstName":"John", "lastName":"Doe"};
    3. Cvar txt = ["Saab", "Volvo", "BMW"];
    4. Dvar txt = new Array="tim","kim","jim";
  8. 8What does the <noscript> tag do?
    1. AEnclose text to be displayed by non-JavaScript browsers.
    2. BPrevents scripts on the page from executing.
    3. CDescribes certain low-budget movies.
    4. DNone of the above
  9. 9If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
    1. A"New Text"?
    2. Bpara1.value="New Text";
    3. Cpara1.firstChild.nodeValue= "New Text";
    4. Dpara1.nodeValue="New Text";
  10. 10JavaScript entities start with _______ and end with _________.
    1. ASemicolon, colon
    2. BSemicolon, Ampersand
    3. CAmpersand, colon
    4. DAmpersand, semicolon

Informationen

Beschreibung
Quiz am JS/JQ Test, erstellt von Zoran Zorovicevic am 14/01/2021.
Sprache
English
Aufrufe
32
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck