 
                 
                InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. | Which of the following allow the programmer to modularize a program?(a) Library functions(b) User defined functions(c) Normal functions(d) Ordinary functions | 
| Answer» (b) User defined functions | |
| 2. | Which of the following is used to enhance re-usability and program clarity?(a) Functions(b) Modules(c) Sets(d) Instructions | 
| Answer» Correct answer is (a) Functions | |
| 3. | Predefined functions are also called as:(a) library functions(b) storage functions(c) instructions(d) commands | 
| Answer» (a) library functions | |
| 4. | Larger programs are divided into smaller are called:(a) modules(b) block(c) sets(d) group | 
| Answer» Correct answer is (a) modules | |
| 5. | What is the use of function? | 
| Answer» Sometimes functions are defined for commonly required tasks to avoid the repetition entailed in typing the same statements over and over. More generally, they are used to keep code that performs a particular job in one place in order to enhance re-usability and program clarity. | |
| 6. | What is a function in JavaScript? | 
| Answer» A function is a block of JavaScript code that is defined once but may be executed or invoked any number of times. Functions are used to encapsulate code that performs a specific task. | |
| 7. | Define NaN( )? | 
| Answer» The is NaN( ) function is used to check whether the given value or variable is valid number. This function returns true if the given value is not a number. For example is NaN(“12”), is NaN(“A”). | |
| 8. | What are the types of function? | 
| Answer» JavaScript supports two types functions. They are: 1. Pre-defined or Library Functions 2. User-defined Functions | |
| 9. | ……… often use their argument values to compute a return value that becomes the value of the function invocation expression.(a) function(b) parameter(c) non-parameter(d) expression | 
| Answer» Correct answer is (a) function | |
| 10. | …… method returns the element that has the ID attribute with the specified value.(a) elements [o](b) getElementByid( )(c) Nan ( )(d) NaN (“A”) | 
| Answer» (b) getElementByid( ) | |