wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

M2 R5 Chapter 6

Total questions: 125

Worksheet time: 1hrs 3mins

Name
Class
Date
1.

JavaScript किस प्रकार की भाषा है?

a)

Client-Side Scripting Language

b)

Server-Side Language

c)

Database Language

d)

Operating System

2.

JavaScript का उपयोग किसके लिए किया जाता है?

a)

Static web pages

b)

Dynamic web pages

c)

Operating system development

d)

Database management

3.

AngularJS में कौन सी data binding तकनीक उपयोग की जाती है?

a)

One-way binding

b)

Two-way binding

c)

No binding

d)

Event binding

4.

AngularJS में $scope क्या है?

a)

A directive

b)

A controller

c)

An object that binds data to views

d)

A filter

5.

Client-side scripting भाषा का मुख्य उद्देश्य क्या है?

a)

Server communication

b)

Data storage

c)

User interface enhancement

d)

Database management

6.

JavaScript में एक variable declare करने के लिए कौन सा keyword उपयोग किया जाता है?

a)

var

b)

let

c)

const

d)

All of the above

7.

let और var में मुख्य अंतर क्या है?

a)

let is block-scoped, var is function-scoped

b)

var is block-scoped, let is function-scoped

c)

No difference

d)

Both are immutable

8.

=== ऑपरेटर किसके लिए उपयोग किया जाता है?

a)

Compares values only

b)

Compares values and types

c)

Assigns values

d)

Performs arithmetic

9.

निम्नलिखित में से कौन सा Arithmetic ऑपरेटर है?

a)

&&

b)

+

c)

==

d)

!

10.

JavaScript में if स्टेटमेंट का उपयोग क्यों किया जाता है?

a)

Loop execution

b)

Conditional execution

c)

Declaring variables

d)

Function creation

11.

switch स्टेटमेंट में किस चीज़ की तुलना की जाती है?

a)

Boolean values

b)

Multiple conditions

c)

Single expression with multiple cases

d)

Functions

12.

alert() बॉक्स किसके लिए उपयोग किया जाता है?

a)

To get user input

b)

To display a message

c)

To confirm an action

d)

None of the above

13.

कौन सा popup box उपयोगकर्ता से input प्राप्त करता है?

a)

alert()

b)

confirm()

c)

prompt()

d)

input()

14.

onclick इवेंट का उपयोग कब होता है?

a)

When a key is pressed

b)

When a mouse click occurs

c)

When a form is submitted

d)

When the page loads

15.

किस इवेंट का उपयोग पेज के लोड होने पर किया जाता है?

a)

onload

b)

onclick

c)

onmouseover

d)

onsubmit

16.

JavaScript फॉर्म वैलिडेशन में क्या सत्यापित कर सकता है?

a)

Empty fields

b)

Email format

c)

Minimum password length

d)

All of the above

17.

HTML फॉर्म में वैलिडेशन का उपयोग किस इवेंट के साथ किया जाता है?

a)

onload

b)

onsubmit

c)

onclick

d)

onchange

18.

JavaScript में कोड को सही तरीके से रोकने के लिए कौन सा keyword उपयोग किया जाता है?

a)

stop

b)

break

c)

end

d)

exit

19.

JavaScript में कौन सा लूप तब उपयोग किया जाता है जब iterations की संख्या पहले से पता हो?

a)

while

b)

do-while

c)

for

d)

foreach

20.

do-while लूप का उपयोग कब किया जाता है?

a)

To execute code once before checking the condition

b)

When condition is false initially

c)

For infinite loops

d)

For asynchronous programming

21.

JavaScript में फ़ंक्शन को declare करने के लिए कौन सा syntax सही है?

a)

function myFunction()

b)

def myFunction()

c)

func myFunction()

d)

declare myFunction()

22.

JavaScript में an anonymous function क्या है?

a)

A function with no name

b)

A private function

c)

A function that returns null

d)

A function that doesn't execute

23.

JavaScript में arrays को कैसे define किया जाता है?

a)

Using {} brackets

b)

Using () brackets

c)

Using [] brackets

d)

Using < > brackets

24.

JavaScript में array का सबसे पहला index क्या होता है?

a)

0

b)

1

c)

-1

d)

undefined

25.

JavaScript में object को define करने के लिए किस syntax का उपयोग किया जाता है?

a)

let obj = {}

b)

let obj = []

c)

let obj = ()

d)

let obj = <>

26.

Object properties को access करने के लिए कौन सा operator उपयोग होता है?

