Search Header Logo

JavaScript Quiz Day-1

Authored by CHANDHRU J

Computers

Professional Development

Used 1+ times

JavaScript Quiz Day-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?