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