0% found this document useful (0 votes)
25 views8 pages

Java 4th SEM SOLVED QUESTION PAPER

The document appears to be an examination paper for a Java Programming course, specifically for the BCA (Sem.-IV) Examination, 2024-25. It includes instructions for candidates on how to fill out the OMR answer sheet and details about the exam structure, including the number of questions and evaluation criteria. Various questions related to Java programming concepts are presented, including method nesting, inheritance, and multithreading.

Uploaded by

mrvenomousx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views8 pages

Java 4th SEM SOLVED QUESTION PAPER

The document appears to be an examination paper for a Java Programming course, specifically for the BCA (Sem.-IV) Examination, 2024-25. It includes instructions for candidates on how to fill out the OMR answer sheet and details about the exam structure, including the number of questions and evaluation criteria. Various questions related to Java programming concepts are presented, including method nesting, inheritance, and multithreading.

Uploaded by

mrvenomousx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

T

T
PU

PU

PU

PU

PU
<br>
AJ

AJ

AJ

AJ

AJ
R

R
R

R
KA

KA

KA

KA
OMRAnswer Sheet No.
A

A
Question Booklet Number
IV

IV

IV

IV
D

D
3782548
T

T
4038
U

U
P

P
AJ

AJ

AJ

AJ

AJ
R

R
BCA (Sem.-IV) Examination, 2024-25
R

R
A

A
Booklet Series
AK

AK

AK

AK
D
IV

IV

IV

IV
Java Programming
D

D
Paper-I
T

T
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
(To be filled by the Candidate
/f ftei tareii a)
R

R
R

AR

AR

AR

