0% found this document useful (0 votes)
26 views12 pages

Few Confirmed Few Unconfirmed

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)
26 views12 pages

Few Confirmed Few Unconfirmed

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/ 12

HOurs Martutes Seconds

OBECTIVE QUESTIONS

NCS
on
Steven has writren the following code but he is gettung a compilation eror

dlass AddicionQuz
pubik oid addont
onum2x vipul24-MAR-2022
.sharma0b vipul24-MAR-2022
.sharma0b
yem.ou8 num2
public void addint int
num2, numiX
System.out.prindniumnumzt
public void addfloat
System.outprindnnuEBm2k
public void
num1.
fegt num2X Vipul24-MAR-2022
.sharma06 Vipul.sharma06
adddouble.num1, foat num2X
System.qitprindnnum1 *num2 022

24-MA

Why is Steven getting the error

sharma06
pul.sharma06, please pnowde your
response below
Vipulsharma06
There are two add methods which have the same number 4 M A R2 0 2 2

of
OAl the add methods have the same parameters and the parameters order and datatypes are
parameter names and thave same also same
number
OAddition of float wtth double is not possible without
of
parameters
OAl the gven options typecasting

You're being p

DeLLA

acaeae
Shot on OnePlus o
ipul.sharma0b
24-AR-2022
Vipul.sharmades
Questioo6
24-MAR2022

1 marksip
What is the output'of the code given below?
dass Tester (

vipul24-MAR-2022
.sharma06
public void sampleMethodint num)
System.out.printin(res numx /Line 1

public static void mainsbingl] args)


int res 1 0
Tester obe ew Téster:
ob.sampleMethodresk

vipul.sharma06 please provice your response beow


Vipuls h a r
vip'pA'a.sharmauo
harma06
O 100 R2 24 MAR 2u27

O 10
OCompilation Error in Line 1
Runtime exception: NumberForrmatException for res

Reset Save
JNCS-
public

Student
staC vOwd mdHn

stdi
Snng a
new dentO
X

viputsharmaub
tion
System.outRONhsedNäme:"+std1.stdName". "*"stdBranch:"+std1.stdDthi stdid:"+std1.stm
VI MA

Student std2 = new Student john".1234,"CSE"*

System.ouLprintir stdName
sharma0b Vipul74.MAR-2022
sharma06
*std2.stdNarme", *"stdBranch:"+sid2.stdBranch",
"stdid:"*std2.stdic

2
R2

pulsharma06 please provide your response below


tdBranch: nul, stdld: 0
Oeme nult
stdNarme: John, stdBranch: nuil, tdld: 1234
OSName. nul stdr anctu.nul, sidid: 0
stdNamne: John, stdBranch: nuil, stdid: 0
Sdtmduo
nui, stduranch: nuil, stdid: 0
stdName
stdName' nu, stdBranch: nuil, stdiar 0

null, stdBranch: nuil, stdid: 0


stdNarne:
stuid: 1234
stdName: john, stdßranch: CSE,

Reset
public sharma06
Glove getGloveOOo
retum tthisj
vipul.sharma0s vIpul24-MAR-2022
.sharma0b
M A R

class Teste
public static vovd mainStningil arES)
Glove
bladKGIOve-new Gkove 8aCKT
Glove redGlove-new GlOv N
Minion bob niew MirisonbiackGiovel
blackGlove
setcolorfredgpyegec okortk
Systern.Outprintine Aner
vipul.sharma05 Vipui24-MAR-2022
.sharmaub
What should be placed at Unet to get the color of bob Mmon s gkove?

Note Line numbers for reference only.

pul.shamao% please provide your response b e t


pu shama06 vipulsharma06
O tob glove cok MAR
O redGkove getColort)

Obob getGlove) getCokort


Obob getGioveg colo
eser

You're being proc


01 12 03

C T QuSTIONS

u a t dnglenf e

ysa.aaor nise**-GrahigeiOvi5 vipulsharma0


g
r e parrt n
p 4 4 A R2 0 2
vipulsharma0b
.dn rundh
24
MAR202

