Choose the correct JavaScript syntax to change the content of the following HTML code.
<p id="geek">GeeksforGeeks</p>
Snake Game
Quiz
•
Computers
•
3rd - 8th Grade
•
Hard
NotchUp .co
Used 73+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose the correct JavaScript syntax to change the content of the following HTML code.
<p id="geek">GeeksforGeeks</p>
document.getElementById(“geek”).innerHTML=”I am a Geek”;
document.getElement(“geek”).innerHTML=”I am a Geek”;
None of the above
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct syntax to display “GeeksforGeeks” in an alert box using JavaScript?
alert(“GeeksforGeeks”);;
alert(“GeeksforGeeks”);
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The latest versions of Firefox, Safari, Chrome and Opera all do not support HTML5 Canvas.
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The fillRect() method of the HTML canvas is used to create a filled rectangle on the _____.
msg(“Hello world”)
Target=”new”
web page
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How to Write JS Comments?
// this is a comment //
<-- this is a comment -->
<!--this is a comment -->.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The stroke() method actually draws the path you have defined with all those moveTo() and lineTo() methods..
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is used to draw the arc on canvas?
fun function
<th>
Stroke()
10 questions
Python Programming with Tracy the Turtle
Quiz
•
6th - 8th Grade
15 questions
HTML Tags
Quiz
•
7th - 8th Grade
15 questions
Gmetrix HTML/CSS Session 3 Test
Quiz
•
7th - 12th Grade
10 questions
Makers Empire
Quiz
•
5th - 8th Grade
10 questions
HTML5 TAGS
Quiz
•
7th - 10th Grade
20 questions
INTRODUCTION TO HTML5
Quiz
•
7th Grade
16 questions
Photoshop tools
Quiz
•
6th Grade - Professio...
15 questions
Computer Science Syllabus Quiz
Quiz
•
8th Grade
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
15 questions
Character Analysis
Quiz
•
4th Grade
20 questions
Reading Comprehension
Quiz
•
5th 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
20 questions
Final Exam Vocabulary
Quiz
•
6th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University