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. Math object method used to return the absolute value of a given number






2. The four attributes of the <script> tag:Type - Src - _____ and Defer






3. Date object method used to return a string containing the time






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






5. To display a confirmation






6. To set focus on the control for textboxes






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






8. The identity operator for not equal






9. 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






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






11. Number object method used to return a numerical string with the specified number of significant digits






12. To set the control to be disabled for textboxes






13. To create a new Date object






14. To test that a variable contains a valid number






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






16. To alter the value of the text element in a span tag






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






18. A statement that yields a value






19. To set the current checked status of the control for radio buttons






20. To create a Date object in JavaScript






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






22. To display an alert






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






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






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






26. The available set methods for a Date object: setFullYear() - setMonth() - setDate() - setHours() - setMinutes() - setSeconds() - _________






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






28. The available properties for the Number object: Number.MAX_VALUE - Number.MIN_VALUE - Number.POSITIVE_INFINITY - _______ - Number.NaN






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






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






31. String object method used to get the character at a specified index position






32. Date object method used to return a string containing the date






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






34. The syntax of a conditional operator






35. To create an Array object in JavaScript






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






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






38. Number object method used to return a string with a given number base






39. Unlike ________________ identity operators do not perform type coercion.






40. To denote a string in JavaScript






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






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






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






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






45. Math object method used to return a given number that has been rounded to the closes integer value






46. To assign the value from a prompt to a string






47. The valid characters for an identifier in JavaScript: Letters - Numbers - ________ and Dollar Signs






48. To code a while statement in JavaScript






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






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