1.
Java Script File Has An Extension Of
Correct Answer
B. .Js
Explanation
The correct answer is ".Js" because JavaScript files typically have a file extension of ".js". This file extension helps to identify and differentiate JavaScript files from other types of files.
2.
The Tag is used To Give Heading To The Table.
Correct Answer
D. Caption
Explanation
The "caption" tag is used to provide a heading or title to a table. It is typically placed at the top of the table and helps to provide a brief description or summary of the table's content. This tag is used to improve the accessibility and understanding of the table for users.
3.
IsNaN() Evaluates And Argument To Determine if Given Value
Correct Answer
B. Is Not a Number
Explanation
The isNaN() function is used to determine if a given value is not a number. It returns true if the value is not a number and false if it is a number. This function is often used to validate user input in forms or to check if a mathematical operation resulted in a valid number.
4.
Function is Used To Parse a String To Int
Correct Answer
B. Int.Parse
Explanation
Int.Parse is the correct answer because it is a function that is used to convert a string to an integer. By using Int.Parse, you can take a string input and convert it into an integer data type. This function is commonly used in programming languages to handle situations where you need to convert user input or data from a file into numerical values for calculations or comparisons.
5.
Which Of The Dialog Box Display a Message And a Data Entry Field?
Correct Answer
B. Prompt()
Explanation
The prompt() dialog box displays a message and a data entry field. This allows the user to enter some input in response to the message displayed. The other options, such as alert(), confirm(), and msg(), do not have a data entry field and are used for displaying messages or asking for confirmation from the user.
6.
Event is Used To Check An Empty Text Box.
Correct Answer
C. OnBlur()
Explanation
The onBlur() event is used to check if a text box is empty when the user moves away from it. This event is triggered when the user clicks outside of the text box or tabs away from it. It allows for validation or any other action to be performed to ensure that the text box is not left empty. The onClick() event is triggered when the user clicks on the text box, OnFocus() event is triggered when the text box receives focus, and "None" indicates that none of these events are used to check an empty text box.
7.
Method Prompt() Contain ........Number of Parameters.
Correct Answer
B. Two
Explanation
The method Prompt() contains two parameters.
8.
GetMonth() returns The Month as
Correct Answer
A. Int
Explanation
The getMonth() function returns the month as an integer. This means that the value returned by the function will be a whole number representing the month, such as 1 for January, 2 for February, and so on. It will not return a float (decimal number), character, or string.
9.
If Button is clicked .......Event Handler is invoked.
Correct Answer
D. Onclick()
Explanation
When a button is clicked, the event handler associated with that button is invoked. In this case, the correct answer is "Onclick()" because it represents the event that is triggered when the button is clicked. The other options, "OnSubmit()", "OnLoad()", and "IsPostBack()", do not specifically refer to the event of clicking a button.
10.
A Function Associated With An object is Called
Correct Answer
B. Method
Explanation
A function associated with an object is called a method. In object-oriented programming, methods are functions that are defined within a class and are used to perform specific actions or operations on the object. Methods can access and manipulate the data within the object, and they are typically called using the object's name followed by the method name, using the dot notation.
11.
Inside which HTML element do we put the JavaScript?
Correct Answer
B. JavaScript
Explanation
The correct answer is "script". This is because the "script" element is specifically designed to hold JavaScript code within an HTML document. It is used to embed or reference external JavaScript files, or to directly include JavaScript code within the HTML file itself.