Tag: web 2.0

Questions Related to web 2.0

  1. split()

  2. document.clear()

  3. join()

  4. charAt()


Correct Option: B
Explanation:

To answer this question, the user needs to have knowledge about the features supported by MSIE 3.x.

The correct answer is:

B. document.clear()

Option B is correct because the document.clear() method is supported in MSIE 3.x. This method clears the contents of the current document and is used to remove all the elements from the document.

Now let's go through each option and explain why it is right or wrong:

A. split(): This method is used to split a string into an array of substrings. However, this method is not supported in MSIE 3.x.

B. document.clear(): This method is used to clear the contents of the current document. This method is supported in MSIE 3.x.

C. join(): This method is used to join all elements of an array into a string. However, this method is not supported in MSIE 3.x.

D. charAt(): This method is used to return the character at a specified index in a string. This method is supported in MSIE 3.x, but it is not the correct answer to this question.

Therefore, the correct answer is B.

The Answer is: B. document.clear()

  1. The duration of the browser session.

  2. The duration the current document stays loaded.

  3. Twenty-four hours from the time the cookie is set.

  4. There is no default setting.


Correct Option: A
  1. If onKeyDown returns false, the key-press event is cancelled

  2. If onKeyPress returns false, the key-down event is cancelled.

  3. If onKeyDown returns false, the key-up event is cancelled.

  4. If onKeyPress returns false, the key-up event is canceled.


Correct Option: A
  1. a low-level programming language.

  2. a scripting language precompiled in the browser

  3. a compiled scripting language.

  4. an object-oriented scripting language.


Correct Option: D
  1. FileUpLoad

  2. Function

  3. File

  4. Date


Correct Option: C
  1. Database

  2. Cursor

  3. Client

  4. FileUpLoad


Correct Option: D
  1. The statement(s) it executes run(s) only once.

  2. It pauses the script in which it is called.

  3. clearTimeOut() won't stop its execution.

  4. The delay is measured in hundredths of a second.


Correct Option: A
Explanation:

To understand setTimeOut(), the user needs to know how JavaScript functions and the concept of asynchronous programming.

setTimeOut() is a built-in function in JavaScript that allows you to execute a block of code after a specified delay.

Now, let's go through each option and explain why it is right or wrong:

A. The statement(s) it executes run(s) only once. - This option is correct. The block of code passed as the first parameter to setTimeOut() is executed only once after the specified delay. If you want to execute it repeatedly, you can use setInterval().

B. It pauses the script in which it is called. - This option is incorrect. setTimeOut() is an asynchronous function, which means that it does not pause the script. Instead, it schedules the block of code to run after the specified delay and continues executing the rest of the code.

C. clearTimeOut() won't stop its execution. - This option is incorrect. If you want to stop the execution of setTimeOut() before it runs the scheduled block of code, you can use clearTimeout(). This function takes the ID returned by setTimeOut() as a parameter and cancels the execution.

D. The delay is measured in hundredths of a second. - This option is incorrect. The delay is measured in milliseconds, not hundredths of a second. For example, if you want to delay the execution of a block of code for 1 second, you can pass 1000 (1000 milliseconds = 1 second) as the delay parameter to setTimeOut().

Therefore, the correct answer is:

The Answer is: A

  1. kgh

  2. hi

  3. ouh

  4. kjh


Correct Option: D
  1. Example Markup Language

  2. X-Markup Language

  3. eXtra Modern Link

  4. eXtensible Markup Language


Correct Option: D
  1. XML uses a DTD to describe the data

  2. XML uses a description node to describe data

  3. XML uses XSL to describe data

  4. XML uses a DND to describe the data


Correct Option: A