Hello Diploma Students in this article we have provided 22517 Advance Java Programming Mcq Pdf. With the help of this Advanced Java Programming Multiple Choice Questions Diploma in Information & Technology and Computer Engineering Students can Practice for their Upcoming Winter 2021 Exams.

In this Advance Java MCQ Questions and Answers We have selected Important Questions from Previous Year Model Answer Paper and Made A possible Set Of 30 Questions which can Help Students in Preparation for Their Exams. This Advanced Java Programming Mcq Question Bank Is Ideal for Candidates who are in 3rd Year of Diploma in Information Technology and Computer Engineering Course.

For More Java Mock Test Questions (Start Test)

Advanced Java Programming Multiple Choice Questions

By Referring this Advanced Java Programming Mcq Questions Diploma in Information Technology & Computer Engineering Students Can Practice for their Upcoming Exams. We Have Also Provided Advanced Java Programming Mcq pdf Link at the end of the Quiz You can Download it for Future Reference.

22517 Advance Java Programming Mcq Pdf

1)  From the following statements, which is a drawback for Applet? 
a. It works at client side so less response time
b. Secured
c. It can be executed by browsers running under many platforms, including Linux, Windows, and Mac Os etc.
d. Plugin is required at client browser to execute applet

Correct!

Wrong!

2)  What invokes immediately after the start() method and also any time the applet needs to repaint itself in the browser? 
a. stop()
b. init()
c. paint()
d. destroy()

Correct!

Wrong!

3)  Which method is called only once during the run time of your applet? 
a. stop()
b. paint()
c. init()
d. destroy()

Correct!

Wrong!

4)  When an applet is terminated, which of the following sequence of method calls take place? 
a. stop(),paint(),destroy()
b. destroy(),stop(),paint()
c. destroy(),stop()
d. stop(),destroy()

Correct!

Wrong!

5)  Which is a special type of program that is embedded in the webpage to generate dynamic content? 
a. Package
b. Applet
c. Browser
d. None of the above

Correct!

Wrong!

6)  What is used to run an Applet? 
a. An html file
b. An Applet Viewer tool(for testing purpose)
c. Both A & B
d. None of the above

Correct!

Wrong!

7)   Which is the correct order of lifecycle in an applet? 
a. Applet is started,initialized,painted,destroyed,stopped
b. Applet is painted,started,stopped,initialized,destroyed
c. Applet is initialized,started,painted,stopped,destroyed
d. None of the above

Correct!

Wrong!

8)  Which method is used to suspend threads that don’t need to run when the applet is not visible? 
a. destroy()
b. paint()
c. stop()
d. start()

Correct!

Wrong!

9)  When an applet begins, in which sequence will the AWT call the methods? 
a. init(),paint(),start()
b. Start(),paint(),init()
c. intit(),start(),paint()
d. paint(),start(),init()

Correct!

Wrong!

10)  Which method is first Called for any applet when it starts its execution? 
a. void init()
b. void destroy()
c. boolean isActive()
d. None of the above Faculty of D

Correct!

Wrong!

11)  java.applet defines how many interfaces? 
a. 2
b. 3
c. 4
d. 5

Correct!

Wrong!

12)  Which applet java.awt.component class provides the life cycle method? 
a. public void paint(Graphics g)
b. public void destroy()
c. public void stop()
d. public void init()

Correct!

Wrong!

13)   Which is invoked after the init() method or browser is maximized? 
a. public void start()
b. public void paint(Graphics g)
c. Public void stop()
d. Public void init()

Correct!

Wrong!

14)  Which of these functions is called to display the output of an applet?
a. display()
b. paint()
c. displayApplet()
d. printApplet()

Correct!

Wrong!

15)  Which of these methods can be used to output a string in an applet? 
a. display()
b. print()
c. drawString()
d. transient()

Correct!

Wrong!

16)  Which of these methods is a part of the Abstract Window Toolkit (AWT) ? 
a. display()
b. paint()
c. drawString()
d. transient()

Correct!

Wrong!

17)  Which of these operators can be used to get run time information about an object? 
a. getInfo
b. Info
c. instanceof
d. getinfoof

Correct!

Wrong!

18)  What does AWT stand for? 
a. All Window Tools
b. All Writing Tools
c. Abstract Window Toolkit
d. Abstract Writing Toolkit

Correct!

Wrong!

19)  Before we try to write applets, we must make sure that Java is installed properly and also ensure that either the java is installed properly and also ensure that either the java …………….. or a java-enabled browser is available.
a. viewer( )
b. appletviewer( )
c. appletrunner( )
d. browserviewer( )

Correct!

Wrong!

20)  We can change the text to be displayed by an applet by supplying new text to be displayed by an applet by supplying new text to the applet through a ……………………… tag. 
a.
b.
c.
d.

Correct!

Wrong!

11)  The ……………….. attribute of applet tag specifies the amount of horizontal blank space the browser should leave surrounding the applet. 
a. SPACE=pixels
b. HSPACE=piexls
c. HWIDTH=piexls
d. HBLANK=pixels

Correct!

Wrong!

22)  Which is a required attribute that gives the name of the file containing your applet’s compiled .class file? 
a. CODE
b. CODEBASE
c. ALT
d. NAME

Correct!

Wrong!

22)  Which is a required attribute that gives the name of the file containing your applet’s compiled .class file? 

Correct!

Wrong!

23)  The class at the top of the AWT hierarchy is
a. Component
b. Window
c. Container
d. Frame

Correct!

Wrong!

24)  Which package provides many event classes and Listener interfaces for event handling? 
a. java.awt
b. java.lang
c. java.io
d. java.lang

Correct!

Wrong!

25)  Name the class which is used to represent a GUI application window, and is optionally resizable and can have a title bar, an icon. Select the correct answer in the following. 
a. Window
b. Panel
c. Dialog
d. Frame

Correct!

Wrong!

26) What is JDBC? 
a. JDBC is a java based protocol.
b. JDBC is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.
c. JDBC is a specification to tell how to connect to a database.
d. Joint Driver for Basic Connection

Correct!

Wrong!

27) Which of the following manages a list of database drivers in JDBC? 
a. DriverManager
b. JDBC driver
c. Connection
d. Statement

Correct!

Wrong!

28)  Applet works at the client side so less response time 
a. True
b. False

Correct!

Wrong!

29)  The APPLET tag is used to start an applet from both an HTML document and from an applet viewer. 
a. True
b. False

Correct!

Wrong!

30)  All Applets must import java.applet and java.awt. 
a. True
b. False

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

22517 (2)

I got %%score%% of %%total%% right

%%description%%

%%description%%

Loading…

Advance Java MCQ Questions and Answers

Advanced Java Programming Pdf (Download)

Students Also Search for:

First Year Basic Science MCQ (View Here)

For Free Mock Test (View Here)

Msbte News Social accounts

We provide regular updates about msbte on our social accounts For latest msbte diploma updates you can follow our page on Instagram @msbtenews and Facebook @msbtediplomaupdates. we solve your queries by message on our social accounts so do follow our social accounts if you have any queries related to diploma and engineering courses. 

Thankyou for Visiting Msbte News.

Msbte News is created to help msbte diploma students to find study resources, which are very much needed for diploma students while preparing for the exam. msbtenews.com provide polytechnic solved question papers which are provided by msbte.org.in. with these msbte polytechnic model answer paper students gets a rough idea about paper pattern and marks distribution.

LEAVE A REPLY

Please enter your comment!
Please enter your name here