a)

. (dot operator)

b)

: (colon operator)

c)

->

d)

#

27.

JavaScript में errors को handle करने के लिए कौन सा block उपयोग किया जाता है?

a)

try-catch

b)

error-catch

c)

if-else

d)

catch-finally

28.

finally block का उपयोग क्यों किया जाता है?

a)

To execute code only when an error occurs

b)

To execute code regardless of the error

c)

To terminate the program

d)

To restart the code

29.

AngularJS में ng-repeat का उपयोग किसके लिए किया जाता है?

a)

Looping through arrays

b)

Data binding

c)

Error handling

d)

Routing

30.

AngularJS में filters का उपयोग क्यों किया जाता है?

a)

To format data displayed to the user

b)

To handle errors

c)

To create animations

d)

To make HTTP requests

31.

ES6 में template literals को किससे दर्शाया जाता है?

a)

Single quotes (' ')

b)

Double quotes (" ")

c)

Backticks (` `)

d)

Parentheses (( ))

32.

ES6 में let और const का उपयोग क्यों किया जाता है?

a)

For declaring global variables only

b)

For declaring block-scoped variables

c)

For declaring function-scoped variables only

d)

For declaring constants only

33.

Arrow functions का मुख्य लाभ क्या है?

a)

Shorter syntax for writing functions

b)

Automatic binding of this keyword

c)

Both A and B

d)

No benefit

34.

JavaScript में DOM का पूरा नाम क्या है?

a)

Document Object Model

b)

Data Object Model

c)

Document Order Method

d)

Data Orientation Method

35.

DOM में element को select करने के लिए कौन सी method उपयोग होती है?

a)

getElementById()

b)

querySelector()

c)

getElementsByClassName()

d)

All of the above

36.

किस इवेंट का उपयोग तब किया जाता है जब input field में text बदला जाता है?

a)

onchange

b)

onblur

c)

onkeyup

d)

onmouseover

37.

जब उपयोगकर्ता माउस को किसी element पर ले जाता है, तो कौन सा इवेंट ट्रिगर होता है?

a)

onmouseover

b)

onclick

c)

onkeydown

d)

onfocus

38.

JavaScript में delay set करने के लिए कौन सी method उपयोग की जाती है?

a)

setInterval()

b)

setTimeout()

c)

clearTimeout()

d)

delay()

39.

JavaScript में किसी function को repeatedly execute करने के लिए कौन सा method उपयोग होता है?

a)

setInterval()

b)

setTimeout()

c)

clearInterval()

d)

repeat()

40.

कौन सा validation चेक करता है कि input field खाली है या नहीं?

a)

if(input.value === "")

b)

if(input.value === null)

c)

if(input.isEmpty())

d)

if(input.isNull())

41.

JavaScript में regular expressions का उपयोग क्यों किया जाता है?

a)

For string matching and pattern checking

b)

For creating loops

c)

For array manipulations

d)

For DOM manipulation

42.

JavaScript में callback function क्या है?

a)

A function passed as an argument to another function

b)

A function that calls itself

c)

A function that runs automatically

d)

A function that returns a value

43.

Promises का उपयोग JavaScript में किसके लिए किया जाता है?

a)

Handling asynchronous operations

b)

Declaring variables

c)

Creating functions

d)

Error handling

44.

AngularJS में ng-model का उपयोग क्यों किया जाता है?

a)

To bind HTML elements to application data

b)

To define a controller

c)

To format data

d)

To handle errors

45.

AngularJS में ng-click directive का उपयोग कब किया जाता है?

a)

To handle click events

b)

To define loops

c)

To create forms

d)

To bind models

46.

JavaScript में typeof ऑपरेटर का उपयोग किसके लिए किया जाता है?

a)

To get the data type of a variable

b)

To compare variables

c)

To create new variables

d)

To delete variables

47.

What is the typeof operator used for in JavaScript?

a)

To get the data type of a variable

b)

To compare variables

c)

To create new variables

d)

To delete variables

48.

null और undefined में क्या अंतर है?

a)

null is an assigned value, undefined means a variable is not initialized

b)

Both are the same

c)

null is for strings, undefined is for numbers

d)

undefined is an object, null is not

49.

AngularJS application को initialize करने के लिए कौन सा directive उपयोग होता है?

a)

ng-app

b)

ng-init

c)

ng-controller

d)

ng-model

50.

ES6 में template literals को किससे दर्शाया जाता है?

a)

Single quotes (' ')

