BSC - CBCS Pattern . Sem - 6
Computer Science I ( Core Java )
Question & Answer Time: 1 Hours
Computer Science I
Question & Answer
- All Questions are compulsory.
- Our team provided answer sheet to get help up coming exam.
- Our Expert team given all answered .
- int
- long
- byte
- float
1. int
- Integers
- Floating- point numbers
- Both Integers and Floating - point numbers
- non of these
3. Both Integers and Floating - point numbers
- break
- return
- exit
- continue
4. continue
- if
- if-else
- switch
- do-while
4. do-while
- exit ()
- break
- continue
- return
1. exit()
- x.delete()
- x.finalize()
- Runtime.getRuntime().gc()
- Only the garbage collection system can destroy an object
4. Only the garbage collection system can destroy an object
- Compile time polymorphism
- Execution time polymorphism
- Multiple polymorphism
- Multilevel polymorphism
1. Compile time polymorphism
- Polymorphism
- Encapsulation
- Abstraction
- Inheritance
3. Abstraction
- super.(void);
- superclass.();
- super.A();
- super();
4. super();
- super
- this
- extent
- extends
1. supar
- pkg
- Pkg
- package
- Package
3. package
- Public
- Protected
- No Modifier
- all of these
4. all of these
- Public
- Protected
- Private
- No Modifier
1. Public
- import pkg.
- Import pkg.
- import pkg. *
- Import pkg.*
3. import pkg.*
- interface
- Interface
- intf
- Intf
1. interface
- import
- Import
- implements
- Implements
3. implements
- class
- object
- variable
- method
2. object
- try
- finally
- thrown
- catch
3. thrown
- RuntimeException
- Error
- Exception
- ParentException
2. Error
- finally
- throw handler
- default handler
- java run time system
3. default handler
- finally
- try
- catch
- throw
1. finally
- ArithmeticException
- MathException
- IllegalAccessException
- None of these
1. ArthimeticException
- ArithmeticException
- ArrayException
- ArrayIndexException
- ArrayIndexOutOfBoundsException
4. ArrayIndexOutOfBoundsException
- Error
- Exception
- RuntimeException
- All of these
2. Exception
- Thread(Runnable a, String str)
- Thread(int priority)
- Thread(Runnable a, int priority)
- Thread(Runntable a, Thread Group t )
1. Thread(Runnable a, String str)
- yield()
- notify()
- wait(0
- Thread.killThread()
3. wait()
- display()
- paint()
- displayApplet()
- PrintApplet()
2. paint()
- display ()
- paint()
- drawString()
- transient()
2. paint()
- getInfo
- Info
- instanceof
- getinfoof
3. instanceof
- (A) draw()
- (B) update()
- (C) showo ()
- (D) paint ()
B. update()
- (A) Window
- (B) Frame
- (C) Panel
- (D) Container
C. Panel
- (A) public void drawRect(int x, int y, int width, int height)
- (B) public abstract voidfilRect(int x, int y, int width, int height)
- (C) public abstract void drawLine(int x1, int y1, int x2, int y2)
- (D) public abstract void drawOval(int x, int y, int width, int height)
(A) public void drawRect(int x, int y, int width, int height)
- (A) Button,List,MenuItem
- (B) Button,Checkbox,Choice
- (C) Scrollbar,Component,Button
- (D) None of these)
(A) Button,List,MenuItem
- (A) stop()
- (B) paint()
- (C) init()
- (D) destroy()
(C) init()
- (A) stop(),paint(),destroy()
- (B) destroy(),stop().paint()
- (C) destroy(),stop0
- (D) stop(),destroy()
(D) stop(),destroy()
- (A) Package
- (B) Applet
- (C) Browser
- (D) None of these
(B) Applet
- (A) Bytecode is executed by JVM
- (B) The applet makes the Java code secure and portable
- (C) Use of exception handling
- (D) Dynamic binding between objects
(A) Bytecode is executed by JVM
- (A) 0
- (B) Not a Number
- (C) Infinity
- (D) Run time exception
(C) Infinity
- (A) Array-sort()
- (B) Arrays.sort()
- (C) Collection.sort()
- (D) System.sort())
(B) Array.sort()
- (A) Method overloading
- (B) Method overriding
- (C) Method hiding
- (D) None of these
(B) Method overriding
- (A) static
- (B) constant
- (C) protected
- (D) final
(D) final
- (A) super(void);
- (B) superclass.();
- (C) super.A();
- (D) super();
(D) super();
- (A) stop()
- (B) sleep()
- (C) join()
- (D) call()
(B) sleep()
- (A) 0 & 256
- (B) 0 & 1
- (C) 1 & 10
- (D) 1 & 256
(C) 1 & 10
- (A) A thread can be formed by implementing Runnable interface only
- (B) A thread can be formed by a class that extends Thread class
- (C) start() method is used to begin execution of the thread
- (D) run() method is used to begin execution of a thread before start() method in special cases
(D) run() method is used to begin execution of a thread before start() method in special cases
- (A) get()
- (B) Thread Priority()
- (C) getPriority()
- (D) getThreadPriority()
(C) getPriority()
- (A) Choice
- (B) List
- (C) Labels
- (D) Checkbox
(C) Labels
- (A) inheritance
- (B) association
- (C) Both A & B
- (D) None of these
(B) association
- (A) Container
- (B) Window
- (C) List
- (D) Menultem
(C) List
- (A) Applet is started, initialized, painted, destroyed, stopped
- (B) Applet is painted, started, stopped, initilaized, destroyed
- (C) Applet is initialized,started,painted,stopped,destroyed
- (D) None of these
(C) Applet is initialized,started,painted,stopped,destroyed