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. To access a page element by id






2. The string escape sequence to insert a single quote in JavaScript


3. To get the current value for textboxes






4. To set the current checked status of the control for checkboxes






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






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






7. To create a function in JavaScript






8. The syntax of a conditional operator






9. To create a Date object in JavaScript






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






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






12. String object method used to return the position of the first instance of a specified search string starting from the specified index






13. A statement that yields a value






14. To view the current web address using JavaScript






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






16. The identity operator for not equal






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






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






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






20. To denote a string in JavaScript






21. JavaScript is case _______






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






23. Statements end in JavaScript with a ________






24. To create a function that returns a value in JavaScript






25. To concatenate multiple parts into a string






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






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






28. To assign actions to the window onLoad event






29. To assign a default value to a prompt






30. String object method used to concatenate multiple strings






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






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






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






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






35. To insert Javascript into a web page






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






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






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






39. Math object method used to return a given number raised to a given power






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






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






42. To code a for statement in JavaScript






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






44. The identity operator for equals






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






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






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






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






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






50. Math object method used to return a random number