
Snake Game
Authored by NotchUp .co
Computers
3rd - 8th Grade
Used 73+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?