b)

Double quotes ('" ')

c)

Backticks (` `)

d)

Parentheses (( ))

51.

ES6 में let और const का उपयोग क्यों किया जाता है?

a)

For declaring global variables only

b)

For declaring block-scoped variables

c)

For declaring function-scoped variables only

d)

For declaring constants only

52.

Arrow functions का मुख्य लाभ क्या है?

a)

Shorter syntax for writing functions

b)

Automatic binding of this keyword

c)

Both A and B

d)

No benefit

53.

JavaScript में DOM का पूरा नाम क्या है?

a)

Document Object Model

b)

Data Object Model

c)

Document Order Method

d)

Data Orientation Method

54.

DOM में element को select करने के लिए कौन सी method उपयोग होती है?

a)

getElementById()

b)

querySelector()

c)

getElementsByClassName()

d)

All of the above

55.

किस इवेंट का उपयोग तब किया जाता है जब input field में text बदला जाता है?

a)

onchange

b)

onblur

c)

onkeyup

d)

onmouseover

56.

जब उपयोगकर्ता माउस को किसी element पर ले जाता है, तो कौन सा इवेंट ट्रिगर होता है?

a)

onmouseover

b)

onclick

c)

onkeydown

d)

onfocus

57.

JavaScript में delay set करने के लिए कौन सी method उपयोग की जाती है?

a)

setInterval()

b)

setTimeout()

c)

clearTimeout()

d)

delay()

58.

JavaScript में किसी function को repeatedly execute करने के लिए कौन सा method उपयोग होता है?

a)

setInterval()

b)

setTimeout()

c)

clearInterval()

d)

repeat()

59.

JavaScript में regular expressions का उपयोग क्यों किया जाता है?

a)

For string matching and pattern checking

b)

For creating loops

c)

For array manipulations

d)

For DOM manipulation

60.

JavaScript में callback function क्या है?

a)

A function passed as an argument to another function

b)

A function that calls itself

c)

A function that runs automatically

d)

A function that returns a value

61.

Promises का उपयोग JavaScript में किसके लिए किया जाता है?

a)

Handling asynchronous operations

b)

Declaring variables

c)

Creating functions

d)

Error handling

62.

AngularJS में ng-model का उपयोग क्यों किया जाता है?

a)

To bind HTML elements to application data

b)

To define a controller

c)

To format data

d)

To handle errors

63.

AngularJS में ng-click directive का उपयोग कब किया जाता है?

a)

To handle click events

b)

To define loops

c)

To create forms

d)

To bind models

64.

JavaScript में typeof ऑपरेटर का उपयोग किसके लिए किया जाता है?

a)

To get the data type of a variable

b)

To compare variables

c)

To create new variables

d)

To delete variables

65.

null और undefined में क्या अंतर है?

a)

null is an assigned value, undefined means a variable is not initialized

b)

Both are the same

c)

null is for strings, undefined is for numbers

d)

undefined is an object, null is not

66.

AngularJS application को initialize करने के लिए कौन सा directive उपयोग होता है?

a)

ng-app

b)

ng-init

c)

ng-controller

d)

ng-model

67.

JavaScript को किस साल में विकसित किया गया था?

a)

1990

b)

1995

c)

2000

d)

2005

68.

JavaScript का आविष्कार किसने किया?

a)

Tim Berners-Lee

b)

Brendan Eich

c)

Dennis Ritchie

d)

Bjarne Stroustrup

69.

AngularJS किस प्रकार की framework है?

a)

Frontend Framework

b)

Backend Framework

c)

Full-stack Framework

d)

Database Framework

70.

AngularJS में controllers का उपयोग किसके लिए होता है?

a)

To manage the application's data and logic

b)

To style the HTML elements

c)

To manage server-side requests

d)

To validate forms

71.

Client-side scripting किस पर execute होता है?

a)

On the client's browser

b)

On the server

c)

On the database

d)

On a middleware

72.

Client-side scripting का मुख्य लाभ क्या है?

a)

Faster interactivity for the user

b)

Secure data processing

c)

Large-scale data storage

d)

Avoids browser dependencies

73.

JavaScript में variable को declare किए बिना उपयोग करने पर उसका default value क्या होता है?

a)

null

b)

0

c)

undefined

d)

NaN

74.

JavaScript में variable के लिए dynamic typing का मतलब क्या है?

a)

Variables can store different types of data at runtime

b)

Variables are strongly typed

c)

Variable types cannot be changed

d)

