Which of the following statements about JavaScript DOM (Document Object Model) is correct?
IWP Digital Assignment 3

Quiz
•
Computers
•
University
•
Medium
Vijayaprabakaran k
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The DOM provides a hierarchical representation of the HTML document, allowing JavaScript to manipulate its structure, content, and style dynamically.
The DOM only supports manipulation of text content within HTML elements; it cannot alter the structure or style of the document.
JavaScript can directly modify the HTML file on the server-side using DOM without needing client-side interaction.
DOM manipulation is limited to static web pages and cannot be used to create dynamic web applications.
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following statements about AJAX (Asynchronous JavaScript and XML) is correct?
AJAX is a programming language used for server-side scripting in web development.
AJAX allows web pages to be refreshed or reloaded completely when new data is requested.
AJAX requests are always synchronous, meaning the browser waits for the response before continuing to execute other scripts.
AJAX enables asynchronous communication between a web browser and a server, allowing parts of a web page to be updated without a full page reload.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about PHP sessions is MOST ACCURATE?
Sessions are a client-side mechanism for storing user information using cookies.
Sessions are a server-side mechanism for storing user information across multiple page requests.
Sessions automatically expire after a set period of inactivity, requiring users to re-login.
Sessions require complex database interaction to store user data.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The given JavaScript code snippet aims to add a click event listener to a button element with the ID "myButton". The listener should display an alert message when the button is clicked. Analyze the code and choose the best option:
option 1
option 2
option 3
All the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about Internet Protocol (IP) is correct?
IP is responsible for ensuring secure communication between a web browser and a web server.
IP addresses uniquely identify devices on a network and facilitate the routing of data packets between them.
IP is primarily concerned with the presentation and formatting of web content for display in a browser.
IP is a protocol used exclusively for sending emails over the internet.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following file formats are commonly supported for embedding videos in HTML web pages? (Select all that apply)
MP3
MP4
WebM
SVG
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between inline, inline-block, and block elements in CSS?
Inline elements flow within the content and cannot have set widths or heights, while inline-block elements behave like inline elements but can have set widths and heights. Block elements, on the other hand, start on a new line and stretch to fill the entire width of their container by default.
Inline elements are displayed horizontally in the same line as other elements, inline-block elements start on a new line like block-level elements but allow other elements to sit alongside them, and block elements are displayed vertically, each on a new line.
Inline elements can only contain text or other inline elements, inline-block elements can contain block-level elements as well, and block elements cannot contain other elements.
Inline elements are used exclusively for text styling, inline-block elements are used for inline content that requires layout, and block elements are used for structural elements such as headings and paragraphs.
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
Web Programming Lab PCS-693

Quiz
•
University
10 questions
Lecture 02

Quiz
•
University
10 questions
Web Programming Quiz 1

Quiz
•
University
10 questions
CSS and HTML

Quiz
•
9th Grade - University
20 questions
HTML/CSS Quiz

Quiz
•
6th Grade - University
15 questions
Web Development

Quiz
•
12th Grade - University
20 questions
Web Designing Quiz-1

Quiz
•
University
20 questions
SOAP

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade