JavaScript Quiz Day-1

JavaScript Quiz Day-1

Professional Development

12 Qs

quiz-placeholder

Similar activities

coding contest

coding contest

Professional Development

10 Qs

Algorithm Quiz

Algorithm Quiz

Professional Development

13 Qs

Javascript 05 Aug 22

Javascript 05 Aug 22

Professional Development

12 Qs

Javascript

Javascript

Professional Development

10 Qs

Javascript

Javascript

KG - Professional Development

13 Qs

JavaScript Pass by value, Pass by Reference, Scope Hoisting

JavaScript Pass by value, Pass by Reference, Scope Hoisting

Professional Development

15 Qs

JavaScript - Introduction

JavaScript - Introduction

Professional Development

13 Qs

Basics of JavaScript

Basics of JavaScript

11th Grade - Professional Development

15 Qs

JavaScript Quiz Day-1

JavaScript Quiz Day-1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

CHANDHRU J

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

What is JavaScript primarily used for in web development?

Server-side scripting

Database management

Front-end development

Operating system development

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following is the correct way to declare a variable in JavaScript?

var myVar = 10;

variable myVar = 10;

declare myVar = 10;

None of the above

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following is not a data type in JavaScript?

String

Number

Boolean

Character

4.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following is the correct way to declare a function in JavaScript?

function myFunction() {}

func myFunction() {}

declare function myFunction() {}

define function myFunction() {}

5.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

How do you create an object in JavaScript?

var obj = {};

var obj = [];

var obj = ();

var obj = <>;

6.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What will be the output of the following code? var a = "Hello"; var b = "World"; var c = a + " " + b; console.log(c);

HelloWorld

Hello World

Hello

World

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following correctly creates an array in JavaScript?

var arr = "apple", "banana", "cherry";

var arr = ["apple", "banana", "cherry"];

var arr = ("apple", "banana", "cherry");

None of the above

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?