0

web technology Online Quiz - 50

Description: web technology Online Quiz - 50
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

Which best describes JavaScript?

  1. a low-level programming language.

  2. a compiled scripting language.

  3. an object-oriented scripting language.

  4. a scripting language precompiled in the browser.


Correct Option: D
  1. document.URL

  2. window.location.href

  3. document.location.href

  4. link.href


Correct Option: B

What's the default setting for the expires attribute of the document.cookie property?

  1. The duration the current document stays loaded.

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

  3. There is no default setting.

  4. The duration of the browser session.


Correct Option: D

Choose the server-side JavaScript object?

  1. FileUpLoad

  2. Function

  3. File

  4. Date


Correct Option: C

AI Explanation

To answer this question, we need to understand the concept of server-side JavaScript objects.

Option A) FileUpLoad - This option is incorrect because FileUpLoad is not a built-in server-side JavaScript object.

Option B) Function - This option is incorrect because Function is a built-in JavaScript object, but it can be used both on the server-side and the client-side.

Option C) File - This option is correct because File is a built-in server-side JavaScript object that represents a file on the server.

Option D) Date - This option is incorrect because Date is a built-in JavaScript object, but it can be used both on the server-side and the client-side.

The correct answer is C) File. This option is correct because File is a specific server-side JavaScript object that represents a file on the server.

Choose the client-side JavaScript object?

  1. FileUpLoad

  2. Client

  3. Cursor

  4. Database


Correct Option: A

Which property returns the number of arguments expected by a function?

  1. arguments.length

  2. Function.caller

  3. Function.display

  4. Function.arity


Correct Option: D

AI Explanation

To answer this question, you need to understand the concept of function properties.

Option A) arguments.length - This option is incorrect because the arguments.length property returns the number of arguments actually passed to a function, not the number of arguments expected by the function.

Option B) Function.caller - This option is incorrect because the Function.caller property returns the function that invoked the specified function, not the number of arguments expected by the function.

Option C) Function.display - This option is incorrect because the Function.display property does not exist. It is not a valid property of the Function object.

Option D) Function.arity - This option is correct because the Function.arity property returns the number of arguments expected by a function. It provides the arity, which is the number of formal parameters defined for the function.

The correct answer is D) Function.arity. This option is correct because it returns the number of arguments expected by a function.

What allows JavaScript to access methods and properties of a Java applet?

  1. The Java console

  2. LiveConnect

  3. LiveWire

  4. LiveWire Pro


Correct Option: B
  1. You can't. They're valid until they expire.

  2. Overwrite it with an expiry date in the past.

  3. escape() the value of the path attribute.

  4. nescape() the value of the path attribute.


Correct Option: B

JavaScript was originally developed by?

  1. Adolph

  2. Abel

  3. Aztec

  4. Brendan Eich


Correct Option: D

AI Explanation

To answer this question, you need to know the history of JavaScript.

Option A) Adolph - This option is incorrect. Adolph is not associated with the development of JavaScript.

Option B) Abel - This option is incorrect. Abel is not associated with the development of JavaScript.

Option C) Aztec - This option is incorrect. Aztec is not associated with the development of JavaScript.

Option D) Brendan Eich - This option is correct. JavaScript was originally developed by Brendan Eich while he was working at Netscape Communications Corporation. He created the language in 1995.

Therefore, the correct answer is D) Brendan Eich.

Where is the correct place to insert a JavaScript?

  1. Both the section and the section are correct

  2. The section

  3. The section

  4. The section


Correct Option: A

What does CSS stand for?

  1. Colorful Style Sheets

  2. Cascading Style Sheets

  3. Creative Style Sheets

  4. Computer Style Sheets


Correct Option: B

What is the correct HTML for referring to an external style sheet?

  1. mystyle.css


Correct Option: B
  1. body {color: black}

  2. body:color=black

  3. {body:color=black(body}

  4. {body;color:black}


Correct Option: A

Which property is used to change the background color?

  1. background-color:

  2. bgcolor:

  3. color:

  4. backgroundcolor:


Correct Option: A
  1. all.h1 {background-color:#FFFFFF}

  2. h1 {background-color:#FFFFFF}

  3. h1.all {background-color:#FFFFFF}

  4. h1.all {color:#FFFFFF}


Correct Option: B

How do you display hyperlinks without an underline?

  1. a {text-decoration:no underline}

  2. a {text-decoration:none}

  3. a {underline:none}

  4. a {decoration:no underline}


Correct Option: B

How do you make each word in a text start with a capital letter?

  1. You can't do that with CSS

  2. text-transform:uppercase

  3. text-transform:capitalize

  4. text-transform:CAPS


Correct Option: B

Which is not a Type of CSS?

  1. Inline

  2. Embedded

  3. Internal

  4. External


Correct Option: C

CSS is Developed by?

  1. Nortan Pacher

  2. Steve Nelson

  3. John Aden

  4. World Wide Web Consortium


Correct Option: D
  1. Home Tool Markup Language

  2. Hyperlinks and Text Marking Language

  3. Hyper Text Markup Language

  4. Hyperlinks and Text Markup Language


Correct Option: C
- Hide questions