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 display an alert






2. To denote a string in JavaScript






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






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






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






6. This returns only True or false values






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






8. To assign a default value to a prompt






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






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






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






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






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






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






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






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






17. To code an If statement in JavaScript






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






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






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






21. JavaScript is case _______






22. To view the current web address using JavaScript






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






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






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


26. To code a for statement in JavaScript






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






28. The identity operator for not equal






29. To create an Array object in JavaScript






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






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






32. To concatenate multiple parts into a string






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






34. Command to display a prompt






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






36. To assign actions to the window onLoad event






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






38. The syntax of a conditional operator






39. A statement that yields a value






40. To create a Date object in JavaScript






41. Math object method used to return a random number






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






43. Statements end in JavaScript with a ________






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






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






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






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






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






49. The _____ attribute is used to denote external file for script use






50. To create a single line comment in JavaScript