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 the digit precision of a decimal number






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






3. To create an Array object in JavaScript






4. To create a single line comment in JavaScript






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






6. To code a while statement in JavaScript






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






8. String object method used to concatenate multiple strings






9. To display an alert






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






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






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






13. To display a confirmation






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






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






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






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






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


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






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






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






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






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






24. To code a for statement in JavaScript






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






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






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






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






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






30. To code a button.onclick event handler






31. To code an If statement in JavaScript






32. Math object method used to return a random number






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






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






35. To declare a variable in JavaScript






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






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






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






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






40. A statement that yields a value






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






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






43. JavaScript is case _______






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






45. To insert Javascript into a web page






46. The syntax of a conditional operator






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






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






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






50. To get the current value for textboxes