AR
Roll No. (in figures) [Time :2: 00 Hours
AK

AK

AK

AK
3gsujs (3iaai ) 243Y9Oo [ HH : 2: 00 Eu
IV

IV

IV

IV
D

D
TMaximum Marks : 50
Roll No. (in words)
T

T
PU

PU

PU

PU

PU
Name
AJ

AJ

AJ

AJ

AJ
of Examination Centre
uI UEKAND
R

R
Signature of Invigilator
R

AR

AR

AR

AR
AK

AK

AK

AK
IV

IV

IV

IV
D

D
Instructions to the Examinee :
1. Do not open the booklet unless you are
asked to do so.
T

T
PU

PU

PU

PU

PU
2.
The booklet contains 100 questions. 2. He-9tror 100 2Tqttereff fb 75
AJ

AJ

AJ

AJ

AJ

Examinee is required to answer any


R

75 questions in the OMR Answer


R

AR

AR

AR

AR

Sheet provided and not in the


AK

AK

AK

AK

question booklet. In case Examinee


attemptsmore than 75 Questions,
IV

IV

IV

IV
D

first 75 attempted questions will be


evaluated. All questions carry equal
marks.
T

3. Examine the Booklet and the OMR


PU

PU

PU

PU

PU

Answer-Sheet very carefully before you


AJ

AJ

AJ

AJ

AJ
R

proceed. Faulty question booklet due to


R

AR

AR

AR

AR

missing or duplicate pages/uestions or


AK

AK

AK

AK

having any other discrepancy should be


IV

IV

IV

IV
D

immediately replaced.
(Remaining Instructions on next page)
T

T
PU

PU

PU

PU

PU

This pdf is crafted by @DIVAKAR_RAJPUT


AJ

AJ

AJ

AJ

AJ

Page 1 of 8
R

R
<br>

T
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
R

R
1.
R

R
What is method nesting (or nested
subclass override annalmethod

KA

KA

KA

KA
a
Can
methods) in programming?
A

A
IV

IV

IV

IV
inherited from its superclass?
D

D
(A) Defining a class within
another only prevents
class (A) Yes, final
(B) Calling- a method from within modification of variables
T

T
U

U
P

P
will issue a warning
another method (B). Yes, but it
AJ

AJ

AJ

AJ

AJ
R

R
(cY Defining
method inside methods cannot be
R

R
( No, final
A

A
AK

AK

AK

AK
another method Overridden
IV

IV

IV

IV
(D) Creating an object within a
D

D
(D) Only the subclass
if is also
method
Which keyword is used in Java to declared as final
T

T
PU

PU

PU

PU

PU
indicate that a class inherits from In the statement class Dog extends
AJ

AJ

AJ

AJ

AJ
R

R
another class Animal f...}, which class is the
R

AR

AR

AR

AR
AK

AK

AK

AK
(A) implements superclass?
IV

IV

IV

IV
BY extends
D

D
(A) Dog
(C) inherits
Extends
Gi (D) new
T

T
Animal
A)
PU

PU

PU

PU

PU
Can a class inherit from multiple
AJ

AJ

AJ

AJ

AJ
(D) Both Dog and Animal
R

R
classes directlyJava? in
R

AR

AR

AR

AR
a
(A) Yes, using comma-separated Z For subclass method to correctly
AK

AK

AK

AK
class names with the extends
IV

IV

IV

override a IV
superclass method, which
D

D
keyword
of the following must be
the same?
(B) Yes, using the. implements
(A) Only the method name
T

T
keyword
PU

PU

PU

PU

PU
(c No
AJ

AJ

AJ

AJ

AJ

(B) The method name and the


R

R
R

AR

AR

AR

AR

(D) Both (A) and (B) return type


AK

AK

AK

AK

Which keyword used is in a


subclass
IV

IV

IV

IV

he method name, the


D

method to explicitly call the


superclass's version of an overridden parameter list (number and
.
method? types of parameters), and the
T

T
PU

PU

PU

PU

PU

(A) this
AJ

AJ

AJ

AJ

AJ

return type
super
R

,(BY
R

AR

AR

AR

AR

(D) The method name and the


base
AK

AK

AK

AK

(C)
access modifier
IV

IV

IV

IV

(D) All above


D

4038\D\2025 [3] P.T.0.


T

T
PU

PU

PU

PU

PU

This pdf is crafted by @DIVAKAR_RAJPUT


AJ

AJ

AJ

AJ

AJ

Page 2 of 8
R

R
T

T
<br>

PU

PU

PU

PU

PU
J2.
AJ

AJ

AJ

AJ

AJ
4038\D12025
11. 10.
R

R
(A)
synchronization
What
B) (A) to (B) (A) C) (B)
R

R
(D) (C) Which torun Which
(D) (C) (C) executed indicates
(D) (e) (B) (A) of What (D) (A) of What

KA

KA

KA

KA
D
begin
a a
To or can To multithreaded
To initiate() execute() start() run() Waiting Blocked Running Terminated Finished
Dead Java
Runnable
Java

A
Stopped Terminated

of To multithreaded

is
Runnable
is
New Running
without
is
IV

IV

IV

IV
Thread
multithreaded
reduce
inconsistent ensure improve
the the but of the the
D

D
thread?
simplify aCcess
by that the thread?
final
primary execution first
causing the is following
class the
the that not state state
the in CPU?
shared Java?
memory applications thread
programs

the states multiple method currently


T

T
performance

data goal in in
U

U
application

of thread
the the
P

P
a
AJ

AJ

AJ

AJ

AJ
design

footprint
corruption resources

of thread? is life life


R

R
threads eligible
thread is being cycle
R

R
state cycle
used
A

A
AK

AK

AK

AK
of of
IV

IV

IV

IV
[4]
D

D
13.
8. 15. 19.

(A) What (B) AY strategy


Which

(D) KC, (B) (A) cycle the Which (D)


Lej<applet>

(B) (A) web used Which


(D). (C) (B)A (D) (C)

Increase Allow consistent Always


run() init() paint() start() first <embed> <java> <script> page? graphical A.Java handles
Aserver-side
browser page typically that A shared
Use that multiple

is
T

T
of to small standalone of
PU

PU

PU

PU

PU
of HTML
a
a
Java method
embed runs
Java only hold to the
the
AJ

AJ

AJ

AJ

AJ
prevent
and resources
library threads
HTTP locks acquire
following
Java the
R

R
applet?
following tag user embedded
on applet? a
locks
order
runs
R

AR

AR

AR

AR
a single
called Java the priority
Java was interfaces used
requests
program
Java
simultaneously
deadlocks?
AK

AK

AK

AK
desktop
within
IV

IV

IV

IV
program
traditionally
to locks is
methods applet
for lock
a
D

D
application

in in of common
building
the a a that
threads acquire

for
in that web web in
life
is a is all
T

T
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
4038\D\2025
R

R
19. 18,
1
R

AR

AR

AR

AR
(D) (C) (B) (A) What
(D) (C) AS (non-final)
Can (D) (C) (B (A) keyword declaring What
AK

AK

AK

AK
0
IV

IV

IV

called
A overridden

A
(no not the A keyword.
is
implementation

A
is
same Only also Yes, extended non-final
Yes, participate
No, a does To faster
To being
IV
To from To
D

D
method method method

method method abstract


declared
an final indicate optimie prevent
make is
have
if
final but a not anywhere in a
when abstract
package
final final class? execution overridden the
the only
Java?o
method
class, class return
itself the
that that that primary

an by body) an superclass
in
keyword
with if class that the method
T

T
that inheritance
classes
subclasses
the
PU

PU

PU

PU

object
is implementation

is has
method
the but extend
any in with
PU
method
automatically declared
by
AJ

AJ

AJ

AJ

AJ
the (body) superclass can
the method
the
cannot
a it value
purpose
R

subclasses accessible
cannot
is and complete extenda
program

the
abstract
in is another
R

AR

AR

AR

AR

created method
cannot

Jva?
at from
AK

AK

AK

AK

does with final

be
but the
be all for
is of
IV

IV

IV

IV

[5]
D

24. 23. 22. 20.


D l.

(D (C). (B) (A) explicitly

member,
What
P (C) (B) (A)
widest Which
(D) (C) (A) modifiers What
(D) (B) (A) class Which
(DY
(C) (B) (A) a: the A
abstract
T

abstract
can To To To virtual
PU

PU

PU

PU

PU

default Java
as
interfaces, accessibility
protected private public public default protected private methods variable static abstract interface Parentheses
Curly Semicolon Colon

is access
To keyword
level optimize is
AJ

AJ

AJ

AJ

AJ

specify define abstract


specified? when the be code control
in the braces
R

overridden'
method

accessibility o
of Java?r keyword
R

AR

AR

AR

AR

modifier
no accessibility?

;
the purpose
is
AK

AK

AK

AK

whether
the in )
access
variables,
the
Java?
used (}
IV

IV

IV

IV

performance data is
of
D

provides
visibility
and declared

CEP.T.O.
modifier to
level a type
of declare ends
classes,
method
access

with with
of of
T

the and
and
PU

PU

PU

PU

PU

is a a of a
This pdf is crafted by @DIVAKAR_RAJPUT
AJ

AJ

AJ

AJ

AJ

Page 3 of 8
R

R
<br>

T
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
4038\D2025

7.
R

R
26. 25,
(W
R

R
an

KA

KA

KA

KA
bounds
(D) (C) (A) 5 What
(D) (C) (A) in What (D) (C) (A) variable? integers How
in element
a
(D) (C) (8) A
restrjctive
of What

A
immediately
The execution
The BoundsException
throw The value The an initialized

It The Java Java

IV

IV

IV

IV
1 numbers={0, numbers=int[5] numbers=new
public default, public private,
array
happens
is numbers=new

do public private, private public,


D

D
depends
program for the ie
program size array? and you access
program (e.g.,
a the
program

an Java
at index
assign
to
without of an of create
protected,
least order

size if on the private, protected, default, modifiers,

0 index
will
ArrayIndexOutOf
for array you of restrictive?

the 0,
will
T

T
5)?
how array int[5]; int; it of
U

U
will
at integers)
return

try 0,
new;
to an restrictiveness
P

P
any
will that first
compile
the
AJ

AJ

AJ

AJ

AJ
runtime (e.g., the 0, array
minus protected, protected, from
error to
R

R
continue
a element 0}; numbers

default is array default, default,


R

R
access
crásh
index out
A

A
most
but of
AK

AK

AK

AK
1
of is 5
IV

IV

IV

IV
[6]
D

D
31. 30. 29.
t
U
(D) (C) a the (D) (B) (A) two Which
(B) A) specific dimensional
How (D) (C) (B) Java? array way Which

(c)
er
Which
A String?
T

T
method). character
char() method) index() String getChar() class) charAt() join() concat() append() add() String
3]={{1,
{4, int int (4, int[]II]
5, Both None
int int to
PU

PU

PU

PU

PU
int[j[]
method
method
6}; values
Can

[J[] matrix
of declare
of
AJ

AJ

AJ

AJ

AJ
5, numbers[][]={{1,

numbers[][]=new 5, integers
method) objects? (A) (A) the
(Not 6}}; 6}};
R

R
numbers={1,
(Not numbers={{1,
you matrix;
array
(Method

at and and
R

AR

AR

AR

AR
following
is 2, during

a (Not
a is used . [J[);
a
a 3},
AK

AK

AK

AK
initialize
standard specific used (B) (B) name
standard
of two-dimensional
IV

IV

IV

IV
to (4, declaration?

a of integers
D

D
concatenate

to 5, is
the 2, matrix
standard
index 6}};*
a
retrieve
a
String string String 2, 2, 3}, correct
int[2]
with two
3}, 3}, {4,
in
T

T
in
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
R

R
R

AR

AR

AR

AR
36.
AK

AK

AK

AK
4038\DI2025

35. 34. 33.


IV

IV

IV

(D) (C) B (A) of


MAX_SIZE way Which
(D) (C) (A) method?
value number command

If (D)
4er(B) (A) in that What
(D) (AS IV (B) (A) passed HOw
D

D
100? you the
int const null "operator" "number" "srting" Object[] stringl] char[] int[] holds
static final
to run main
is
running before
By main
to As arguments() Though
are
MAX_SIZE of of the the to
declare
the
operator,
using an a
final int int args[1].inside

java a
command-line method
comma-separated a command-line

of method? main
T

T
array Java
MAX_SIZE=100;
following Java data the the a
PU

PU

PU

PU

MAX type special


PU
int a
AJ

AJ

AJ

AJ

AJ
program method program?
a
MyProgram
class
Program type
final=100;
MAX
_SIZE=100; what specific
of
R

int constant
R

AR

AR

AR

AR

strings` method

with is of name
will arguments

the arquments
AK

AK

AK

AK

SIZE=100;

the with
the keyword

a
IV

IV

IV

IV

correct

value name
be string array when to string called
D

main
the the the

[7]

49: 39. 38. 37.


(

Oer
T

AAS
PU

PU

PU

PU

PU

What not What (D) Which


(D) (Y (B) Conversion)
Which
(A) in types converting
(D) (C) instance
(B) (A) data
(A) of (D) (C)
4e
AJ

AJ

AJ

AJ

AJ

Java
explicitly

long
int double Type Implicit Explicit variables
An 0 0.0 null Array
int Class String type
R

Narrowing
explicit
double
to is
of is of
R

AR

AR

AR

AR

called?

i=5; a the error variable


I=100; the the the
mismatch
larger in
AK

AK

AK

AK

d=10.5; d=10; a process


double in following casting
casting
smaller
initialized?
Java?
followig
IV

IV

IV

IV

Java? must
casting default
conversion will
D

byte primitive

int occur;
of
d=i; of be type
int
(widening)

esoS
b=l;
i=(int)
i=d;

(narrowing
is
an
primitive
automatically
initialized
value e 1s
a
int primitive
T

example
data
instance
PU

PU

PU

PU

PU

if
PT.0.
This pdf is crafted by @DIVAKAR_RAJPUT of it
AJ

AJ

AJ

AJ

AJ

type
d; data
an
is
Page 4 of 8
R

R
<br>

T
PU

PU

PU

PU

PU
4038\D2025
AJ

AJ

AJ

AJ

AJ
43.

D
R

R
X.
(C) (B) (A) without
a What
(C) (B) A a
R

R
double
GD) variables
How (D) (ey (B) (A) Variable What

KA

KA

KA

KA
single
thrown
A A nearest automatically

and The with the The


compile-time
to All int int int

A
runtime
happens when A A is and The on assigned
The
can

IV

IV

IV

IV
declare

of x, x; x,
explicit compile-time
explicitly hannens
decimal
line?
the be
program runtime

its
D

D
integer
program

truncated
value
the y=10,
int y, of yOu
cannot variableremains

variable
without

the you data


Z;
double
y;
exception
part
casting?

to
if
you
multiple
above

int
- same
try
assigned
be type
a
default when
will Z; exception
initializing

error
rounded

an z;
declare
to used
are use error is
T

T
will

T
value
of compile,
try you
U

U
data automatically
int int
P

P
the until value
will valid
the occurs
unassigned

to
AJ

AJ

AJ

AJ

AJ
variables
compile,
declare
will variable
multiple
it?
occur to type
a
R

R
double
will assign occurs
ways value based
R

R
the and
be
A

A
be on
AK

AK

AK

AK
a
[8]
IV

IV

IV

IV
47:
D

D
46. 45.
.E) 44
(C) (B) (A) casting What
(D) (CY (B) (A) primitive
Can (D) (B) (A) printin num1;+ double type
double the What
(C) (B) (A) assigned
What

Both Widening Primitive Implicit Convert


you
of
following
int) Yes reference
No, wrapper
Yes, Yes,
are is all 8 7.0 8.0 7.5 0 1 true boolean
T

T
in the wrapped will is
PU

PU

PU

PU

PU
uninitialized (result);

Java? null but


assign result=num2;
num1=7.5;
the
(A) null data
the
Java
be to
AJ

AJ

AJ

AJ

AJ
primitive

and and and and


initial
null can only
an
class the
R

R
is code
twO
type type if
the null
R

AR

AR

AR

AR
explicit
to only in if it
(C) narrowing reference.
will
value instance
value
(like its the is
type the
executes?
AK

AK

AK

AK
variables

main variables default (like


to not
default
automatically
be corresponding

primitive a int
IV

IV

IV

IV
automatically
casting Integer) variable
assigned int)? System.out. of explicitly
(e.g., num2=(int)
D

D
result variable
types
casting value
casting

value
0 type after
for for of
of to a of
T

T
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
R

R
4038\D2025

5.
R

AR

AR

AR

AR
59. 49. 48.
AK

AK

AK

AK
(D) (C) (B) (AY (B) SA
wrapper
What (D) (C) current
an What (D) (C) AB) (A) What
(D) (C) (B) String String following
What
IV

IV

IV

IV
System.out.printin

element A
D

D
Java To primitive
To primitive
To data To is The the The automatically

The is An happens
vector
A methods
An resizing dynamic
A store
A An An False True
define improve
extend
provide is overwritten
thrown
IndexOutOfBoundsException

size
class primitive
is s2="Java"; s1="Java";

oldest method
class
java.util.Vector
error will
classes element interface
types error
the a code
Vector's
equals to operations sequence

data data a
used itself be
custom

as way a primary element


when
for
at at
T

T
the
Vector array, that snippet?

the in returns
PU

PU

PU

PU

type types objects Java? is increased

for
a
list-like that
data
runtime: compile
PUthe
its (s1==s2);
AJ

AJ

AJ

AJ

AJ
performance functionality
not
data
to capacity)?
that
you
mathematical
implements
output
capacity
of
R

use type
operations
purpose
in false added, defines capable
elements in time
R

AR

AR

AR

AR

the try collection Java?


types
primitive
is
used
AK

AK

AK

AK

full
Vector
to of
IV

IV

IV

IV

and
(its add the
the
in of of of of to
D

is a
[9)

55. t3i 54. S3. S2.


d

(D) Java
(C) (B) Which
(D) (C) B} (A) interfaces

(D) (C) (B) (A) util


Can
to Which
T

(D) (C). (A) interface? indicate What


PU

PU

PU

PU

PU

import
package?
com.oracle
sun javax java API? Yes, Yes, one
the do Only interface keywords extends them multiple
No,
an import import import import interface inherits implements extends
AJ

AJ

AJ

AJ

AJ

keyword

is not an of
R

same other interface


that
the if an in all the
R

AR

AR

AR

AR

using with interface java.util.all; java.util,**; java.util.*;


have the keyword Java? all classes following
AK

AK

AK

AK

interface
root signature
interfaces
interface java.util; it
extended for is
commas
is
IV

IV

IV

IV

any
used
the
D

package
all can
extend
within
implementing

methods

but. is
implements can only
a by
intefaces
after by valid a
the multiple
the class
PT.0.
of listing
extend extend
T

with java.
PU

PU

PU

PU

PU

the first way


the an
This pdf is crafted by @DIVAKAR_RAJPUT to
AJ

AJ

AJ

AJ

AJ

Page 5 of 8
R

R
<br>

T
PU

PU

PU

PU

PU
4038\D\2025
AJ

AJ

AJ

AJ

AJ
(D) () 57. 5.
R

R
(C) (B) AY create
What
(D) (C)
(B
R

R
(A)' What
(D) (C)
(8) SA (GUIS)?
Which
(D) (C)

KA

KA

KA

KA
By by By Executor interface
building
(A) operations?
for Which
By Runnable and By sequentially
A An within
A B
are
running smallest Process
An java.ui java.graphics
Java.gui

A
creating extending
thread java.awt
using implementing
block lightweight is top-level java.util.io Java.nio
extending
java.io java.net
IV

IV

IV

IV
performing

instance a package

the
D

D
by independent
a
thread
graphical
package

the
Service
interfaced
in two
of in program
class
and code
a
implementing
Java? the unit package)
new the ForkJoinPool
contains
the primary operating in (Does

RecursiveTask
by that
sub-process;
of Java? input
provides
T

T
of
user_interfaces
thread
the Thread the
U

U
using not
P

P
is processing
AJ

AJ

AJ

AJ

AJ
Callable
ways
executed
program
java.lang. classes and
exist
R

R
pool system

and class
R

R
classes
the the
output
A

A
to the as
AK

AK

AK

AK
[10] for
a
IV

IV

IV

IV
.
D

D
O4 62. 61.
CBY 50.
(D) (C) (B) cause Which
(D)
(B) (A) "blocked"?
What
(D) (C) (A) that need WVhen

what (C) (B) (A) interface?

by
correct Which
yield() start() run()sleep() error The
a
eligible
put for a The CPU The execution
The star()
T

T
process() execute()
run(0 the
of resource does
to is
{...}} Runnable class {...}} Runnable class Thread
PU

PU

PU

PU

PU
thread class Runnable class implementing

you
the thread
to I/0 thread thread
and thread override
AJ

AJ

AJ

AJ

AJ
sleep. thread the way
of
following to to it extend MyRunnable
R

R
MyRunnable MyRunnable
mean
cannot
to
complete,
run {public
MyRunnable
the
R

AR

AR

AR

AR
primary
has (like
is
block? is will {public
{public
to
It waiting {public
AK

AK

AK

AK
actively
encountered
has for to the
proceed is a execute?
create
following
IV

IV

IV

IV
define
void
methods
not lock), a the
or
D

D
Thread
thread method
finished
void
currently
has to using void
implements implements
run(){...}}
implements

void
waiting acquire
the .extends
Runnable a
been
can to class,
run()
start() thread is
an the task you run()
be
T

T
it the
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
R

R
4038\D12025
R

AR

AR

AR

AR
56.
5. 9202
64.
AK

AK

AK

AK
(D) (C) (B} (A) keyword What
(D) (C) (A)
IV

IV

IV

Can
IV
Constructors?

(B) (D)
(A) type?
(B) Can
D

D
the To Superclass
To superclass
To of To class Only different
Yes, (method
have constructors
Yes, constructor
eY
No,
define access
the is in Only return return Yes, return Yes,
superclass

call
refer
a No, a
within the
class
if
but different
a a factory constructors constructor

the class if it
a to
purpose class class type, type
it
a static access overloading)
the type can
T

T
the a
class must
PU

PU

PU

PU

new constructor

constructor?
only
can
PU
as
constructor
can have
as not
AJ

AJ

AJ

AJ

AJ
current
method0
members
extends
parameter
constructor modifiers have
the have
of
R

if long have
have even
have
any
do
R

AR

AR

AR

AR

the they class


not
AK

AK

AK

AK

instance
only the valid
super() another
as multiple void
a
of of multiple

is
IV

IV

IV

IV

have
have return
they same
the the lists one used
D

Java
in
[11 a
]

69.Consider

8. 67.
T

(D)
(CY (B) (A) overloaded?
Are private public class:
PU

PU

PU

PU

PU

(C) (B) (A) the different Which


(D) (B) (A) static? Can
AJ

AJ

AJ

AJ

AJ

the Yes, parameter same


parameter same
Yes, No, access
No, types,
The The public, The The Only declared
static Yes, Yes,
of a
R

these
void No,
other
because because
of the
R

AR

AR

AR

AR

because
void name
constructor

because the return


class? for to
parameter

modifiers
or accesS
in constructors
methods if
AK

AK

AK

AK

name display private)


the inner
class
initialize
is following
overloaded the
lists types
method display(String order
as
IV

IV

IV

IV

private

one they they


of type following
D

static classonly

(int the classes


they modifiers
and
have
of
is have num) methods parameters)
list
method
static be
public considered
declared
different
have method cannot
different different
(number, membere
T

P.T.0. must
{...} contains
PU

PU

PU

PU

PU

and
the This pdf is crafted byin@DIVAKAR_RAJPUT text) (e.g.,
AJ

AJ

AJ

AJ

AJ

be ae
a in be Page 6 of 8
R

R
<br>

T
PU

PU

PU

PU

PU
4038\D\2025
Z0.
AJ

AJ

AJ

AJ

AJ
3. Orepaint) 2, 1.
R

R
What Which
R

R
method
(D) (B) (A) (D) (B) (A) request What
(C) (B) (A) applet's actual Which
(D) (C) (BY (A) active called

KA

KA

KA

KA
repaint()

A
run() start() inti() update() draw() paint() paint(Graphics render() draw() update() paint()
start() init()
IV
main(string
or each

IV

IV

IV
method drawing method

for
is that content applet
D

D
visible

a the time
Java the
typical and is on life
[]args)
applet
should
on responsible the
Application?

the rendering the applet


cycie
g)
T

T
web
U

U
Screen?

be you
P

P
entry method
AJ

AJ

AJ

AJ

AJ
becomes
redrawn? page?
R

R
cal| for
of
R

R
point
the
A

A
the
is
AK

AK

AK

AK
to
IV

IV

IV

IV
[
12] 74.
D

D
75.
m. 5.
(A) (Graphics What (D) (eY (B) (A)
indirectly nearly What
(D) (C) KB) (A) or when method Which

To (B)
(D) (e (B) (A) used? page,

display
(D)
start()
the
javas.swing.JApplet java.applet.Applet
java.awt.Component java.lang.Object update() paint() stop()
To the
T

T
<img> <applet> <div> <script>
variables
To user To processing
To presses
such
is is applet
of
PU

PU

PU

PU

PU
What
draw the all the
browser
that
the
handle extend?
AJ

AJ

AJ

AJ

AJ
and
initialize
interface
as g) primary
Java essential
perform
is is following
R

R
HTML method
and mouse
being
and called
R

AR

AR

AR

AR
Applet Applets
and
render user
tag is
AK

AK

AK

AK
components

calculations
role about
clicks
in base unloaded
IV

IV

IV

IV
is within
the
an in is
D

D
an a
interactions

of
background
traditionally
the directly

Applet? class

applet's applet's
and thè to Applet
lifecycle

a paint
that
close

web key
or
T

T
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
R

R
Z9. 28.
82. 81.
R

AR

AR

AR

AR
4038\DI2025
80. (O©
AK

AK

AK

AK
Which token? Which
(DÝ (DY (C) (B) (A) What
(D) (C) (B)
keyword?
(B) (A)
(C) (B) (A)
Java? What (D) (C) (B) of Which
(D
IV

IV

IV

a IV
D

D
=
separator Statement
A A Anamed system string operator class Literal Identifier Keyword
Boolean Character Floating-point Integer
type
public
+ directly
A meaning

is
of fixed
sequence reserved

a of of
the literal the the
of
literal
literal
literal
token
following
in memory
following following

value
T

T
literal the word
in
PU

PU

PU

PU

of Java?
PU
literal code characters
AJ

AJ

AJ

AJ

AJ
has
in that with
is isa is
R

location
Java?
value
an NOT
R

AR

AR

AR

AR

valid
example
appears
a
AK

AK

AK

AK

special
true a
Java Java.
IV

IV

IV

IV
D

in
[

13 -83.
]
86. 85. B4.
87.

es
T

A (C) (A) (C) BS


out.printIn("Hello!");
What Which Which
(B) (B) (A) of
(D) (B) (A) of Which
(D) (C) B) (A) braces (D) (D) (D) of
PU

PU

PU

PU

PU

an block a an
control
++
AJ

AJ

AJ

AJ

AJ

result=a+b; Compound Control Expression Declaration


String
System.out.println
"string"
while int int
int if
Declaration
Compound Control Expression main
operator
iteration
type
(Condition)

of of of
R

count=0; {} x=10;

the of the the


R

AR

AR

AR

AR

(condition)
is name
flow known code flow of flow
AK

AK

AK

AK

following following following

statemnent statement

statement
token
IV

IV

IV

IV

statement statement statement


statement statement
statement
statement statement

=
D

{...} enclosed

as "Alice";

{...} in in
is a: Java? is Java?
an ("Hello");

an an
in (or
is
Java? example

in
System.
in example example
T

P.T.0.
PU

PU

PU

PU

PU

block)
Java?

This pdf is crafted by @DIVAKAR_RAJPUT curly


AJ

AJ

AJ

AJ

AJ

Page 7 of 8
R

R
<br>

T
PU

PU

PU

PU

PU
4038\D\2025

90.
AJ

AJ

AJ

AJ

AJ
89.
88.
R

R
(D) (B) (A) object personName
Would variable
named
If (D) (C) (A) number name,
If
R

R
e) you 8) you
(D) (C) (A)
System.out.println
byte int

KA

KA

KA

KA
syntax
will Consider
None p1.personName
pl-> would Person.personName
name.size(); length(name); name. name;
a=200;
0
be

A
called
have A 200 b=(byte)
you Person
have how compile-time

IV

IV

IV

IV
named
of the
of
D

D
these
from personName
be length; characters

a
p1? access would outout
the
for for with an String
language

a
a; following
a
personName,

object
static
specific
a you (b); of
public variable error
the this
in
T

T
U

U
retrieve
variable) that
of
P

P
code? code,
like (This
AJ

AJ

AJ

AJ

AJ
value instance

Person
a string? named
R

R
C++)
(This class
R

R
how
the what
A

A
is of
AK

AK

AK

AK
[
14]
IV

IV

IV

IV
93. 92. 91.
D

D
(D) (B) (A) Virtual What
(D) (B) (A) keyword What
(D) (B) (A)
Java? What
(ej
Y
deployment
To bytecode environment
code To into TO Java To their
in from To programming
To To memory
To and preventing interfaces
To To interface
To
is
T

T
manage Machine
directly
the is store
PU

PU

PU

PU

PU
define
machine
compile
the specify make
include
organize define
the
provide
Development

fully
current
other in the
manage
controlling
AJ

AJ

AJ

AJ

AJ
primary a purpose

can Java allocation


complied
R

R
classes
the execute
qualified a the
(JVM)? role
of the
packages
new
R

AR

AR

AR

AR
Java into related
Java development
be in code
file languages
code program? naming
layout
AK

AK

AK

AK
executed role version the access

which source without and


package
of of
IV

IV

IV

IV
bytecode
applications
Java Kit names
from
namespáces,

a
of the classes
D

D
(JDK)
accessible
interfaces program's
of package

runtime

source
the conflicts
the
Java code Java
of using other
import

and user
the and files
in
T

T
PU

PU

PU

PU

PU
AJ

AJ

AJ

AJ

AJ
R

R
4038\D\2025
97. 96. g4.
95.
R

AR

AR

AR

AR
0
AK

AK

AK

AK
(D) What any
tE) (c)
creating Which
(B) (A) (B) (A) accessible
(D) (B) (A) memory? including lifecycle responsible
Which
(D) (A) into Java
e) ej
IV

IV

IV

new
package? IV an
D

D
ClassName(); ClassName objectName=ClassName():
ClassName
public default protected private Runtime Garbage Execution
Class Native Bytecode Assembly Machine
source
access

is component
intermediate

objectName=ClassName;
an allocating

object
the from
Loader
of code
(no modifier
Data Collector
objects code code
general Engine for code
T

T
objectName;
explicit
any
PU

PU

PU

PU

objectName=new

in Areas
PU
and managing
is
of
AJ

AJ

AJ

AJ

AJ
Java? format
other
makes first
in
R

process modifier) deallocating


the
R

AR

AR

AR

AR

memory, compiled

class called:
3VM
a
AK

AK

AK

AK

class
IV

IV

IV

IV

the
for
in is
D

15]
00.If 99. Cer'No,
98.

)
(D) (C) (BY A) where
the (D) (B) (A) Java?
to What (D) (B) (A) keyword? abstract Can
T

a
.
PU

PU

PU

PU

PU

access
member

and Only program From


the subclass,
From
Only
protected

[] -> :: methods abstract


It instantiated class Yes, Yes, you
AJ

AJ

AJ

AJ

AJ

can (dot is
depends
class
R

same
any
from
the abstract just
within from
operator).
members has but create
R

AR

AR

AR

AR

any it
subclass
be of primnary

a
class
a like directly
AK

AK

AK

AK

access
within
package and within only
directly concrete
class class
the directly
IV

IV

IV

IV

any an
any
has
on classes
D

same
of if
the the modifier,
is operator
other using
in other
accessed?
declared
an any
whether
the
ODJect

same constructor
same
the cannot
class, object
abstract
P.T.O.
class
abstract class the
entire of
T

class
class from used new
any
PU

PU

PU

PU

PU

with
an
This
in pdf is crafted by @DIVAKAR_RAJPUT
in be the
AJ

AJ

AJ

AJ

AJ

Page 8 of 8
R

You might also like