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 valid characters for an identifier in JavaScript: Letters - Numbers - ________ and Dollar Signs






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






3. To get the current value for textboxes






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






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






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






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






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






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






10. JavaScript is case _______






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






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






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






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






15. To code a for statement in JavaScript






16. To set focus on the control for textboxes






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






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






19. To code a while statement in JavaScript






20. To create a new Date object






21. To create a single line comment in JavaScript






22. To create an Array object in JavaScript






23. The identity operator for not equal






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






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






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






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






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






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






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






31. To insert Javascript into a web page






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






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






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






35. To access a page element by id






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






37. To assign actions to the window onLoad event






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






39. String object method used to concatenate multiple strings






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






41. To create a Date object in JavaScript






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. To test that a variable contains a valid number






44. To denote a string in JavaScript






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






46. To set the digit precision of a decimal number






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






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






49. To assign a default value to a prompt






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