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. The string escape sequence to insert a vertical tab in JavaScript






2. To create a Date object in JavaScript






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






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






5. A statement that yields a value






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






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






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






9. The identity operator for equals






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






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






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






13. Statements end in JavaScript with a ________






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






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






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






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






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






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






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






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






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






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






24. String object method used to concatenate multiple strings






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






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






27. To view the current web address using JavaScript






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






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






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






31. JavaScript is case _______






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






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






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






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






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






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






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






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






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






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






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


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






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






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






46. To code an If statement in JavaScript






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






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






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






50. Command to display a prompt