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. |
Multiple choice questions on Javascript |
|
Answer» Below are the most common JavaScript questions that are asked frequently |
|
| 2. |
What will happen if the body of a for/in loop deletes a property that has not yet been enumerated? |
|
Answer» What will HAPPEN if the BODY of a for/in loop DELETES a property that has not YET been enumerated? |
|
| 3. |
JavaScript Code can be called by using ____________ |
|
Answer» JavaScript Code can be CALLED by using ____________ |
|
| 4. |
What is the return type of the remote server? |
|
Answer» What is the return type of the remote server? |
|
| 5. |
What do you mean by Coercion in Javascript? |
|
Answer» What do you MEAN by Coercion in Javascript? |
|
| 6. |
What will be the step of the interpreter in a jump statement when an exception is thrown? |
|
Answer» What will be the step of the interpreter in a jump statement when an EXCEPTION is THROWN? |
|
| 7. |
What is Object Equality in Javascript? |
|
Answer» What is Object Equality in Javascript? |
|
| 8. |
What are the three important manipulations done in a for loop on a loop variable? |
|
Answer» What are the three important manipulations done in a for LOOP on a loop VARIABLE? |
|
| 9. |
What is closure in JavaScript? |
|
Answer» What is CLOSURE in JAVASCRIPT? |
|
| 10. |
One of the special feature of an interpreter in reference with the for loop is that |
|
Answer» One of the SPECIAL feature of an interpreter in reference with the for loop is that |
|
| 11. |
Which of the following API can be used to get the timing without affecting the page loading process? |
|
Answer» Which of the following API can be used to GET the TIMING without affecting the PAGE loading process? |
|
| 12. |
The basic purpose of the toLocaleString() is to _________ |
|
Answer» The basic PURPOSE of the toLocaleString() is to _________ |
|
| 13. |
Which of the following are client-side JavaScript object? |
|
Answer» Which of the following are client-side JavaScript object? |
|
| 14. |
Which property reports rotation around three different mouse wheel axes? |
|
Answer» Which property reports ROTATION AROUND three different mouse WHEEL axes? |
|
| 15. |
Which best explains getSelection()? |
|
Answer» Which BEST explains getSelection()? |
|
| 16. |
Why shouldn t JavaScript functions not be too long? |
|
Answer» Why shouldn t JavaScript functions not be too long? |
|
| 17. |
How can you send data using a Worker object? |
|
Answer» How can you send data using a WORKER object? |
|
| 18. |
Which object is passed as the argument to handlers for keydown, keyup, and keypress events? |
|
Answer» Which OBJECT is passed as the argument to handlers for KEYDOWN, keyup, and keypress events? |
|
| 19. |
Which of the following method will wait for certain milliseconds to execute a specified method? |
|
Answer» Which of the FOLLOWING METHOD will wait for certain milliseconds to EXECUTE a specified method? |
|
| 20. |
A function definition expression can be called |
|
Answer» A FUNCTION DEFINITION expression can be called |
|
| 21. |
How to remove item from dropdownlist in Javascript |
|
Answer» FUNCTION removeitemfromdropdownlist() { VAR LEN = document.getElementById('dropdownlistid').options.length; for(i=len-1; i>=1; i--) { document.getElementById('dropdownlistid').options.remove(i); } } |
|
| 22. |
A linkage of series of prototype objects is called as |
|
Answer» A LINKAGE of series of prototype OBJECTS is called as |
|
| 23. |
What kind of expression is new Point(2,3) ? |
|
Answer» What kind of expression is new Point(2,3) ? |
|
| 24. |
Which two events will have the generated text for key events? |
|
Answer» Which two events will have the generated text for key events? |
|
| 25. |
Different Data Types in Javascript in 2015? |
|
Answer» Different Data Types in JAVASCRIPT in 2015? |
|
| 26. |
The JavaScript s syntax calling ( or executing ) a function or method is called |
|
Answer» The JavaScript s SYNTAX calling ( or executing ) a function or method is called |
|
| 27. |
Which property holds a DataTransfer object that contains information about the data being transferred and the formats in which it is available? |
|
Answer» Which property HOLDS a DataTransfer object that contains information about the data being TRANSFERRED and the FORMATS in which it is available? |
|
| 28. |
Which of the following is one of the fundamental features of JavaScript? |
|
Answer» Which of the following is one of the fundamental FEATURES of JavaScript? |
|
| 29. |
Code to find how many days left in upcoming chirstmas day in Javascript? |
|
Answer» CODE to FIND how MANY days left in UPCOMING chirstmas day in Javascript? Below is the code to find the day REMAINING in upcoming chirstmas Download Code
|
|
| 30. |
regular expression for credit card like VISA, MASTER, AMEX |
|
Answer» This is a regular expression that validates all CREDIT card numbers including VISA, MASTER, AMEX |
|
| 31. |
syntax to get dropdownlist text in javascript |
|
Answer» document.getElementById(ControlID).OPTIONS[document. |
|
| 32. |
How can we read and write a file by using JavaScript? |
|
Answer» How can we read and WRITE a file by using JavaScript? |
|
| 33. |
Use of Shift and Unshift keyword in Javascript? |
|
Answer» Use of SHIFT and Unshift keyword in JAVASCRIPT? |
|
| 34. |
Write name of top 10 array methods in JavaScript? |
|
Answer» WRITE NAME of top 10 ARRAY methods in JavaScript? If you are a programmer you knows array are important in every programming languages. And if you understand all of below array methods in JavaScript you will be pro in JavaScript programming. (1)forEach (2)map (3)reduce (4)filter (5)find (6)findIndex (7)some (8)Every (9)sort (10)splice In above list 9 methods are iterative functions which means these are simply looping. And above methods are also higher order function which means function which TAKES other functions as parameters. |
|
| 35. |
Write down difference between JavaScript and (Java,C,Ruby,PHP,cSharp and Python)? |
|
Answer» Write down difference between JavaScript and (Java,C,Ruby,PHP,cSharp and Python)? |
|
| 36. |
The snippet that has to be used to check if a is not equal to null is _________ |
|
Answer» The snippet that has to be used to check if a is not equal to null is _________ |
|
| 37. |
Where cookies stored on the hard disk by default |
|
Answer» Cookies storage is depends upon the USERS browser and OPERATING System. When we USE Netscape with Windows Operating system all the cookies are stored in a single file called cookies.txt and location of cookies is as given Below:- |
|