
Frontend Quiz-6 Summer internship
Quiz
•
Other
•
University
•
Easy

Gnaneshwar Reddy
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a JavaScript object?
A) var obj = {};
B) var obj = ();
C) var obj = [];
D) var obj = {};
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add a property to an existing JavaScript object?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to select an element by its ID in the DOM?
A) document.querySelector("#id");
B) document.getElementById("id");
C)
document.getElementsByClassName("id");
D) document.getElementByTagName("id");
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for an if statement in JavaScript?
A) if (condition) {}
B) if condition {}
C) if [condition] {}
D) if {condition} {}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "switch" statement do in JavaScript?
A) Iterates over a collection
B) Switches the value of a variable
C) Evaluates an expression and matches the value to a case clause
D) Changes the value of a variable based on its type
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to create a new HTML element in the DOM?
A) document.createElement("tagName");
B) document.newElement("tagName");
C) document.buildElement("tagName");
D) document.addElement("tagName");
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if an object has a specific property?
A) object.hasProperty("property");
B) object.contains("property");
C) object.hasOwnProperty("property");
D) object.include("property");
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Production vidéo mobile
Quiz
•
University
10 questions
SISTEMATICA VEGETAL 1
Quiz
•
University
10 questions
OneDrive
Quiz
•
7th Grade - University
15 questions
QUIZ BAB 2 CC-43
Quiz
•
University
10 questions
INS 3533 : Chapter 4 - Basic Principles of Insurance
Quiz
•
University
12 questions
Svenska Prov/Swedish Quiz
Quiz
•
KG - Professional Dev...
10 questions
CCHU9001 Week3 Quiz
Quiz
•
University
15 questions
Quiz on Word Processing
Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Other
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University