Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Question

Question

Scheduled Pinned Locked Moved JavaScript
helpquestionjavascripthtmlcss
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nth92
    wrote on last edited by
    #1

    i have a questions you can help me ??

    Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
    JavaScript statement that will be responsible for changing the DIV tag CSS class shown
    below to classB ?
    <div name=”section1” class=”classA”> …… </div>

    A. section1.style.className="classB"
    B. section1.class="classB"
    C. div.className="classB"
    D. section1.className="classB"

    Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

    Q11. For a webpage containing only one form shown below how can we obtain the value
    entered inside the textbox in JavaScript?

    <form name="sub">
    First Number: <input type = "text" name = "first" size = "5"/> </form>

    A. document.forms[1].first.value
    B. sub.first.value
    C. window.forms[0].first.value
    D. sub.text.first.value

    Q12. If we have the following radio buttons in form named Form1, which line of code
    below could be used to determine if the Female option is checked?

    Male <input type = "radio" name="gender" value="M" checked/>
    Female <input type = "radio" name="gender" value="F"/>

    A. Not checked since the Male option is already checked and cannot be changed.
    B. Form1.gender[1].click();
    C. Form1.gender.checked;
    D. Form1.gender[1].checked;

    Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
    button. Which one of the following JavaScript code lines could prevent the action
    of sending the form’s data to the server?

    A. window.event.returnValue = false;
    B. window.event.returnValue = true;
    C. confirm( "Are you sure you want to reset?" );
    D. window.event.formValue = false;

    Q19) The output of the following html document is:
    <html><head>&l

    L T J K V 6 Replies Last reply
    0
    • N nth92

      i have a questions you can help me ??

      Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
      JavaScript statement that will be responsible for changing the DIV tag CSS class shown
      below to classB ?
      <div name=”section1” class=”classA”> …… </div>

      A. section1.style.className="classB"
      B. section1.class="classB"
      C. div.className="classB"
      D. section1.className="classB"

      Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

      Q11. For a webpage containing only one form shown below how can we obtain the value
      entered inside the textbox in JavaScript?

      <form name="sub">
      First Number: <input type = "text" name = "first" size = "5"/> </form>

      A. document.forms[1].first.value
      B. sub.first.value
      C. window.forms[0].first.value
      D. sub.text.first.value

      Q12. If we have the following radio buttons in form named Form1, which line of code
      below could be used to determine if the Female option is checked?

      Male <input type = "radio" name="gender" value="M" checked/>
      Female <input type = "radio" name="gender" value="F"/>

      A. Not checked since the Male option is already checked and cannot be changed.
      B. Form1.gender[1].click();
      C. Form1.gender.checked;
      D. Form1.gender[1].checked;

      Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
      button. Which one of the following JavaScript code lines could prevent the action
      of sending the form’s data to the server?

      A. window.event.returnValue = false;
      B. window.event.returnValue = true;
      C. confirm( "Are you sure you want to reset?" );
      D. window.event.formValue = false;

      Q19) The output of the following html document is:
      <html><head>&l

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You could find many of these answers in your course notes or, the documentation at http://www.w3schools.com/[^].

      One of these days I'm going to think of a really clever signature.

      1 Reply Last reply
      0
      • N nth92

        i have a questions you can help me ??

        Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
        JavaScript statement that will be responsible for changing the DIV tag CSS class shown
        below to classB ?
        <div name=”section1” class=”classA”> …… </div>

        A. section1.style.className="classB"
        B. section1.class="classB"
        C. div.className="classB"
        D. section1.className="classB"

        Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

        Q11. For a webpage containing only one form shown below how can we obtain the value
        entered inside the textbox in JavaScript?

        <form name="sub">
        First Number: <input type = "text" name = "first" size = "5"/> </form>

        A. document.forms[1].first.value
        B. sub.first.value
        C. window.forms[0].first.value
        D. sub.text.first.value

        Q12. If we have the following radio buttons in form named Form1, which line of code
        below could be used to determine if the Female option is checked?

        Male <input type = "radio" name="gender" value="M" checked/>
        Female <input type = "radio" name="gender" value="F"/>

        A. Not checked since the Male option is already checked and cannot be changed.
        B. Form1.gender[1].click();
        C. Form1.gender.checked;
        D. Form1.gender[1].checked;

        Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
        button. Which one of the following JavaScript code lines could prevent the action
        of sending the form’s data to the server?

        A. window.event.returnValue = false;
        B. window.event.returnValue = true;
        C. confirm( "Are you sure you want to reset?" );
        D. window.event.formValue = false;

        Q19) The output of the following html document is:
        <html><head>&l

        T Offline
        T Offline
        Thomas Daniels
        wrote on last edited by
        #3

        Hi, Richard is right. Here're are other JavaScript tutorials: JavaScript For Beginners[^] http://www.echoecho.com/javascript.htm[^] http://www.tizag.com/javascriptT/[^] http://cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html[^] http://www.quackit.com/javascript/tutorial/[^] Have also a look at the "Client side scripting" articles on CodeProject: 'Client side scripting' articles[^]

        In some cases, my signature will be longer than my message...

        <em style="color:red"> <b>ProgramFOX</b></em>

        ProgramFOX

        1 Reply Last reply
        0
        • N nth92

          i have a questions you can help me ??

          Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
          JavaScript statement that will be responsible for changing the DIV tag CSS class shown
          below to classB ?
          <div name=”section1” class=”classA”> …… </div>

          A. section1.style.className="classB"
          B. section1.class="classB"
          C. div.className="classB"
          D. section1.className="classB"

          Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

          Q11. For a webpage containing only one form shown below how can we obtain the value
          entered inside the textbox in JavaScript?

          <form name="sub">
          First Number: <input type = "text" name = "first" size = "5"/> </form>

          A. document.forms[1].first.value
          B. sub.first.value
          C. window.forms[0].first.value
          D. sub.text.first.value

          Q12. If we have the following radio buttons in form named Form1, which line of code
          below could be used to determine if the Female option is checked?

          Male <input type = "radio" name="gender" value="M" checked/>
          Female <input type = "radio" name="gender" value="F"/>

          A. Not checked since the Male option is already checked and cannot be changed.
          B. Form1.gender[1].click();
          C. Form1.gender.checked;
          D. Form1.gender[1].checked;

          Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
          button. Which one of the following JavaScript code lines could prevent the action
          of sending the form’s data to the server?

          A. window.event.returnValue = false;
          B. window.event.returnValue = true;
          C. confirm( "Are you sure you want to reset?" );
          D. window.event.formValue = false;

          Q19) The output of the following html document is:
          <html><head>&l

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          Some of the correct answers are such bad practice, that I feel that by teaching you this rubbish that your teachers are inadvertnatly providing me job security. Thanks

          1 Reply Last reply
          0
          • N nth92

            i have a questions you can help me ??

            Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
            JavaScript statement that will be responsible for changing the DIV tag CSS class shown
            below to classB ?
            <div name=”section1” class=”classA”> …… </div>

            A. section1.style.className="classB"
            B. section1.class="classB"
            C. div.className="classB"
            D. section1.className="classB"

            Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

            Q11. For a webpage containing only one form shown below how can we obtain the value
            entered inside the textbox in JavaScript?

            <form name="sub">
            First Number: <input type = "text" name = "first" size = "5"/> </form>

            A. document.forms[1].first.value
            B. sub.first.value
            C. window.forms[0].first.value
            D. sub.text.first.value

            Q12. If we have the following radio buttons in form named Form1, which line of code
            below could be used to determine if the Female option is checked?

            Male <input type = "radio" name="gender" value="M" checked/>
            Female <input type = "radio" name="gender" value="F"/>

            A. Not checked since the Male option is already checked and cannot be changed.
            B. Form1.gender[1].click();
            C. Form1.gender.checked;
            D. Form1.gender[1].checked;

            Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
            button. Which one of the following JavaScript code lines could prevent the action
            of sending the form’s data to the server?

            A. window.event.returnValue = false;
            B. window.event.returnValue = true;
            C. confirm( "Are you sure you want to reset?" );
            D. window.event.formValue = false;

            Q19) The output of the following html document is:
            <html><head>&l

            K Offline
            K Offline
            Keith Barrow
            wrote on last edited by
            #5

            If I do your exam for you, do I get the qualification?

            Sort of a cross between Lawrence of Arabia and Dilbert.[^]
            -Or-
            A Dead ringer for Kate Winslett[^]

            1 Reply Last reply
            0
            • N nth92

              i have a questions you can help me ??

              Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
              JavaScript statement that will be responsible for changing the DIV tag CSS class shown
              below to classB ?
              <div name=”section1” class=”classA”> …… </div>

              A. section1.style.className="classB"
              B. section1.class="classB"
              C. div.className="classB"
              D. section1.className="classB"

              Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

              Q11. For a webpage containing only one form shown below how can we obtain the value
              entered inside the textbox in JavaScript?

              <form name="sub">
              First Number: <input type = "text" name = "first" size = "5"/> </form>

              A. document.forms[1].first.value
              B. sub.first.value
              C. window.forms[0].first.value
              D. sub.text.first.value

              Q12. If we have the following radio buttons in form named Form1, which line of code
              below could be used to determine if the Female option is checked?

              Male <input type = "radio" name="gender" value="M" checked/>
              Female <input type = "radio" name="gender" value="F"/>

              A. Not checked since the Male option is already checked and cannot be changed.
              B. Form1.gender[1].click();
              C. Form1.gender.checked;
              D. Form1.gender[1].checked;

              Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
              button. Which one of the following JavaScript code lines could prevent the action
              of sending the form’s data to the server?

              A. window.event.returnValue = false;
              B. window.event.returnValue = true;
              C. confirm( "Are you sure you want to reset?" );
              D. window.event.formValue = false;

              Q19) The output of the following html document is:
              <html><head>&l

              V Offline
              V Offline
              vinodkumarnie
              wrote on last edited by
              #6

              For Q1 - D Q7 - D Q8 - B Q11 - B

              Vinod Kumar B C

              1 Reply Last reply
              0
              • N nth92

                i have a questions you can help me ??

                Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
                JavaScript statement that will be responsible for changing the DIV tag CSS class shown
                below to classB ?
                <div name=”section1” class=”classA”> …… </div>

                A. section1.style.className="classB"
                B. section1.class="classB"
                C. div.className="classB"
                D. section1.className="classB"

                Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage? A. newImage = "bird.jpg"; B. newImage.open("bird.jpg"); C. newImage.src("bird.jpg"); D. newImage.src = "bird.jpg"; Q8.The following code will: var str="welcome in web"; document.writeln(str.link("www.web.com")); A. display on the browser www.web.com as a hyperlink. B. display on the browser welcome in web as a hyper link. C. not display anything on the browser. D. it is an error to write this javascript code.

                Q11. For a webpage containing only one form shown below how can we obtain the value
                entered inside the textbox in JavaScript?

                <form name="sub">
                First Number: <input type = "text" name = "first" size = "5"/> </form>

                A. document.forms[1].first.value
                B. sub.first.value
                C. window.forms[0].first.value
                D. sub.text.first.value

                Q12. If we have the following radio buttons in form named Form1, which line of code
                below could be used to determine if the Female option is checked?

                Male <input type = "radio" name="gender" value="M" checked/>
                Female <input type = "radio" name="gender" value="F"/>

                A. Not checked since the Male option is already checked and cannot be changed.
                B. Form1.gender[1].click();
                C. Form1.gender.checked;
                D. Form1.gender[1].checked;

                Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
                button. Which one of the following JavaScript code lines could prevent the action
                of sending the form’s data to the server?

                A. window.event.returnValue = false;
                B. window.event.returnValue = true;
                C. confirm( "Are you sure you want to reset?" );
                D. window.event.formValue = false;

                Q19) The output of the following html document is:
                <html><head>&l

                V Offline
                V Offline
                vinodkumarnie
                wrote on last edited by
                #7

                for Q12 - D Q13 - B Q19 - A Thank you....

                Vinod KUmar B C

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups