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 escape sequence used to insert a Unicode character into a string in JavaScript






2. To insert Javascript into a web page






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






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






5. To test that a variable contains a valid number






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






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






8. To view the current web address using JavaScript






9. The identity operator for not equal






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






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






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






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






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






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






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






17. To access a page element by id






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






19. Statements end in JavaScript with a ________






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






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






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






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






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






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






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






27. To concatenate multiple parts into a string






28. To code a while statement in JavaScript






29. To display a confirmation






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






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






32. To create a new Date object






33. To set the digit precision of a decimal number






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






35. Command to display a prompt






36. To set the control to be disabled for textboxes






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






38. To code a for statement in JavaScript






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






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






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






42. To code an If statement in JavaScript






43. The identity operator for equals






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






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






46. To code a button.onclick event handler






47. String object method used to concatenate multiple strings






48. The syntax of a conditional operator






49. JavaScript is case _______






50. The events common to most controls: onfocus - onblur - onclick - _______ - onchange - onselect