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. The valid characters for an identifier in JavaScript: Letters - Numbers - ________ and Dollar Signs






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






3. To code a for statement in JavaScript






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






5. To declare a variable in JavaScript






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






7. To denote a string in JavaScript






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






9. To access the text element in a <span> tag






10. The identity operator for not equal






11. To make the browser load a new page using JavaScript






12. String object method used to concatenate multiple strings






13. The identity operator for equals






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






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






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






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






18. To insert Javascript into a web page






19. To create an Array object in JavaScript






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






21. The string escape sequence to insert a double quote in JavaScript






22. To assign a default value to a prompt






23. A _______ variable can be changed and accessed from within and without a function or object.






24. A statement that yields a value






25. Date object method used to return a string containing the date and time






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






27. To display an alert






28. To create a new Date object






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






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






31. Command to display a prompt






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






33. To view the current web address using JavaScript






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






35. String object method used to return a new string that contains part of the original string from the specified start position






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






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






38. To code a while statement in JavaScript






39. The available get methods for a Date object: getTime() - _________ - getMonth() - getDate() - getHours() - getMinutes() - getSeconds() - getMilliseconds()






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






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






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






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






44. To get the current checked status of the control for radio buttons






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






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






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






48. To access a page element by id






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






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