JavaScript Fundamentals Quiz
Test your knowledge of JavaScript programming concepts including operators, objects, functions, and event handling
Questions
Which is not a built-in function?
- parseInt()
- exec()
- eval()
- parseFloat()
Choose the built-in object:
- Password
- Math
- Link
- Hidden
Choose the external object:
- Date
- Option
- Checkbox
- Layer
Which is not considered a JavaScript operator?
- new
- this
- delete
- typeof
What allows JavaScript to access methods and properties of a Java applet?
- The Java console
- LiveConnect
- LiveWire
- LiveWire Pro
With the advent of JavaScript1.2, the String.replace() method facilitates character replacement in strings. How would you remove every 'x' from the variable myString without the new features of 1.2?
- for(var i = 0; i < myString.length; i++) {
- var myArray = myString.split('x'); myString = myArray.join('');
- It wasn't possible until now. Thanks JavaScript1.2!
- The first two both work fine
What HTML attribute allows a Java applet explicit permission to access JavaScript objects and functions?
- MAYSCRIPT
- CODE
- PARAM
- CODEBASE
Once agin, consider the same three variables: someText = 'JavaScript1.2'; pattern = /(\w+)(\d).(\d)/i; outCome = pattern.exec(someText); What does outCome[0] contain?
- true
- false
- null
- JavaScript1.2
External scripts need to be enclosed in comments so that browsers that do not understand Javascript will not display the code on the page
- True
- False
When can you not trigger Javascript from an event handler?
- when another event is still being processed
- when Javascript is disabled
- when the page uses stylesheets
- when it is running locally instead of on the web