Problem Statement: HTML Structure
Which of the following is the correct structure for a basic HTML5 document?
Super 15 Batch 3 quiz 2
Quiz
•
Other
•
University
•
Medium
Gnaneshwar Reddy
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct structure for a basic HTML5 document?
A)
html
<html>
<head></head>
<body></body>
</html>
B)
html
<!DOCTYPE html>
<html>
<body></body>
</html>
C)
html
<!DOCTYPE html>
<html>
<head></head>
<body></body>
</html>
D)
html
<html>
<head>
<meta charset="utf-8">
</head>
</html>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which CSS selector is used to target elements with the class "example"?
A) .example
B) #example
C) example
D) *example
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following JavaScript code output?
js
let arr = [1, 2, 3];
arr.push(4);
console.log(arr.length);
A) 3
B) 4
C) 5
D) undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this JavaScript code?
js
console.log(a);
var a = 10;
A) undefined
B) 10
C) null
D) ReferenceError
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which CSS property is used to align flex items along the cross-axis?
A) justify-content
B) align-content
C) align-items
D) align-self
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code?
js
function sayHello() {
return 'Hello';
}
console.log(typeof sayHello());
A) string
B) function
C) object
D) undefined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to remove an element from the DOM?
A) removeElement()
B) deleteElement()
C) removeChild()
D) remove()
15 questions
WEB TECHNOLOGY-INTERNET BASICS AND HTML
Quiz
•
University
15 questions
Day - 3 Workshop quiz
Quiz
•
University
10 questions
Sharing Session #2 - Review
Quiz
•
University
10 questions
Introduction to CSS
Quiz
•
University
14 questions
Week 3 Homework Review
Quiz
•
University
10 questions
HTML Basics
Quiz
•
University
15 questions
3450 Web Design
Quiz
•
University
10 questions
Test HTML5
Quiz
•
University
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