Basic JavaScript Concepts

Basic JavaScript Concepts

University

•

24 Qs

quiz-placeholder

Similar activities

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

•

20 Qs

quizz tkinter

quizz tkinter

11th Grade - University

•

20 Qs

Design Thinking Overview

Design Thinking Overview

University

•

20 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

•

20 Qs

Quiz sobre AdministraciĂłn

Quiz sobre AdministraciĂłn

12th Grade - University

•

20 Qs

Computación 1ro y 2do básico

Computación 1ro y 2do básico

1st Grade - University

•

20 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

•

20 Qs

Basic JavaScript Concepts

Basic JavaScript Concepts

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Hard

Created by

Samten Wangmo

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an if statement in JavaScript?

a) To execute code repeatedly

b) To check if a condition is true or false

c) To declare variables

d) To stop a loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a template literal in JavaScript?

a) 'Hello'

b) "Hello"

c) `Hello`

d) {{Hello}}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a loop in JavaScript?

a) To declare a variable

b) To execute a block of code repeatedly

c) To define a function

d) To stop execution

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output?

a) 5

b) 5 6

c) 0

d) Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a feature of template literals?

a) Multi-line strings

b) Variable interpolation

c) Embedding expressions

d) Implicit type conversion

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a while loop and a do...while loop?

a) while loop executes the block at least once

b) do...while checks the condition before executing the block

c) do...while checks the condition after executing the block

d) There is no difference

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to combine multiple conditions in an if statement?

a) &&

b) ||

c) &

d) Both a and b

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?

Discover more resources for Computers