JavaScript Basics Quiz

JavaScript Basics Quiz

University

30 Qs

quiz-placeholder

Similar activities

Web Mania - (Round 1)

Web Mania - (Round 1)

University

25 Qs

Node JS

Node JS

University

33 Qs

Unidad 1 Programacion Web 2

Unidad 1 Programacion Web 2

University

32 Qs

HTML Quiz : Batch1

HTML Quiz : Batch1

University

25 Qs

Introduction to Web Development

Introduction to Web Development

University

30 Qs

JavaScript

JavaScript

University

30 Qs

arrays y objetos - JS

arrays y objetos - JS

University

32 Qs

QUIS UTS Mobile Commerce

QUIS UTS Mobile Commerce

University

25 Qs

JavaScript Basics Quiz

JavaScript Basics Quiz

Assessment

Quiz

Computers

University

Easy

Created by

Art Magpantay

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JavaScript primarily used for in web development?

Creating databases

Programming the behavior of web pages

Designing page layout

Managing server-side code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a core web development language?

HTML

CSS

PHP

JavaScript

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to change the content of an HTML element?

document.innerText()

changeContent()

document.getElementById().innerHTML

element.textContent

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

JavaScript statements can end with which symbol?

, (comma)

: (colon)

; (semicolon)

# (hash)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To change an image source using JavaScript, which attribute is updated?

href

src

alt

link

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to hide an HTML element using JavaScript?

element.visibility = "hidden";

element.remove();

element.style.display = "none";

element.style.hide();

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JavaScript method is used to change the font size of an element?

changeFontSize()

style.setFontSize()

element.style.fontSize

updateFont()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?