Variables must be declared before use

75.

== और === में क्या अंतर है?

a)

== checks only value, === checks value and type

b)

== checks value and type, === checks only value

c)

No difference

d)

=== is used for strings only

76.

कौन सा ऑपरेटर logical NOT के लिए उपयोग होता है?

a)

&

b)

||

c)

!

d)

^

77.

JavaScript में else if का उपयोग कब किया जाता है?

a)

For multiple conditions

b)

For looping

c)

For array handling

d)

For declaring variables

78.

ternary operator का syntax क्या है?

a)

condition ? expression1 : expression2

b)

condition ? expression2 : expression1

c)

if(condition) {expression}

d)

if-else(condition)

79.

confirm() popup का उपयोग क्यों किया जाता है?

a)

To get a yes/no response from the user

b)

To take user input

c)

To display an alert message

d)

To close the browser

80.

अगर उपयोगकर्ता confirm() popup में "Cancel" दबाता है, तो return value क्या होती है?

a)

true

b)

false

c)

null

d)

undefined

81.

onkeydown इवेंट कब ट्रिगर होता है?

a)

When a key is pressed down

b)

When a key is released

c)

When a key is held down

d)

When the mouse is clicked

82.

Form validation के लिए सबसे उपयोगी इवेंट कौन सा है?

a)

onsubmit

b)

onload

c)

onclick

d)

onblur

83.

Email validation के लिए JavaScript में कौन सा pattern उपयोग होता है?

a)

/^[a-zA-Z0-9]+@[a-z]+\.[a-z]+$/

b)

/^[0-9]+$/

c)

/[a-zA-Z]*$/

d)

/^#.*$/

84.

JavaScript में फॉर्म को reset करने के लिए कौन सी method उपयोग की जाती है?

a)

reset()

b)

clear()

c)

empty()

d)

formClear()

85.

Asynchronous JavaScript के लिए कौन सा tool उपयोग होता है?

a)

Promises

b)

Callbacks

c)

Async/Await

d)

All of the above

86.

JSON.stringify() का उपयोग किसके लिए होता है?

a)

To convert an object to a JSON string

b)

To convert JSON string to an object

c)

To validate JSON

d)

To parse JSON

87.

AngularJS में ng-init directive का उपयोग कब होता है?

a)

To initialize application data

b)

To create controllers

c)

To perform routing

d)

To handle errors

88.

AngularJS में $http service का उपयोग किसके लिए होता है?

a)

To make HTTP requests

b)

To handle errors

c)

To create filters

d)

To manage animations

89.

What is the $http service used for in AngularJS?

a)

To make HTTP requests

b)

To handle errors

c)

To create filters

d)

To manage animations

90.

JavaScript में default parameter values का उपयोग कब किया जाता है?

a)

When a parameter is missing during function call

b)

When the parameter is null

c)

Always

d)

Never

91.

Higher-order functions किसे कहते हैं?

a)

Functions that take other functions as arguments or return functions

b)

Functions with more than one parameter

c)

Functions that run only once

d)

Functions used for form validation

92.

JavaScript में block scope को कौन manage करता है?

a)

let and const

b)

var

c)

Functions

d)

Objects

93.

JavaScript में global scope क्या है?

a)

Variables accessible throughout the entire program

b)

Variables accessible only inside a function

c)

Variables accessible within a block

d)

Variables declared with const

94.

JavaScript में for...in loop का उपयोग किसके लिए होता है?

a)

Iterating over object properties

b)

Iterating over array elements

c)

Infinite looping

d)

Breaking out of a loop

95.

JavaScript में for...of loop का उपयोग कब होता है?

a)

To iterate over iterable objects like arrays and strings

b)

To iterate over object keys

c)

To handle asynchronous loops

d)

To iterate through JSON objects

96.

JavaScript में syntax errors को पकड़ने के लिए कौन सी statement उपयोग की जाती है?

a)

try-catch

b)

if-else

c)

error-handler

d)

throw

97.

throw statement का उपयोग क्यों किया जाता है?

a)

To manually raise an exception

b)

To end the program

c)

To execute a function

d)

To debug code

98.

ES6 में spread operator का उपयोग कब किया जाता है?

a)

To expand arrays or objects

b)

To compress data

c)

For variable declarations

d)

To handle errors

99.

const का उपयोग किस प्रकार की variable के लिए होता है?

a)

Immutable variables

b)

Function-scoped variables

c)

Reassignable variables

d)

Block-scoped variables

100.

