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 assign a default value to a prompt






2. To create a new Date object






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






4. To create a Date object in JavaScript






5. JavaScript is case _______






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






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






8. This returns only True or false values






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






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






11. The escape sequence used to insert a Unicode character into a string in JavaScript






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






13. To assign actions to the window onLoad event






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






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






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






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






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






19. The syntax of a conditional operator






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






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






22. To set the digit precision of a decimal number






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






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






25. Date object method used to return a string containing the date and time






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






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






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






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


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






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






32. To code a while statement in JavaScript






33. To concatenate multiple parts into a string






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






35. To display a confirmation






36. To set focus on the control for textboxes






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






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






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






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






41. To code a button.onclick event handler






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






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






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






45. A statement that yields a value






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






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






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






49. The identity operator for equals






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