
JS SQL Reviewer
Authored by Joseph Almonte
Computers
10th Grade
Used 2+ 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
30 sec • 1 pt
Where is the appropriate location to insert JavaScript code in an HTML file?
Both the section and the section are correct
The section only
Outside the section
The section only
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can "Hello World" be displayed in an alert box using JavaScript?
msgBox("Hello World");
alert("Hello World");
alertBox("Hello World");
Box("Hello World");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper way to create a function in JavaScript?
function myFunction()
function = myFunction()
functions create()
myFunction() function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can comments be added in a JavaScript code?
//This is a comment
'This is a comment
\\This is a comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which JavaScript event is triggered when a user clicks on an HTML element?
onchange
onclick
onmouseover
ondbclick
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can the value of the "src" attribute of an image be changed using the HTML DOM and JavaScript?

document.getElementById("image").href = "pic_mountain.jpg";
document.getElementById("image").link = "pic_mountain.jpg";
document.getElementById("image").src = "pic_mountain.jpg";
document.getElementById("image").name = "pic_mountain.jpg";
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for selecting only distinct values from the "Country" column in the "Employees" table?
SELECT UNIQUE Country FROM Employees;
SELECT DIFFERENT Country FROM Employees;
SELECT DISTINCT Country FROM Employees;
SELECT UNIQUE VALUES Country FROM Employees;
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?