II BCA Java One Word 2023 New
II BCA Java One Word 2023 New
2. The java ________ is used for the execution of the source code. (K2)
(a)Interpreter (b) Compiler (c) Assembler (d) Byte Code
Ans: (a) Interpreter
4. Every java application program must include the _________ method. (K1)
(a) void () (b) main () (c) float () (d) long ()
Ans: (b) main ()
9. Which identifier that denotes a storage location used to store a data value? (K1)
(a)Variable (b) Data (c) Constant (d) Value
Ans: (a) Variable
13. The do-while loop repeats the set of code at least ________ before
the condition is tested. (K1)
(a) Once (b) twice (c) thrice (d) fours
Ans: (a) once
14. Which keyword halts the execution of the current loop and force control out of
the loop. (K1)
(a) break (b) switch (c) continue (d) goto
Ans: (d) goto
19. Methods with same name but different argument list are called ______
methods. (K2)
(a)Overloaded (b) Overriding (c) Inheritance (d) Multithreaded
Ans: (a) Overloaded
20. Which method is used in Java to free resources? (K1)
(a) destructor() (b) finalize() (c) abstract() (d) free()
Ans: (b) finalize()
22. _______ can be used to store a list of objects that may vary in size. (K1)
(a) Array (b) String (c) Vector (d) Wrapper Class
Ans: (c) Vector
25. Packages contain a set of classes in order to ensure that class names are
________. (K2)
(a) Unique (b) Different (c) Same (d) Valid
Ans: (a) Unique
26.A_______ can be used to store a list of objects that may vary in size. (K2)
(a) Vector (b) Object references (c) Primitive data type (d) Primitive
Ans: (a) Vector
27. Which of those keywords can be used to prevent method overriding? (K1)
(a) Static (b) Constant (c) protected (d) Final
Ans: (d) Final
29. Which class that is to be put in the package & declare it_____ . (K1)
(a) private (b) public (c) protected (d) static
Ans: (b) public
30. Interface are used as_______ whose properties are inherited by class. (K2)
(a) constant (b) subclass (c) extend (d) super class
Ans: (d) super class
34._______ are the wrongs that can make a program go wrong (K2)
(a)Errors (b) interface (c) inheritance (d) multithread
Ans: (a) Errors
37. Identify Which one of these is a super class of all exceptional type class? (K1)
(a) String (b) Runtime exception (c) Throwable (d) Catchable
Ans: (c) Throwable
39. Find out which one is related to hit the exception ?(K1)
(a) Find the problem (b) Inform that an error has occurred
(c)Receive the error information (d) Take corrective actions
Ans: (a) Find the problem
41. Which of these methods can be used to output a string in an applet? (K1)
(a) display (b) print()
(c) drawString() (d) transient()
Ans: (c) drawString()
43. Which of these classes are used by character streams output operations? (K1)
(a) input stream (b) writer
(c) read stream (d) input/output stream
Ans: (b) writer
44. Which of these classes is used to create an object whose character sequence is
mutable? (K1)
(a) string (b) string buffer() (c) write() (d) read()
Ans: (b) string buffer()
45. The ______ class implements a single-line text-entry area, usually
called an edit control. (K2)
(a) TextComponent (b) setText (c) getText (d) TextField
Ans: (d)TextField
46. The Applet address on the web, this address is known as ______. (K2)
(a) Uniform Resource Locator (b) Applet tag (c) ULR (d) Applet
Ans: (a) Uniform Resource Locator
47. Which method is called only once during the run time of your applet? (K1)
(a) stop () (b) init() (c) paint() (d) destroy()
Ans: (b) init()