Test your basic knowledge |

Javascript Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. This returns only True or false values






2. Math object method used to return the square root of a given number






3. The escape sequence used to insert a Unicode character into a string in JavaScript






4. The ________ tag is used to display the text between the opening and closing tag if JavaScript is disabled or otherwise not available






5. A list-like construct that has properties which corresponds to JavaScript values or variables or other objects.






6. The string escape sequence to insert a backslash in JavaScript






7. To test that a variable contains a valid number






8. Number object method used to round numbers to the specified number of decimal places






9. The format to create a new Date object from a string






10. What String object method returns a new string containing the value of the original string but in all lower case






11. To set the current value of the control for a text area






12. What String object method returns a new string containing the value of the original string but in all upper case






13. To write a line to the current element of the DOM (Document Object Model)






14. String object method used to concatenate multiple strings






15. To insert Javascript into a web page






16. To get the current value for textboxes






17. What Date object method is used to return the number of milliseconds since the start of GMT






18. The string escape sequence to start a new line in JavaScript






19. To assign actions to the window onLoad event






20. The two methods common to most controls: ______ //Brings focus to the control blur //Removes focus from the control






21. To set the control to be disabled for textboxes






22. To assign the return value of confirm() to a variable






23. ________ comments start with / and end with /.






24. To create a new Date object






25. To write text to the current element of the DOM






26. To assign the value from a prompt to a non-string variable






27. Number object method used to return a number in exponential format with the specified number of decimal places






28. To get the value or the currently selected item for lists






29. The identity operator for equals






30. String object method used to return a new string that contains part of the original string from the specified start position and up to but not including the specified stop index






31. Math object method used to return the lowest value for a set of supplied numbers






32. To get the current checked status of the control for checkboxes






33. The string escape sequence to insert a tab in JavaScript






34. The string escape sequence to insert a vertical tab in JavaScript






35. The string escape sequence to insert a form feed in JavaScript






36. Command to display a prompt






37. The _____ attribute is used to denote external file for script use






38. To get the text value of the control for radio buttons






39. Math object method used to return the absolute value of a given number






40. To denote a string in JavaScript






41. When you __________ a javascript variable it retains its original value






42. To set focus on the control for textboxes






43. To get the current value of the control for a text area






44. To view the current web address using JavaScript






45. To get the text value of the control for radio buttons






46. To code an If statement in JavaScript






47. JavaScript is case _______






48. Math object method used to return the highest value from a set of supplied numbers






49. Math object method used to return a given number rounded to the next highest integer value






50. The string escape sequence to insert a carriage return in JavaScript