harma(
vipudshama06
O vipul sharma06
24MA 2za

Qit
stharma06
Oto vipulshusma06

P
vpui sharma06
A 02
pul.snarma0b weebies vipul24-MAR-2022
sharmaub 174
vipulshampa0b
24-MAR-222
OO5

Glow Suck

24-MA 74
Barbie
129

vipul24-MAR-2022
.sharmad6
Magna Doodle
T608

Query

SELECT DISTINCT price.aquaoiyovailable FROM toys


Vipul.sharmaub
22

price BETWEEN 2500 AND 350 AR-


WHERE quantityavaiible 150 AND
is executed?
rows wkbe letched when the above query
How imary

ipul.sharmaub Vipul.snarmab
3
below
pul.shemado please proideyour respoIse

O2 4-MAR202
O

Reset
NCS
ction
pu.snarma06 24-AR
-2024
QuEs
vipul.snari
24-MAR-20 2 0 2 4
Vipul24-MAR-2022
.sharmao
marks]
inJava, the protected access specitfier cannot be applied to

VIpui24MAR-2022
.sharma06
dass

. methodd

nstance vanable .stnamai a06

24-MAR-2022
vipul24-MAR-2022
.sharma06
v. intertace

Mpul.sharnma06, please provide your response below

O only i, H and

ul sharma06
ii

OOniy i and iv armtau Vipul sharma06


O Only " and A R
2022
2

O Onlyi and

Reset
U-NCS Vipul.sharmauo Vipul.s24-MAR:2022
harire Vipul24-MAR-2022
.sharma0k
R-2022
tion
marks 2 4 M A

A firewall is sed to inspec that are going in and out of the Conpany's network

oulsharma06, please prodeyour response bebw


O User requests a
VIpui.snarmaub vipul24-MAR-2022
.sharma06
OUpdates,S 022
R

MA
24-MA

OConnettions
O Data packets

Reser
Vpulsharma06
Hours Minutes Seconds

O8JECTIVE QUESTIONS

5T6 aclass
ble Tabe
N extends
5 Fumitugd
Furnitun ipul.24-MAR-2022
sharma0b viput.sharma0b
8System.out.enAangaile
9
O) VP MAR4
sa Furniture"¥ 2 4 - M A R2 0 2 2

class Chair f

12 Chaird

Vipui.sharmaub Vipui24-MAR-2022
.sharma06
13 System.out.printin"Chair is a Furniture"
4
15}
16 public cass Tester(m
17 pblicstatic veldwiain(Sringl] ags) 24-MAR-2022
abeahenawtablet;

vipul24-MAR-2022
.sharma06
Option 1
wpulsharma0s please provide your respon
harma
Single
MAR-2022
O Hierarc
OMultilevel

Multiple

Reset

YOure being proc


Table table nw labe )
SinoeN

feal Dalo packets


interFate
aCCN and v clasraadirert
pvo+cct ecd ony

clam loop Testen O 1D 192 8 3


h a ! to t o

appreal 94ore
a Onliue

d
Ce val; frj 3
6)Select dhnct pr;

,3PPPP
'PP 2 ePP
dand
en.dsplay e til
)
cdass LoopTester
public static void nerstring) args){
Vipul24-MAR-2022
.sharma0b Vipul24-MAR-2022
.sharma0b
nt endNumS
forfendpM-1;ehdNume-10;
ffendNuH>S
endNumt+
continue:

forfint statNum=

endnu
7starthtncendNum startNum+ **
NumeendNum" "E
System.outprietstartNum+" *endNum "k
Vipul24-MAR-2022
.sharma06 vipul.sharma06
tiendNurS 24-MAR:2022
break

vpulsharma06, please prode your response below


V I D u ls h a r
VIpul.sharmaub
4MAR
2026

OD101928
O o10192837
ODs
O 0111 102938

TOure te
nceld
vipulsharmaoo
24
MARR
vipul.skarmato
24
MAR2K
Vipui.s
D101 Katha

D102 Contemporary
0103 ahuratratyam

a r m
DI0S
u sharma06 clywood
Salsa
vipul.sharmtado
24-MAR2
ich anone owwng can be idereified as the canddate key baned oe ie tth dancer retation data'

pu shamaoA pieaseprov yout repoe be


O i t dared wipulshama06
O tidnoosay
O idaao

eset

DeLL

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy