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 events common to most controls: onfocus - onblur - onclick - _______ - onchange - onselect






2. The two methods common to most controls: ______ //Brings focus to the control blur //Removes focus from the control






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






4. To concatenate multiple parts into a string






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






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






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






8. To insert Javascript into a web page






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






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






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






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






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






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






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






16. A statement that yields a value






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


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






19. To denote a string in JavaScript






20. To assign actions to the window onLoad event






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






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






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






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






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






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






27. The identity operator for not equal






28. This returns only True or false values






29. To create a Date object in JavaScript






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






31. String object method used to concatenate multiple strings






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






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






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






35. JavaScript is case _______






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






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






38. To display an alert






39. To create an Array object in JavaScript






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






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






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






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






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






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






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






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






48. To code a for statement in JavaScript






49. To set focus on the control for textboxes






50. To create a function in JavaScript