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 denote a string in JavaScript






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






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






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 get the current value of the control for a text area






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






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






9. To set the control to be disabled for textboxes






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






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






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






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






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






15. To declare a variable in JavaScript






16. To concatenate multiple parts into a string






17. Math object method used to return a given number that has been rounded to the closes integer value






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






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






20. Command to display a prompt






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






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






23. To view the current web address using JavaScript






24. The identity operator for not equal






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






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






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






28. To get the current value for textboxes






29. To assign a default value to a prompt






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






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






32. A statement that yields a value






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






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






35. To display an alert






36. To code a for statement in JavaScript






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






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






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


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






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






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






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






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






45. To assign actions to the window onLoad event






46. To display a confirmation






47. To create a Date object in JavaScript






48. To create a single line comment in JavaScript






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






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