Web front-end written selection questions

Source: Internet
Author: User

1. to dynamically change the contents of the layer can be used in the method has (AB)

A) InnerHTML

b) InnerText

c) by setting the hide and display of the layer to achieve

d) by setting the Display property of the layer's style property

2. when you press keyboard A, The result ofprinting Event.keycode with the OnKeyDown event is (A )

A) 65

b) 13

c) 97

D) 37

3. in JavaScript , the following options are not part of the array method (B);

A) sort ()

b) Length ()

c) concat ()

d) Reverse ()

4. which of the following options can be used to retrieve the index number of the selected option ? B

A) disabled

b) SelectedIndex

c) option

D) Multiple

    1. want the picture to have the same function as the submit button, How do I write a form submission ? A

A) manually submit in the OnClick event of the picture

b) Add the OnSubmit event to the picture

c) manually submitted in the OnSubmit event of the picture

d) automatically submit in form

6. The code that makes the div layer and the text box in the same line is correct (D);

A

b

C

D

    1. The following options describe the correct ( select two items ) . (AD)

A) Options.add (new Option (? A?, ' a?)) you can dynamically add a drop-down list option

b) Option.add (new option (? A?, ' a?)) you can dynamically add a drop-down list option

c) New Option (? A?, ' a?) A ' indicates the value of the list option ? A ' for displaying on the page

d) New Option (? A?, ' a?) in ? A ' indicates the value of the list option ? A ' for displaying in the page

8. var emp = new Array (3); for (var i in EMP) the following answer can be interchanged with the For Loop code: (Select an item).

D

A for (var i =0; i<emp; i++)

B for (var i =0; I<array (3); i++)

C for (var i =0; I<emp.length (); i++)

D for (var i =0; i<emp.length; i++)

9. The (a) event of a drop- down list box is called when the cascading menu function is made.

A) OnChange

b) onfocus

C) Selected

D) OnClick

The following statement declaring an array, the wrong option is (C ).

A) Var arry= new Array ()

b) Var arry=new Array (3)

c) Var arry[]=new Array (3) (4)

d) Var arry=new Array (? 3?,? 4?)

One. which of the following properties can implement layer hiding ? (C )

A) display:fals

b) Display:hidden

c) Display:none

d) Display: ""

Which of the following options do not belong to the Document Object ? (D )

A) focus ()

b) getElementById ()

c) Getelementsbyname ()

d) BgColor ()

which of the following is press the keyboard event (AB)

A) OnKeyDown

b) onKeyPress

c) keycode

D) onMouseOver

The purpose of form validation for JavaScript is (B )

A) submit the user's correct information to the server

b) Check that the submitted data must conform to the actual

c) make the page beautiful and generous

d) reduce the pressure on the server side

common values for 15.display attribute values do not include (C)

a) inline

b) block

c) Hidden

D) None


The following remarks about the Pixeltop property and The top property are correct. (D)

A) are all properties of the Location object

b) The return value is a string when used

c) returns the value in pixels

D) None of the above is correct

The open method opens the window with the browser toolbar , the address bar , the menu bar, and the following options are correct __d__

A) Open ("x.html", "HI", "Toolbas=1,scrollbars=1,status=1");

b) Open ("HI", "Scrollbars=1,location=1,status=1");

c) Open ("x.html", "status=yes,menubar=1,location=1");

d) Open ("x.html", "HI", "toolbas=yes,menubar=1,location=1");

Next close The code for the layer named Mydiv is correct (C)

A) document.getElementById (mydiv). style.display= "None";

b) document.getElementById ("Mydiv"). Style.display=none;

c) document.getElementById ("Mydiv"). style.display= "None";

d) document.getElementById ("Mydiv"). style.display== "None";

Why use div+css?

Layout separation of form and content greatly reduce the page code, improve the speed of page browsing structure clear, conducive to SEO Shorten the revision time, layout more convenient design, multiple use

    1. What are the characteristics of Block elements ? which elements default to Block Element

always start on a new line; height, row height and top and bottom margin can be controlled; The width default is the 100% of its container, unless a width is set

is the block element has:div ul ol li DL DT DD H1 H2 H3 H4...P

What are the characteristics of the inline element ? which elements belong to the inline element ?

And the other elements are on one line;

Height, row height and top and bottom margins are immutable, and the width is the width of the text or picture, which cannot be changed.

is an inline element with:a b span img input Select strong (Accent tone)

In JavaScript, expression parseint ("x8x8") +pasefloat (? 8?) what is the result ? C

A) 8+8

b) 88

c) 16

d) "8" +?8

the method of the. String object does not include (C)

A) charAt ();

b) substring ()

c) Length

d) toUpperCase ()

about setTimeout ("Check"), it is correct to say (D)

A) The program is executed in a loop for ten times

b) Check function executes every ten seconds

c) to pass the function check as a parameter

D) The Check function executes every ten milliseconds

Which of the following words does not belong to the javascript keyword:(C)

A) with

b) Parent

C) Class

d) void

Web front-end written selection questions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.