Explain the concept structure and importance of DOM.
Marks: 5
Year: 2020 Final TU FOHSS
Practice from Scripting Language with detailed solutions and model answers from past Tribhuvan University exams.
Explain the concept structure and importance of DOM.
What is dialog box? Explain different dialog boxes with suitable example in JavaScript.
What is the use of jQuery? Write the sample program to show and hide the certain div with the use of jQuery.
Why Ajax is required in web development? Write a sample program to synchronize data between JavaScript and PHP.
Design following form in HTML and display the value in the result box after calculating basic arithmetic operation based on the use input with the use of JavaScript.
What is JavaScript? What are the potential platforms where JavaScript can be used?
Define JavaScript event. Illustrate how an event handler response particular event in web page.
What is an Immediately Invoked Function in JavaScript? Explain with suitable example.
What is jQuery? illustrate different types of selectors in jQuery with appropriate example?
What is the benefit of using AJAX? Discuss major methods that communicate with server-side scripting.
a) Write a program which includes a function sum(). This function sum() should be designed to add an arbitrary list of parameters. (For e.g ., if you call the function sum() as sum (1, 2) it should return the result 3 and if again you call the function sum() as sum(1,3,4) it should return the result 8).b) Write a program that displays the continuous time in the web page. The time should be in the format of HH:MM:SS.
Explain the Features of Javascript?
What is need for client side scripting? Write a JavaScript which accept user's first and last name and print them in reverse order with space between them.
Write JS program to highlight all of the words over eight characters long in the paragraph text (with a red background).
Write a HTML code to design a form with three radio button green, red, blue and black. Write a JavaScript code that will change the background color of the page when user clicks on particular button.
What is syntax to create AJAX object? Design and develop dynamic web application using HTML, AJAX and PHP.
What are different way to include JavaScript in HTML document? Create a HTML page containing a division with image and its description in paragraph. Write a JavaScript function to change the value of description in the paragraph during onmouseover and onmouseout on the image.
How jQuery is differing from JavaScript? Discuss different types of jQuery selectors with example.
What is JavaScript? Explain different types of JavaScript with proper example.
What is jQuery? Explain XMLHttpRequest object with it's properties and methods with relevant example.