Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : javascript - JS ARRAYS
JS ARRAYS
00:00:00
English
Hindi
Question No# :
01
out of 7
<p>What will be the output of the following JavaScript code ?</p><pre><p id="demo"></p><br><script><br>var js = 5;<br>js*=10;<br>document.getElementByld("demo").innerHTML = js;<br></script></pre>
<p>निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><p id="demo"></p><br><script><br>var js = 5;<br>js*=10;<br>document.getElementByld("demo").innerHTML = js;<br></script></pre>
A.
10
10
B.
15
15
C.
5
5
D.
50
50
Question No# :
02
out of 7
How can you add a new element to the end of an array?
आप किसी सरणी के अंत में एक नया तत्व कैसे जोड़ सकते हैं?
A.
push()
push()
B.
pop()
pop()
C.
shift()
shift()
D.
unshift()
unshift()
Question No# :
03
out of 7
Which method is used to remove the last element from an array in JavaScript?
जावास्क्रिप्ट में किसी सरणी से अंतिम तत्व को हटाने के लिए किस विधि का उपयोग किया जाता है?
A.
shift()
shift()
B.
pop()
pop()
C.
remove()
remove()
D.
delete()
delete()
Question No# :
04
out of 7
<p>What is the output of the following JavaScript code?</p><pre><script><br>var a;<br>document.getElementByld("demo").innerHTML = a+1;<br></script></pre>
<p>निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><script><br>var a;<br>document.getElementByld("demo").innerHTML = a+1;<br></script></pre>
A.
0
0
B.
undefined
undefined
C.
1
1
D.
NaN
NaN
Question No# :
05
out of 7
What is the correct way to write a JavaScript array?
जावास्क्रिप्ट ऐरे लिखने का सही तरीका क्या है?
A.
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
B.
var colors = (1:"red", 2:"green", 3:"blue")
var colors = (1:"red", 2:"green", 3:"blue")
C.
var colors = "red", "green", "blue"
var colors = "red", "green", "blue"
D.
var colors = ["red", "green", "blue"]
var colors = ["red", "green", "blue"]
Question No# :
06
out of 7
which JavaScript function is used to access the element by its id
किस जावास्क्रिप्ट फ़ंक्शन का उपयोग एलिमेंट को उसकी आईडी द्वारा एक्सेस करने के लिए किया जाता है
A.
document.getelementbyid()
document.getelementbyid()
B.
document.getElementbyid()
document.getElementbyid()
C.
document.getElementByid()
document.getElementByid()
D.
document.getElementById()
document.getElementById()
Question No# :
07
out of 7
Which of the following statements define Arrays in JavaScript?
निम्नलिखित में से कौन सा कथन जावास्क्रिप्ट में ऐरे को परिभाषित करता है?
A.
it is an ordered list of values
t is an ordered list of values
B.
It is an ordered list of objects
It is an ordered list of objects
C.
It is an ordered list of string
It is an ordered list of string
D.
It is an ordered list of functions
It is an ordered list of functions
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz