Q. Local Browser used for validations on the Web Pages uses __________.

  • (A) Java
  • (B) HTML
  • (C) CSS
  • (D) JS
πŸ’¬ Discuss
βœ… Correct Answer: (D) JS
Explanation: Javascript is used to locally to validate the forms.

Q. The main purpose of a “Live Wire” in NetScape is to

  • (A) Create linkage between client side and server side
  • (B) Permit server side, JavaScript code, to connect to RDBMS
  • (C) Support only non relational database
  • (D) To interpret JavaScript code
πŸ’¬ Discuss
βœ… Correct Answer: (B) Permit server side, JavaScript code, to connect to RDBMS

Q. Which is not valid data type in Javascript

  • (A) Undefinded
  • (B) Boolean
  • (C) float
  • (D) Number
πŸ’¬ Discuss
βœ… Correct Answer: (C) float

Q. Which type of language is Javascript

  • (A) Programming
  • (B) Scripting
  • (C) Markup
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Scripting

Q. By which javascript code is used

  • (A) Classes
  • (B) Methods/Functions
  • (C) RMI
  • (D) Events
πŸ’¬ Discuss
βœ… Correct Answer: (B) Methods/Functions

Q. Which tag is used to write the javascript code

  • (A) <script>
  • (B) <sp>
  • (C) <javascript>
  • (D) <java>
πŸ’¬ Discuss
βœ… Correct Answer: (A) <script>

Q. Which of the following function of String object causes a string to be italic, as if it were in an <i> tag?

  • (A) fontsize()
  • (B) fontcolor()
  • (C) fixed()
  • (D) italics()
πŸ’¬ Discuss
βœ… Correct Answer: (D) italics()

Q. Why so JavaScript and Java have similar name?

  • (A) They both originated on the island of Java
  • (B) JavaScript's syntax is loosely based on Java's
  • (C) Both A and B
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) JavaScript's syntax is loosely based on Java's

Q. What will be the output of following JavaScript code?

Code:
<script type="text/javascript"> 
var a="Tanmay"; 
var x=a.lastIndexOf("a"); 
document.write(x); 
</script>
  • (A) 4
  • (B) 5
  • (C) 1
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (A) 4

Q. Purpose of designing the Javascript

  • (A) To Perform Server Side Scripting Opertion
  • (B) To add interactivity to HTML Pages
  • (C) To Style HTML Pages
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) To add interactivity to HTML Pages