JavaScript, HTML, and CSS Quiz

JavaScript, HTML, and CSS Quiz

University

50 Qs

quiz-placeholder

Similar activities

quiziz go!!

quiziz go!!

University

47 Qs

CLUB CLOUD SELECTION

CLUB CLOUD SELECTION

University

50 Qs

акт сессия

акт сессия

University

49 Qs

401-450

401-450

University

50 Qs

PAS ADMINISTRASI SISTEM JARINGAN KELAS 11 SMSTR GENAP

PAS ADMINISTRASI SISTEM JARINGAN KELAS 11 SMSTR GENAP

11th Grade - University

45 Qs

Laravel va PHP Savollari

Laravel va PHP Savollari

University

54 Qs

Модельдеу және логистика

Модельдеу және логистика

University

50 Qs

Quiz Bahasa Indonesia

Quiz Bahasa Indonesia

1st Grade - University

51 Qs

JavaScript, HTML, and CSS Quiz

JavaScript, HTML, and CSS Quiz

Assessment

Quiz

Other

University

Medium

Created by

vaibhavi patel

Used 1+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the alert() function do in JavaScript?

Takes user input

Displays a message box

Prints to the console

Reloads the page

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to take text input from the user?

alert()

confirm()

prompt()

log()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of confirm() in JavaScript?

String

Number

Boolean

Object

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct example of an arrow function?

function() => {}

() => {}

function => () {}

=> function()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will typeof "5" return in JavaScript?

number

string

boolean

undefined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to compare both value and type in JavaScript?

=

==

===

!=

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the Document Object Model (DOM)?

Styling HTML

Designing images

Representing and interacting with HTML elements

Downloading pages

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?