
JavaScript - Day1
Authored by Chitra Muthu
Information Technology (IT)
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What is JavaScript mainly used for?
Backend development
Styling web pages
Adding interactivity to web pages
Creating databases
2.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
JavaScript is a ___________ programming language.
Compiled
Interpreted
Machine-level
Assembly
3.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
Which of the following is the correct syntax for adding JavaScript in an HTML file?
<js>script.js</js>
<script src="script.js"></script>
<javascript>script.js</javascript>
<script link="script.js"></script>
4.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
Which tag is used to write JavaScript code in an HTML document?
<java>
<js>
<script>
<code>
5.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
Where can JavaScript code be placed in an HTML document?
Inside the <head> section
Inside the <body> section
Inside an external file
All of the above
6.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
JavaScript is primarily used for:
Server-side scripting
Client-side scripting
Database management
Operating system development
7.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What is the correct file extension for JavaScript files?
.java
.js
.script
.jv
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?