Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

120+ JavaScript Mcq/Quiz Questions, Quizzes of Programming Languages

This is Quiz document containing MCQ'S topic wise.

Typology: Quizzes

2022/2023

Available from 09/12/2022

technicalurvashi
technicalurvashi 🇮🇳

4 documents

1 / 28

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Question
Inside which HTML element do we put the JavaScript
Where is the correct place to insert a JavaScript
What is the correct syntax for referring to an external script called "xxx.j
The external JavaScript file must contain the <script> tag
How can you add a comment in a JavaScript
What is the correct way to write a JavaScript array
JavaScript is the same as Java
How do you declare a JavaScript variable
Which operator is used to assign a value to a variable
What will the following code return: Boolean(10 > 9)
Is JavaScript case-sensitive?
which of the following is not a comparison operator
Javascript is a _____ language.
Which of the following purpose, JavaScript is designed for
JavaScript can be written
regex & type conversion
What does the subexpression /java(script)?/ result in ?
What will be the result when non greedy repetition is used on the pattern /a+?b/ ?
What is the most essential purpose of parantheses in regular expressions ?
The method that performs the search-and-replace operation to strings for pattern matching is
Introduction, Language Basics, Where to Include & Display Js code?
Variables and Operators, Arithmetic, Assignment, Comparisons,
Logical
Data Types in JavaScript: Strings, Numbers, Boolean, Objects, Arrays
What is the correct JavaScript syntax to change the content of the
HTML element below?
<p id="demo">This is a demonstration.</p>
JavaScript code is written inside file having extension
What will be the output of the following code snippet?
a = [1, 2, 3, 4, 5];
print(a.slice(2, 4));
What will be the output of the following code snippet?
var a = true + true + true * 3;
print(a)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Partial preview of the text

Download 120+ JavaScript Mcq/Quiz Questions and more Quizzes Programming Languages in PDF only on Docsity!

Question

Inside which HTML element do we put the JavaScript

Where is the correct place to insert a JavaScript

What is the correct syntax for referring to an external script called "xxx.j

The external JavaScript file must contain the