gs gs128 Java IO Applets - Java Applets Fundamentals - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 9 multiple choice questions (MCQs) to prepare and belongs to topic Java IO Applets. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of these functions is called to display the output of an applet?
display()
paint()
displayApplet()
PrintApplet()
Question 2: Which of these methods can be used to output a string in an applet?
display()
print()
drawString()
transient()
Question 3: Which of these methods is a part of Abstract Window Toolkit (AWT) ?
display()
paint()
drawString()
transient()
Question 4: Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a program?
transient
volatile
global
No modifier is needed
Question 5: Which of these operators can be used to get run time information about an object?
getInfo
Info
instanceof
getinfoof
Question 6: What is the Message is displayed in the applet made by the following Java program?
import java.awt.*; import java.applet.*; public class myapplet extends Applet { public void paint(Graphics g) { g.drawString("A Simple Applet", 20, 20); } }
A Simple Applet
A Simple Applet 20 20
Compilation Error
Runtime Error