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 concatenate multiple parts into a string






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






3. To view the current web address using JavaScript






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






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






6. To set the digit precision of a decimal number






7. To get the current value for textboxes






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






9. The identity operator for equals






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






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






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






13. To set the control to be disabled for textboxes






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






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






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






17. The syntax of a conditional operator






18. This returns only True or false values






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






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






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


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






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






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






25. To create a Date object in JavaScript






26. String object method used to concatenate multiple strings






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






28. To test that a variable contains a valid number






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






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






31. When you add a string and a number the result will be a ____






32. Math object method used to return a given number rounded to the next lowest integer value






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






34. To denote a string in JavaScript






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






36. A statement that yields a value






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






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






39. To assign actions to the window onLoad event






40. To code a for statement in JavaScript






41. Command to display a prompt






42. To access a page element by id






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






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






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






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






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






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






49. The identity operator for not equal






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