Font size
WorksheetsM2 R5 Chapter 6
Total questions: 125
Worksheet time: 1hrs 3mins
JavaScript किस प्रकार की भाषा है?
Client-Side Scripting Language
Server-Side Language
Database Language
Operating System
JavaScript का उपयोग किसके लिए किया जाता है?
Static web pages
Dynamic web pages
Operating system development
Database management
AngularJS में कौन सी data binding तकनीक उपयोग की जाती है?
One-way binding
Two-way binding
No binding
Event binding
AngularJS में $scope क्या है?
A directive
A controller
An object that binds data to views
A filter
Client-side scripting भाषा का मुख्य उद्देश्य क्या है?
Server communication
Data storage
User interface enhancement
Database management
JavaScript में एक variable declare करने के लिए कौन सा keyword उपयोग किया जाता है?
var
let
const
All of the above
let और var में मुख्य अंतर क्या है?
let is block-scoped, var is function-scoped
var is block-scoped, let is function-scoped
No difference
Both are immutable
=== ऑपरेटर किसके लिए उपयोग किया जाता है?
Compares values only
Compares values and types
Assigns values
Performs arithmetic
निम्नलिखित में से कौन सा Arithmetic ऑपरेटर है?
&&
+
==
!
JavaScript में if स्टेटमेंट का उपयोग क्यों किया जाता है?
Loop execution
Conditional execution
Declaring variables
Function creation
switch स्टेटमेंट में किस चीज़ की तुलना की जाती है?
Boolean values
Multiple conditions
Single expression with multiple cases
Functions
alert() बॉक्स किसके लिए उपयोग किया जाता है?
To get user input
To display a message
To confirm an action
None of the above
कौन सा popup box उपयोगकर्ता से input प्राप्त करता है?
alert()
confirm()
prompt()
input()
onclick इवेंट का उपयोग कब होता है?
When a key is pressed
When a mouse click occurs
When a form is submitted
When the page loads
किस इवेंट का उपयोग पेज के लोड होने पर किया जाता है?
onload
onclick
onmouseover
onsubmit
JavaScript फॉर्म वैलिडेशन में क्या सत्यापित कर सकता है?
Empty fields
Email format
Minimum password length
All of the above
HTML फॉर्म में वैलिडेशन का उपयोग किस इवेंट के साथ किया जाता है?
onload
onsubmit
onclick
onchange
JavaScript में कोड को सही तरीके से रोकने के लिए कौन सा keyword उपयोग किया जाता है?
stop
break
end
exit
JavaScript में कौन सा लूप तब उपयोग किया जाता है जब iterations की संख्या पहले से पता हो?
while
do-while
for
foreach
do-while लूप का उपयोग कब किया जाता है?
To execute code once before checking the condition
When condition is false initially
For infinite loops
For asynchronous programming
JavaScript में फ़ंक्शन को declare करने के लिए कौन सा syntax सही है?
function myFunction()
def myFunction()
func myFunction()
declare myFunction()
JavaScript में an anonymous function क्या है?
A function with no name
A private function
A function that returns null
A function that doesn't execute
JavaScript में arrays को कैसे define किया जाता है?
Using {} brackets
Using () brackets
Using [] brackets
Using < > brackets
JavaScript में array का सबसे पहला index क्या होता है?
0
1
-1
undefined
JavaScript में object को define करने के लिए किस syntax का उपयोग किया जाता है?
let obj = {}
let obj = []
let obj = ()
let obj = <>
Object properties को access करने के लिए कौन सा operator उपयोग होता है?
. (dot operator)
: (colon operator)
->
#
JavaScript में errors को handle करने के लिए कौन सा block उपयोग किया जाता है?
try-catch
error-catch
if-else
catch-finally
finally block का उपयोग क्यों किया जाता है?
To execute code only when an error occurs
To execute code regardless of the error
To terminate the program
To restart the code
AngularJS में ng-repeat का उपयोग किसके लिए किया जाता है?
Looping through arrays
Data binding
Error handling
Routing
AngularJS में filters का उपयोग क्यों किया जाता है?
To format data displayed to the user
To handle errors
To create animations
To make HTTP requests
ES6 में template literals को किससे दर्शाया जाता है?
Single quotes (' ')
Double quotes (" ")
Backticks (` `)
Parentheses (( ))
ES6 में let और const का उपयोग क्यों किया जाता है?
For declaring global variables only
For declaring block-scoped variables
For declaring function-scoped variables only
For declaring constants only
Arrow functions का मुख्य लाभ क्या है?
Shorter syntax for writing functions
Automatic binding of this keyword
Both A and B
No benefit
JavaScript में DOM का पूरा नाम क्या है?
Document Object Model
Data Object Model
Document Order Method
Data Orientation Method
DOM में element को select करने के लिए कौन सी method उपयोग होती है?
getElementById()
querySelector()
getElementsByClassName()
All of the above
किस इवेंट का उपयोग तब किया जाता है जब input field में text बदला जाता है?
onchange
onblur
onkeyup
onmouseover
जब उपयोगकर्ता माउस को किसी element पर ले जाता है, तो कौन सा इवेंट ट्रिगर होता है?
onmouseover
onclick
onkeydown
onfocus
JavaScript में delay set करने के लिए कौन सी method उपयोग की जाती है?
setInterval()
setTimeout()
clearTimeout()
delay()
JavaScript में किसी function को repeatedly execute करने के लिए कौन सा method उपयोग होता है?
setInterval()
setTimeout()
clearInterval()
repeat()
कौन सा validation चेक करता है कि input field खाली है या नहीं?
if(input.value === "")
if(input.value === null)
if(input.isEmpty())
if(input.isNull())
JavaScript में regular expressions का उपयोग क्यों किया जाता है?
For string matching and pattern checking
For creating loops
For array manipulations
For DOM manipulation
JavaScript में callback function क्या है?
A function passed as an argument to another function
A function that calls itself
A function that runs automatically
A function that returns a value
Promises का उपयोग JavaScript में किसके लिए किया जाता है?
Handling asynchronous operations
Declaring variables
Creating functions
Error handling
AngularJS में ng-model का उपयोग क्यों किया जाता है?
To bind HTML elements to application data
To define a controller
To format data
To handle errors
AngularJS में ng-click directive का उपयोग कब किया जाता है?
To handle click events
To define loops
To create forms
To bind models
JavaScript में typeof ऑपरेटर का उपयोग किसके लिए किया जाता है?
To get the data type of a variable
To compare variables
To create new variables
To delete variables
What is the typeof operator used for in JavaScript?
To get the data type of a variable
To compare variables
To create new variables
To delete variables
null और undefined में क्या अंतर है?
null is an assigned value, undefined means a variable is not initialized
Both are the same
null is for strings, undefined is for numbers
undefined is an object, null is not
AngularJS application को initialize करने के लिए कौन सा directive उपयोग होता है?
ng-app
ng-init
ng-controller
ng-model
ES6 में template literals को किससे दर्शाया जाता है?
Single quotes (' ')
Double quotes ('" ')
Backticks (` `)
Parentheses (( ))
ES6 में let और const का उपयोग क्यों किया जाता है?
For declaring global variables only
For declaring block-scoped variables
For declaring function-scoped variables only
For declaring constants only
Arrow functions का मुख्य लाभ क्या है?
Shorter syntax for writing functions
Automatic binding of this keyword
Both A and B
No benefit
JavaScript में DOM का पूरा नाम क्या है?
Document Object Model
Data Object Model
Document Order Method
Data Orientation Method
DOM में element को select करने के लिए कौन सी method उपयोग होती है?
getElementById()
querySelector()
getElementsByClassName()
All of the above
किस इवेंट का उपयोग तब किया जाता है जब input field में text बदला जाता है?
onchange
onblur
onkeyup
onmouseover
जब उपयोगकर्ता माउस को किसी element पर ले जाता है, तो कौन सा इवेंट ट्रिगर होता है?
onmouseover
onclick
onkeydown
onfocus
JavaScript में delay set करने के लिए कौन सी method उपयोग की जाती है?
setInterval()
setTimeout()
clearTimeout()
delay()
JavaScript में किसी function को repeatedly execute करने के लिए कौन सा method उपयोग होता है?
setInterval()
setTimeout()
clearInterval()
repeat()
JavaScript में regular expressions का उपयोग क्यों किया जाता है?
For string matching and pattern checking
For creating loops
For array manipulations
For DOM manipulation
JavaScript में callback function क्या है?
A function passed as an argument to another function
A function that calls itself
A function that runs automatically
A function that returns a value
Promises का उपयोग JavaScript में किसके लिए किया जाता है?
Handling asynchronous operations
Declaring variables
Creating functions
Error handling
AngularJS में ng-model का उपयोग क्यों किया जाता है?
To bind HTML elements to application data
To define a controller
To format data
To handle errors
AngularJS में ng-click directive का उपयोग कब किया जाता है?
To handle click events
To define loops
To create forms
To bind models
JavaScript में typeof ऑपरेटर का उपयोग किसके लिए किया जाता है?
To get the data type of a variable
To compare variables
To create new variables
To delete variables
null और undefined में क्या अंतर है?
null is an assigned value, undefined means a variable is not initialized
Both are the same
null is for strings, undefined is for numbers
undefined is an object, null is not
AngularJS application को initialize करने के लिए कौन सा directive उपयोग होता है?
ng-app
ng-init
ng-controller
ng-model
JavaScript को किस साल में विकसित किया गया था?
1990
1995
2000
2005
JavaScript का आविष्कार किसने किया?
Tim Berners-Lee
Brendan Eich
Dennis Ritchie
Bjarne Stroustrup
AngularJS किस प्रकार की framework है?
Frontend Framework
Backend Framework
Full-stack Framework
Database Framework
AngularJS में controllers का उपयोग किसके लिए होता है?
To manage the application's data and logic
To style the HTML elements
To manage server-side requests
To validate forms
Client-side scripting किस पर execute होता है?
On the client's browser
On the server
On the database
On a middleware
Client-side scripting का मुख्य लाभ क्या है?
Faster interactivity for the user
Secure data processing
Large-scale data storage
Avoids browser dependencies
JavaScript में variable को declare किए बिना उपयोग करने पर उसका default value क्या होता है?
null
0
undefined
NaN
JavaScript में variable के लिए dynamic typing का मतलब क्या है?
Variables can store different types of data at runtime
Variables are strongly typed
Variable types cannot be changed
Variables must be declared before use
== और === में क्या अंतर है?
== checks only value, === checks value and type
== checks value and type, === checks only value
No difference
=== is used for strings only
कौन सा ऑपरेटर logical NOT के लिए उपयोग होता है?
&
||
!
^
JavaScript में else if का उपयोग कब किया जाता है?
For multiple conditions
For looping
For array handling
For declaring variables
ternary operator का syntax क्या है?
condition ? expression1 : expression2
condition ? expression2 : expression1
if(condition) {expression}
if-else(condition)
confirm() popup का उपयोग क्यों किया जाता है?
To get a yes/no response from the user
To take user input
To display an alert message
To close the browser
अगर उपयोगकर्ता confirm() popup में "Cancel" दबाता है, तो return value क्या होती है?
true
false
null
undefined
onkeydown इवेंट कब ट्रिगर होता है?
When a key is pressed down
When a key is released
When a key is held down
When the mouse is clicked
Form validation के लिए सबसे उपयोगी इवेंट कौन सा है?
onsubmit
onload
onclick
onblur
Email validation के लिए JavaScript में कौन सा pattern उपयोग होता है?
/^[a-zA-Z0-9]+@[a-z]+\.[a-z]+$/
/^[0-9]+$/
/[a-zA-Z]*$/
/^#.*$/
JavaScript में फॉर्म को reset करने के लिए कौन सी method उपयोग की जाती है?
reset()
clear()
empty()
formClear()
Asynchronous JavaScript के लिए कौन सा tool उपयोग होता है?
Promises
Callbacks
Async/Await
All of the above
JSON.stringify() का उपयोग किसके लिए होता है?
To convert an object to a JSON string
To convert JSON string to an object
To validate JSON
To parse JSON
AngularJS में ng-init directive का उपयोग कब होता है?
To initialize application data
To create controllers
To perform routing
To handle errors
AngularJS में $http service का उपयोग किसके लिए होता है?
To make HTTP requests
To handle errors
To create filters
To manage animations
What is the $http service used for in AngularJS?
To make HTTP requests
To handle errors
To create filters
To manage animations
JavaScript में default parameter values का उपयोग कब किया जाता है?
When a parameter is missing during function call
When the parameter is null
Always
Never
Higher-order functions किसे कहते हैं?
Functions that take other functions as arguments or return functions
Functions with more than one parameter
Functions that run only once
Functions used for form validation
JavaScript में block scope को कौन manage करता है?
let and const
var
Functions
Objects
JavaScript में global scope क्या है?
Variables accessible throughout the entire program
Variables accessible only inside a function
Variables accessible within a block
Variables declared with const
JavaScript में for...in loop का उपयोग किसके लिए होता है?
Iterating over object properties
Iterating over array elements
Infinite looping
Breaking out of a loop
JavaScript में for...of loop का उपयोग कब होता है?
To iterate over iterable objects like arrays and strings
To iterate over object keys
To handle asynchronous loops
To iterate through JSON objects
JavaScript में syntax errors को पकड़ने के लिए कौन सी statement उपयोग की जाती है?
try-catch
if-else
error-handler
throw
throw statement का उपयोग क्यों किया जाता है?
To manually raise an exception
To end the program
To execute a function
To debug code
ES6 में spread operator का उपयोग कब किया जाता है?
To expand arrays or objects
To compress data
For variable declarations
To handle errors
const का उपयोग किस प्रकार की variable के लिए होता है?
Immutable variables
Function-scoped variables
Reassignable variables
Block-scoped variables
JavaScript में array से last element को remove करने के लिए कौन सी method उपयोग होती है?
pop()
push()
shift()
unshift()
JavaScript में array में new element add करने के लिए कौन सी method उपयोग होती है?
push()
pop()
concat()
slice()
Object में properties को delete करने के लिए कौन सा keyword उपयोग होता है?
delete
remove
unset
clear
JavaScript में Object.keys() method का उपयोग किसके लिए होता है?
To get all keys of an object
To get all values of an object
To create a new object
To delete keys of an object
JavaScript में null की data type क्या होती है?
object
null
undefined
boolean
JSON का पूरा नाम क्या है?
JavaScript Object Notation
Java Standard Object Network
JavaScript Online Network
Java Standard Output Notation
Closure का उपयोग किसके लिए होता है?
To access outer function variables from an inner function
To handle errors
To terminate a function
To declare global variables
Closure का main feature क्या है?
Data encapsulation
Faster execution
Reduced code size
Better debugging
AngularJS में $watch का उपयोग क्यों किया जाता है?
To watch for changes in scope variables
To create filters
To handle animations
To debug applications
$digest cycle का उपयोग AngularJS में किसके लिए होता है?
To update the view whenever scope variables change
To make HTTP requests
To validate forms
To create new directives
JavaScript में isNaN() का उपयोग किसके लिए होता है?
To check if a value is not a number
To check if a number is negative
To check if a number is null
To check if a variable is undefined
JavaScript में strict mode को enable करने के लिए क्या लिखते हैं?
"use strict";
"enable strict";
"strict mode";
"use mode strict";
DOM में element को select करने के लिए कौन सी method उपयोग की जाती है?
getElementById()
getElementByName()
getElementByClass()
getElementByValue()
DOM में class को manipulate करने के लिए कौन सी property उपयोग होती है?
classList
innerHTML
style
nodeValue
JavaScript में किसी element का content बदलने के लिए कौन सी property उपयोग की जाती है?
innerHTML
value
textContent
Both A and C
JavaScript में DOM tree के सबसे top-level object का नाम क्या है?
window
document
body
head
JavaScript में current date और time पाने के लिए कौन सा object उपयोग होता है?
Date
Time
Calendar
Clock
JavaScript में current year पाने के लिए कौन सी method उपयोग होती है?
getFullYear()
getYear()
getDate()
getMonth()
JavaScript में string को uppercase में बदलने के लिए कौन सी method उपयोग होती है?
toUpperCase()
toLowerCase()
split()
replace()
JavaScript में string से white spaces को हटाने के लिए कौन सी method उपयोग होती है?
trim()
split()
slice()
splice()
Promise का resolve() method कब execute होता है?
When the promise is fulfilled
When the promise is rejected
When the promise is pending
When the promise is canceled
JavaScript में promises के लिए then() method का उपयोग क्यों किया जाता है?
To handle the resolved value of a promise
To handle errors in a promise
To pause the promise execution
To chain multiple functions
JavaScript में इवेंट हैंडलर को dynamically assign करने के लिए कौन सी method उपयोग होती है?
addEventListener()
setEvent()
attachHandler()
bindEvent()
HTML में inline event handler का उपयोग करने का syntax क्या है?
AngularJS में two-way data binding क्या दर्शाता है?
Synchronization between model and view
Data transfer between two controllers
Form validation
Template compilation
AngularJS में ng-model directive का उपयोग किसके लिए होता है?
To bind input data to the application scope
To define controllers
To create custom filters
To handle routing
