Java & JavaScript Image Quiz Test Your Java & JavaScript Skills: Beginner’s Quiz 1 / 5 Which Java method is used to load an image from a file? image.load() Toolkit.getDefaultToolkit().getImage() loadImage() openImage() 2 / 5 In JavaScript, which event can be used to check when an image has loaded? onfocus onclick onload onhover 3 / 5 How can you display an image using JavaScript dynamically? By using document.write() only By changing the src property of an image element By using a CSS class only By using System.out.println() 4 / 5 Which JavaScript property is used to change the source of an image? image.path image.source image.src image.link 5 / 5 Which Java class is commonly used to handle images in GUI applications? java.swing.Image java.lang.Image java.io.Image java.awt.Image Your score isThe average score is 0% 0% Restart quiz Send feedback