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. String object method used to concatenate multiple strings






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






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






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






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






6. To assign a default value to a prompt






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






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






9. This returns only True or false values






10. A statement that yields a value






11. To code an If statement in JavaScript






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






13. To concatenate multiple parts into a string






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






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






16. To access a page element by id






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


18. To create a function in JavaScript






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






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






21. To get the current value for textboxes






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






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






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






25. The identity operator for equals






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






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






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






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






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






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






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






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






34. To set the control to be disabled for textboxes






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






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






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






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






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






40. To set the digit precision of a decimal number






41. To create a new Date object






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






43. Math object method used to return a random number






44. The identity operator for not equal






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






46. To denote a string in JavaScript






47. Math object method used to return the square root of a given number






48. To code a while statement in JavaScript






49. JavaScript is case _______






50. The syntax of a conditional operator