0

programming languages Online Quiz - 79

Description: programming languages Online Quiz - 79
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Can we create multiple objects of a single class

  1. True

  2. False


Correct Option: A
  1. request

  2. ServletConfig

  3. ServletContext

  4. application


Correct Option: B

intern method is used for

  1. Finding length of string

  2. Clearing elements in Vector

  3. Comparing two Strings

  4. None of above


Correct Option: C

javax.swing.tree is

  1. Package

  2. class

  3. interface

  4. none of the above


Correct Option: C

The following piece of javascript code is going to work fine. function tryVariableArguments() { var intCnt = 0; for (intCnt = 0; intCnt < tryVariableArguments.arguments.length; intCnt++) { alert(tryVariableArguments.arguments[intCnt]); } } Trial Page tryVariableArguments('1','2','3'); tryVariableArguments('1','2'); tryVariableArguments();

  1. True

  2. False


Correct Option: B

window.location.href="www.google.com". The given statement when executed would result in one of the following:

  1. It will give an error

  2. It will execute and nothing will happen

  3. It will execute and www.google.com is going to open

  4. None of The above


Correct Option: C
  1. When browser is closed

  2. When the page reloads as well.

  3. Only when you navigate out of the page.

  4. All Of the Above


Correct Option: D

Javascript does not distinguish between name of a function and a variable

  1. True

  2. False


Correct Option: B

innerHTML, innerText, outerHTML and outerText. What are these of Element object

  1. Methods

  2. Properties

  3. Objects

  4. None of The above


Correct Option: B

One can add custom method and properties to objects in javascript without using prototype as well.

  1. True

  2. False


Correct Option: B

parseJSON is a standard function available in javascript like alert, eval and others.

  1. True

  2. False


Correct Option: B

All the HTML objects like Form, Select, Textarea and others are implicitly an instance of Element as well

  1. True

  2. False


Correct Option: B

It is possible to add custom methods and properties in pre-existing objects like String, Math and others

  1. True

  2. False


Correct Option: B

URL accessed through XMLHttpRequest's open method is stored in the history of the browser.

  1. True

  2. False


Correct Option: B
- Hide questions