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 test that a variable contains a valid number






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






3. Command to display a prompt






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


5. The identity operator for equals






6. To set the digit precision of a decimal number






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






8. String object method used to concatenate multiple strings






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






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






11. To create a new Date object






12. To assign actions to the window onLoad event






13. To get the current value for textboxes






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






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






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






17. To insert Javascript into a web page






18. To display an alert






19. To create a function in JavaScript






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






21. To denote a string in JavaScript






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






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






24. To create an Array object in JavaScript






25. JavaScript is case _______






26. Statements end in JavaScript with a ________






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






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






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






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






31. To code a while statement in JavaScript






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






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






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






35. To set the control to be disabled for textboxes






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






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






38. To declare a variable in JavaScript






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






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






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






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






43. To set focus on the control for textboxes






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






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






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






47. To create a single line comment in JavaScript






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






49. The syntax of a conditional operator






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