Javascript Basics

Javascript Basics

Professional Development

10 Qs

quiz-placeholder

Similar activities

Quiz 1 HTML

Quiz 1 HTML

7th Grade - Professional Development

10 Qs

lesson1 quiz

lesson1 quiz

6th Grade - Professional Development

7 Qs

PBI Recap

PBI Recap

Professional Development

10 Qs

Python Introduction

Python Introduction

6th Grade - Professional Development

7 Qs

Co wiesz o Pythonie

Co wiesz o Pythonie

Professional Development

8 Qs

HTML

HTML

6th Grade - Professional Development

10 Qs

Итоговое тестирование

Итоговое тестирование

Professional Development

11 Qs

C  Datatypes/Operators 2 MCQs

C Datatypes/Operators 2 MCQs

Professional Development

10 Qs

Javascript Basics

Javascript Basics

Assessment

Quiz

Education

Professional Development

Medium

Created by

tiya reba

Used 32+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid data type in JavaScript?

let

var

float

const

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to write a comment in JavaScript?

<!-- This is a comment -->

// This is a comment

/* This is a comment */

This is a comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are creating a web application for a dog walking business. In the code, you want to check if a dog is considered a puppy (less than 1 year old) to determine the walk price. Which if statement would work for this?

if (dogAge > 1) { // set puppy price }

if (dogAge < 1) { // set puppy price }

if (dogAge <= 365) { // set puppy price }

if (dogAge < 1) { // set puppy price }}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the NaN value represent in JavaScript?

Not a Number

Null

No Arguments

Negative Nymber

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you access the length of an array in JavaScript?

array.length()

length(array)

array.length

lengthOf(array)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the return statement do in a JavaScript function?

It terminates the function execution.

It returns a value from the function.

It defines a new function.

It creates a loop.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in JavaScript

function = climbUp();

fun = "climbUp";

function climbUp();

fun = (climbUp());

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?