Paper Tayyari

Lecture 20: Applets

MCQs, short and long questions from lecture 20.Lecture 20 ki MCQs, short aur long sawal.

5 MCQs · 2 short questions · 5 MCQs from past papers5 MCQs · 2 short sawal · 5 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/5
– correctsahi
1.
★ Final term Fall 2008

In an applet class definition, the----------method takes the place of the constructor.

  1. Apaint();
  2. Bmain();
  3. Cinit();
  4. Drun() ;

init() is called once after the applet is created, so it does the constructor-like setup.

2.
★ Final term 2012

Which of the following method of an Applet is called every time when page is minimized?

  1. Astart()
  2. Binit()
  3. Cstop()
  4. Ddestroy()

stop() is called when the applet page is left or the browser is minimized.

3.
★ Final term 2012

Which of the following method takes the place of constructor in an Applet?

  1. Arun()
  2. Bmain()
  3. Cinit()
  4. Dstart()

init() does the one-time setup of an applet.

4.
★ Final term past paper

Which of the following applet method is called once in applet life cycle?

  1. Ainit( )
  2. Bstart( )
  3. Cpaint( )
  4. Dstop( )

init() runs once when the applet is loaded; start, paint and stop can run many times.

5.
★ Final term past paper

Which of the following is NOT true for applets?

  1. AThey are independent of the operating system.
  2. BThey are embedded in a Web page.
  3. CThey can be run from a browser.
  4. DThey have access to the client's file system.

The applet security sandbox blocks access to the client's file system.