Frontend Quiz-6 Summer internship

Frontend Quiz-6 Summer internship

University

10 Qs

quiz-placeholder

Similar activities

Trademark

Trademark

11th Grade - University

15 Qs

HOW TO GIVE DIRECTIONS

HOW TO GIVE DIRECTIONS

10th Grade - Professional Development

12 Qs

PSI_KELAS 5B_PERTEMUAN 2

PSI_KELAS 5B_PERTEMUAN 2

University

10 Qs

Medical Transcription

Medical Transcription

University

10 Qs

Real estate agency practice

Real estate agency practice

University

12 Qs

OKUMA EĞİTİMİ

OKUMA EĞİTİMİ

University

10 Qs

IR 4.0 Quiz

IR 4.0 Quiz

University

13 Qs

Tax Goes to School

Tax Goes to School

University

15 Qs

Frontend Quiz-6 Summer internship

Frontend Quiz-6 Summer internship

Assessment

Quiz

Other

University

Easy

Created by

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?

A) obj.property = value;

B) obj->property = value;

C) obj.property(value);

D) obj[property] = value;

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?