Html, Css, Js

Html, Css, Js

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Year 8 ICT Assessment

Year 8 ICT Assessment

8th Grade

15 Qs

Ciw Introduction to Cascade Style Sheets Technology

Ciw Introduction to Cascade Style Sheets Technology

8th - 12th Grade

11 Qs

Individuals and Variables of Data

Individuals and Variables of Data

6th - 12th Grade

10 Qs

JavaScript quiz for beginners

JavaScript quiz for beginners

7th Grade

10 Qs

JS general concepts - quiz 7th

JS general concepts - quiz 7th

7th Grade

11 Qs

Python Basics

Python Basics

6th - 7th Grade

15 Qs

Functions and JavaScript

Functions and JavaScript

8th Grade

8 Qs

JavaScript Function

JavaScript Function

8th Grade

8 Qs

Html, Css, Js

Html, Css, Js

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

DS Team

Used 10+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Media Image
  1. What will be the output of the following code snippet?

10

20

undefined

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
  1. What is the output of the following code?

22

21

23

NAN

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. What is the purpose of the querySelectorAll method in JavaScript?

It selects the first element that matches a specified CSS selector.

It selects all elements that match a specified CSS selector.

It selects the parent element of a specified element.

It selects the next sibling element of a specified element.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which symbol is used for single-line comments in JavaScript?

//

/* */

#

--

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which of the following is not a JavaScript data type?

String

Boolean

Float

Number

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. How do you define a function in JavaScript?

def function_name():

function function_name():

func function_name():

function function_name() { }

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the purpose of the return statement in a function?

It terminates the execution of the function.

It specifies the value to be passed back as the result of the function

It defines the input parameters for the function.

It assigns a value to a variable inside the function.

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?