|
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><title></title><script type = "text/javascript">
|
|
|
|
|
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.
|
|
|
|
|
|
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
|
|
|
|
|
If I do your exam for you, do I get the qualification?
|
|
|
|