0% found this document useful (0 votes)
245 views6 pages

Web Technology (Chapter - JavaScript) Solved MCQs (Set-2)

This document contains 50 multiple choice questions about JavaScript. The questions cover topics like calling JavaScript code, variable types, operators, comments, arrays, and basic syntax. They test knowledge of JavaScript fundamentals like data types, functions, operators, and how JavaScript code is embedded in HTML documents.

Uploaded by

Athithya R
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
245 views6 pages

Web Technology (Chapter - JavaScript) Solved MCQs (Set-2)

This document contains 50 multiple choice questions about JavaScript. The questions cover topics like calling JavaScript code, variable types, operators, comments, arrays, and basic syntax. They test knowledge of JavaScript fundamentals like data types, functions, operators, and how JavaScript code is embedded in HTML documents.

Uploaded by

Athithya R
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 6

Web Technology MCQs [set-2]

Chapter: JavaScript

26. Which one of the following is the correct way for calling the JavaScript code?
A. Preprocessor
B. Triggering Event
C. RMI
D. Function/Method
Answer: D

27. Which of the following type of a variable is volatile?


A. Mutable variable
o m
B. Dynamic variable
. c
C. Volatile variable
te
D. Immutable variable
a
Answer: A

q M
28. the JavaScript, which one ofc
the following is not considered as an error:
A. Syntax error M
B. Missing of semicolons
C. Division by zero
D. Missing of Bracket
Answer: C

29. In JavaScript the x===y statement implies that:


A. Both x and y are equal in value, address as well.
B. Both are x and y are equal in value only.
C. Both are equal in the value and data type.
D. Both are not same at all.
Answer: C

30. In JavaScript, what will be used for calling the function definition expression:
A. Function prototype
B. Function literal
C. Function calling
D. Function declaration
Answer: B

31. Which one of the following is an ternary operator:


A. ?
B. :
C. -
D. +
Answer: A

32. Which one of the following is known as the Equality operator, which is used to
check whether the two values are equal or not:
A. =
B. ===
C. ==
D. &&
Answer: C

33. Which one of the following symbol is used for creating comments in the
javascript:
A. \\
B. //
C. \* *\
D. \* */
Answer: B

34. Which one of the following is not considered as "statement" in the JavaScript?
A. use strict
B. debugger
C. if
D. with
Answer: A

35. A collection of elements of the same data type which may either in order or not,
is called _____.
A. String

Download more sets at McqMate.com


B. Array
C. Serialized Object
D. Object
Answer: B

36. Is JavaScript a case-sensitive language?


A. true
B. false
C. can not say
D. none of these
Answer: A

37. JavaScript is ______ Side scripting language.


A. Server
B. Client
C. ISP
D. Browser
Answer: D

38. . The behaviour of the document elements can be defined by


A. Using document object
B. Registering appropriate event handlers
C. Using element object
D. All of the mentioned
Answer: B

39. The service(s) that enables networking through scripted HTTP requests is
A. XMLHttpResponse
B. XMLRequest
C. XMLHttpRequest
D. All of the mentioned
Answer: C

40. The HTML5 specification includes


A. Data storage
B. Graphics APIs
C. Other APIs for web apps

Download more sets at McqMate.com


D. All of the mentioned
Answer: D

41. Which of the following are not advanced services?


A. Data storage
B. Networking
C. XMLHttpRequest object
D. None of the mentioned
Answer: D

42. JavaScript code between a pair of “script” tags are called


A. Non-inline
B. External
C. Referenced
D. Inline
Answer: D

43. Client-side JavaScript code is embedded within HTML documents in


A. A URL that uses the special javascript:encoding
B. A URL that uses the special javascript:stack
C. A URL that uses the special javascript:protocol
D. A URL that uses the special javascript:code
Answer: C

44. What is the programming philosophy that argues that content and behaviour
should as much as possible be kept separate?
A. Unobtrusive JavaScript
B. Obtrusive JavaScript
C. Inherited JavaScript
D. Modular JavaScript
Answer: A

45. Which of the following communicates with server-side CGI scripts through
HTML
form submissions and can be written without the use of JavaScript?
A. Static Web Pages
B. Interactive Web Pages

Download more sets at McqMate.com


C. Conditional Web Pages
D. None of the mentioned
Answer: B

46. ______ tag is an extension to HTML that can enclose any number of JavaScript
statements.
A. <SCRIPT>
B. <BODY>
C. <HEAD>
D. <TITLE>
Answer: A

47. How does JavaScript store dates in a date object?


A. The number of milliseconds since January 1st, 1970
B. The number of days since January 1st, 1900
C. The number of seconds since Netscape's public stock offering.
D. None of the above
Answer: A

48. Which of the following attribute can hold the JavaScript version?
A. LANGUAGE
B. SCRIPT
C. VERSION
D. None of the above
Answer: A

49. 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")
Answer: C

50. Which of the following way can be used to indicate the LANGUAGE attribute?
A. <LANGUAGE="JavaScriptVersion">
B. <SCRIPT LANGUAGE="JavaScriptVersion">
C. C. <SCRIPT LANGUAGE="JavaScriptVersion"> JavaScript statements…</SCRIPT>
D. D. <SCRIPT LANGUAGE="JavaScriptVersion"!> JavaScript statements…</SCRIPT>

Download more sets at McqMate.com


Answer: C

Download more sets at McqMate.com

You might also like