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 make the browser load a new page using JavaScript






3. To access a page element by id






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






5. String object method used to concatenate multiple strings






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






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






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






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






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






11. To view the current web address using JavaScript






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






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


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






15. This returns only True or false values






16. To assign actions to the window onLoad event






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






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






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






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






21. To denote a string in JavaScript






22. To set the control to be disabled for textboxes






23. To create an Array object in JavaScript






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






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






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






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






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






29. To insert Javascript into a web page






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






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






32. To assign a default value to a prompt






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






34. To code an If statement in JavaScript






35. Command to display a prompt






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






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






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






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






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






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






42. To code a button.onclick event handler






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






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






45. Math object method used to return a random number






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






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






48. To display a confirmation






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






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