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. Number object method used to return a string with a given number base






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






3. To set the digit precision of a decimal number






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






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






6. To concatenate multiple parts into a string






7. A function that is called with a certain event occurs - e.g. button.onclick and window.onload.






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






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






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






11. To code a for statement in JavaScript






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






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






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






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






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






17. To assign actions to the window onLoad event






18. To create a Date object in JavaScript






19. To code a while statement in JavaScript






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


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






22. To create a function in JavaScript






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






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






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






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






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






28. Statements end in JavaScript with a ________






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






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






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






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






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






34. String object method used to concatenate multiple strings






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






36. To access a page element by id






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






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






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






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






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






42. This returns only True or false values






43. Math object method used to return a random number






44. The identity operator for equals






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






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






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






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






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






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