Javascript_Introduction_quiz.md - brainchildservices/curriculum GitHub Wiki
-
Why do JavaScript and Java have similar names?
A. JavaScript is a stripped-down version of Java
B. JavaScript's syntax is loosely based on Java's
C. They both originated on the island of Java
D. None of the above
Ans: B
-
_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse clicks, form input, and page navigation.?
A. Client-side
B. Server-side
C. Local
D. Native
Ans: A
-
Inside which HTML element do we put the JavaScript?
A. SCRIPT
B. BODY
C. HEAD
D. TITLE
-
Is JavaScript a case-sensitive language?
A. Yes
B. No
-
What is the correct JavaScript syntax to write "Hello World"?
A. System.out.println("Hello World")
B. println ("Hello World")
C. document.write("Hello World")
D. response.write("Hello World")
Ans: C
-
JavaScript is interpreted by _________?
A. Client
B. Server
C. Object
D. None of the above
Ans: A
-
Which of the following is the correct syntax to display “GeeksforGeeks” in an alert box using JavaScript?
A. alertbox(“GeeksforGeeks”);
B. msg(“GeeksforGeeks”);
C. msgbox(“GeeksforGeeks”);
D. alert(“GeeksforGeeks”);
Ans: D
-
JavaScript is interpreted by _________?
A. Client
B. Server
C. Object
D. None of the above
Ans: A
-
Which of the following best describes JavaScript?
A. a low-level programming language.
B. a scripting language precompiled in the browser.
C. a compiled scripting language.
D. an object-oriented scripting language.
Ans: D
-
JavaScript entities start with _______ and end with _________.?
A. Semicolon, colon
B. Semicolon, Ampersand
C. Ampersand, colon
D. Ampersand, semicolon
Ans: D
-
Which types of image maps can be used with JavaScript?
A. Server-side image maps
B. Client-side image maps
C. Server-side image maps and Client-side image maps
D. None of the above
Ans: B
-
When a user views a page containing a JavaScript program, which machine actually executes the script?
A. The User's machine running a Web browser
B. The Web server
C. A central machine deep within Netscape's corporate offices
D. None of the above
Ans: A