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 backslash in JavaScript






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






3. The identity operator for not equal






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






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






6. To code a while statement in JavaScript






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






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






9. To test that a variable contains a valid number






10. To concatenate multiple parts into a string






11. To code a button.onclick event handler






12. A statement that yields a value






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






14. To declare a variable in JavaScript






15. To create a function in JavaScript






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






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






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






19. To set focus on the control for textboxes






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






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






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






23. To create a single line comment in JavaScript






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






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






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






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






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






29. The valid characters for an identifier in JavaScript: Letters - Numbers - ________ and Dollar Signs






30. To code an If statement in JavaScript






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






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






33. To code a for statement in JavaScript






34. To view the current web address using JavaScript






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






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






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






38. To display a confirmation






39. Math object method used to return a random number






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






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






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






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






44. To create a new Date object






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


46. To insert Javascript into a web page






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






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






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






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