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 set focus on the control for textboxes






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






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






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






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






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






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






8. To access a page element by id






9. To create an Array object in JavaScript






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






11. Command to display a prompt






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






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






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






15. A statement that yields a value






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






17. To create a Date object in JavaScript






18. The identity operator for equals






19. To create a function in JavaScript






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






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






22. To code a for statement in JavaScript






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






24. The identity operator for not equal






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






26. String object method used to concatenate multiple strings






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






28. Math object method used to return a random number






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






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






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






32. To code an If statement in JavaScript






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






34. To display an alert






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






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






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






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






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






40. To display a confirmation






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






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






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


44. To concatenate multiple parts into a string






45. To code a while statement in JavaScript






46. To assign actions to the window onLoad event






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






48. To create a new Date object






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






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