JavaScript में array से last element को remove करने के लिए कौन सी method उपयोग होती है?

a)

pop()

b)

push()

c)

shift()

d)

unshift()

101.

JavaScript में array में new element add करने के लिए कौन सी method उपयोग होती है?

a)

push()

b)

pop()

c)

concat()

d)

slice()

102.

Object में properties को delete करने के लिए कौन सा keyword उपयोग होता है?

a)

delete

b)

remove

c)

unset

d)

clear

103.

JavaScript में Object.keys() method का उपयोग किसके लिए होता है?

a)

To get all keys of an object

b)

To get all values of an object

c)

To create a new object

d)

To delete keys of an object

104.

JavaScript में null की data type क्या होती है?

a)

object

b)

null

c)

undefined

d)

boolean

105.

JSON का पूरा नाम क्या है?

a)

JavaScript Object Notation

b)

Java Standard Object Network

c)

JavaScript Online Network

d)

Java Standard Output Notation

106.

Closure का उपयोग किसके लिए होता है?

a)

To access outer function variables from an inner function

b)

To handle errors

c)

To terminate a function

d)

To declare global variables

107.

Closure का main feature क्या है?

a)

Data encapsulation

b)

Faster execution

c)

Reduced code size

d)

Better debugging

108.

AngularJS में $watch का उपयोग क्यों किया जाता है?

a)

To watch for changes in scope variables

b)

To create filters

c)

To handle animations

d)

To debug applications

109.

$digest cycle का उपयोग AngularJS में किसके लिए होता है?

a)

To update the view whenever scope variables change

b)

To make HTTP requests

c)

To validate forms

d)

To create new directives

110.

JavaScript में isNaN() का उपयोग किसके लिए होता है?

a)

To check if a value is not a number

b)

To check if a number is negative

c)

To check if a number is null

d)

To check if a variable is undefined

111.

JavaScript में strict mode को enable करने के लिए क्या लिखते हैं?

a)

"use strict";

b)

"enable strict";

c)

"strict mode";

d)

"use mode strict";

112.

DOM में element को select करने के लिए कौन सी method उपयोग की जाती है?

a)

getElementById()

b)

getElementByName()

c)

getElementByClass()

d)

getElementByValue()

113.

DOM में class को manipulate करने के लिए कौन सी property उपयोग होती है?

a)

classList

b)

innerHTML

c)

style

d)

nodeValue

114.

JavaScript में किसी element का content बदलने के लिए कौन सी property उपयोग की जाती है?

a)

innerHTML

b)

value

c)

textContent

d)

Both A and C

115.

JavaScript में DOM tree के सबसे top-level object का नाम क्या है?

a)

window

b)

document

c)

body

d)

head

116.

JavaScript में current date और time पाने के लिए कौन सा object उपयोग होता है?

a)

Date

b)

Time

c)

Calendar

d)

Clock

117.

JavaScript में current year पाने के लिए कौन सी method उपयोग होती है?

a)

getFullYear()

b)

getYear()

c)

getDate()

d)

getMonth()

118.

JavaScript में string को uppercase में बदलने के लिए कौन सी method उपयोग होती है?

a)

toUpperCase()

b)

toLowerCase()

c)

split()

d)

replace()

119.

JavaScript में string से white spaces को हटाने के लिए कौन सी method उपयोग होती है?

a)

trim()

b)

split()

c)

slice()

d)

splice()

120.

Promise का resolve() method कब execute होता है?

a)

When the promise is fulfilled

b)

When the promise is rejected

c)

When the promise is pending

d)

When the promise is canceled

121.

JavaScript में promises के लिए then() method का उपयोग क्यों किया जाता है?

a)

To handle the resolved value of a promise

b)

To handle errors in a promise

c)

To pause the promise execution

d)

To chain multiple functions

122.

JavaScript में इवेंट हैंडलर को dynamically assign करने के लिए कौन सी method उपयोग होती है?

a)

addEventListener()

b)

setEvent()

c)

attachHandler()

d)

bindEvent()

123.

HTML में inline event handler का उपयोग करने का syntax क्या है?

a)

b)

c)

d)

124.

AngularJS में two-way data binding क्या दर्शाता है?

a)

Synchronization between model and view

b)

Data transfer between two controllers

c)

Form validation

d)

Template compilation

125.

AngularJS में ng-model directive का उपयोग किसके लिए होता है?

a)

To bind input data to the application scope

b)

To define controllers

c)

To create custom filters

d)

To handle routing