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 code a while statement in JavaScript






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






4. To set focus on the control for textboxes






5. Math object method used to return a random number






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






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






8. JavaScript is case _______






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






10. A list-like construct that has properties which corresponds to JavaScript values or variables or other objects.






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






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






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






14. To create a function in JavaScript






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






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






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






18. To access a page element by id






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


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






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






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






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






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






25. To create a Date object in JavaScript






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






27. The identity operator for equals






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






29. To code a button.onclick event handler






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






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






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






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






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






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






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






37. The four attributes of the <script> tag:Type - Src - _____ and Defer






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






39. To denote a string in JavaScript






40. To test that a variable contains a valid number






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






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






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






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






45. To create an Array object in JavaScript






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






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






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






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






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