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()
15 questions
Inkscape Interface
Quiz
•
3rd - 4th Grade
11 questions
Створення анімації
Quiz
•
1st - 12th Grade
14 questions
p5.js Week1 PREtest
Quiz
•
7th - 12th Grade
10 questions
JavaScript quiz for beginners
Quiz
•
7th Grade
12 questions
String (python)
Quiz
•
3rd Grade
10 questions
Check-up Exercise: Wick Editor Interface
Quiz
•
7th Grade
20 questions
KS3 Adobe Illustrator
Quiz
•
KG - 12th Grade
20 questions
SDA Review Questions 1 - 20
Quiz
•
7th 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