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. Math object method used to return a given number that has been rounded to the closes integer value






2. A statement that yields a value






3. To set focus on the control for textboxes






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






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






6. To create a single line comment in JavaScript






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






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






9. JavaScript is case _______






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






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






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






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






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






15. To display a confirmation






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


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






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






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






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






21. To code a for statement in JavaScript






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






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






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






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






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






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






28. To denote a string in JavaScript






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






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






31. To get the current value for textboxes






32. To assign a default value to a prompt






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






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






35. Command to display a prompt






36. To insert Javascript into a web page






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






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






39. The syntax of a conditional operator






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






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






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






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






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






45. Math object method used to return a random number






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






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






48. This returns only True or false values






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






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