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 get the current checked status of the control for radio buttons






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






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






4. To create a new Date object






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






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






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






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






9. To get the current value of the control for a text area






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


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






12. Math object method used to return a random number






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






14. A statement that yields a value






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






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






17. The syntax of a conditional operator






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






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






20. To create an Array object in JavaScript






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






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






23. To set focus on the control for textboxes






24. JavaScript is case _______






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






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






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






28. Statements end in JavaScript with a ________






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






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






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






32. To access a page element by id






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






34. The identity operator for equals






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






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






37. To code an If statement in JavaScript






38. Command to display a prompt






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






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






41. String object method used to concatenate multiple strings






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






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






44. To code a button.onclick event handler






45. The two methods common to most controls: ______ //Brings focus to the control blur //Removes focus from the control






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






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






48. To denote a string in JavaScript






49. This returns only True or false values






50. To display a confirmation