TELANGANA SOCIAL WELFARE RESIDENTIAL DEGREE COLLEGE FOR
WOMEN-ARMOOR
III,MSTCS V-SEM II -INTERNAL ASSESMENT II. Fill-in-the-blank questions10×1/2=5M
_______________________________________________________________ [Link] of the following keyword is used to throw an exception manually______________
Subject : Programming in Java Max Marks: 15m [Link] ____________ block is always executed whether the exception occur or not
Name ______________________________ [Link] method is used to begin execution of a thread is ________________________
Hall Ticket Number_____________________________ 4. The Thread priorities in java range from _________to ___________
[Link] CHOICE QUESTIONS 10×1/2=5M [Link] are programs that run inside a _________________.
1. A Thread can be executed using___________ method. ? [ ] [Link] stands for ___________.
A) Start( ) B) Runnable ( ) [Link] components are ________________dependent.
C) Run ( ) D) Dead [Link] Swing table that represents a table is__________.
2. The Thread with___________priority contains more CPU access time ? [ ] [Link] Top level container in swing _______________.
A) Highest B) Min-max [Link] __________class is used to create a checkbox in AWT.
C) Lowest D) All of the above
3. Which of the following is checked exception? [ ] [Link] THE FOLLOWING QUESTIONS 5M
A) ArithmeticException B) NullPointerException [Link] is exception ?
C) IOException D) ArrayIndexOutOfBoundsException [Link] multithreading?
[Link] block is always executed whether an exception occurs or not ? [ ] [Link] is Synchronization?
A) try B) catch C) finally D) throw [Link] Applet ?
5..What happens if an Exception is not handled in a program? [ ] 5. Define Swing ?
A) Program continues normally B) Program terminates abnormally
C) Error ignored automatically D) JVM repairs error
6._______________is a program divided into subprograms and executed simultaneously.[ ]
A) Multi processing B) Multitasking
C) Multi threading D) None of the above .
7. ______________ method is used to draw strings in an applet? [ ]
A)intit() B)Start( ) c)paint( ) D)Stop()
8. Every Event object has the ? [ ]
A) getSource( ) B) getAction Command
C) getTimeStamp D)getWhen( )
9.A method is used for re-painting an applet is ? [ ]
A) paint( ) B) draw ( )
C) repaint( ) D) redraw( )
[Link] of the following is used to develop an applet program ?[ ]
A)AWT B)Swing C) Both A and B D) None of these