⚡ Each correct answer carries +1 mark and each wrong answer carries -0.25 negative marking.
What is a function in JavaScript?
Which keyword is used to define a function in JavaScript?
How do you pass parameters to a JavaScript function?
Which statement is used to return a value from a function?
Which type of function does not have a name?
Which JavaScript event is triggered when a user submits a form?
Which event occurs when a key is pressed on the keyboard?
Which event is triggered when the mouse pointer moves over an element?
Which JavaScript event occurs when an input field loses focus?
What is form validation?
Which attribute is used to make a form field mandatory in HTML5?
Which JavaScript method is used to prevent form submission?
Which JavaScript event is used for mouse click?
Which function is used to display a message box?
Which function displays a dialog box with OK and Cancel buttons?
Which function accepts user input as text?
Which event is triggered when a user changes the value of an input field?
Which JavaScript keyword is used to declare a block-scoped variable?
What will be the output of isNaN("10")?
Which JavaScript method converts a string into an integer?
Which keyword is used to stop the execution of a function and return control to the caller?
What is the purpose of function arguments in JavaScript?
Which event is triggered when a key is released on the keyboard?
Which event occurs when the mouse button is pressed over an element?
Which HTML attribute specifies a regular expression that an input field's value must match?
Which JavaScript method is used to access form elements?
Which JavaScript event is triggered when the mouse pointer leaves an element?
What does the arguments object contain in a JavaScript function?
Which JavaScript function checks whether a value is a number?
Which JavaScript event is triggered when the user types in an input field?