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