0% found this document useful (0 votes)
23 views10 pages

Week 2

Uploaded by

Vsd Prasad Naidu
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)
23 views10 pages

Week 2

Uploaded by

Vsd Prasad Naidu
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/ 10

Studtnt 10

Student Name

loep ltlttments Is to allow programmers to repeat a block of code


provide a way to execute a set of Instructions iteratively until a

execute a set of Instructions until a specific condition is met or until a


heratlons are completed. Here Is a description of the three common loop

lopment Kit (JDK)


ltor
ted Development Environment (IDE)

'E1plllD Switch Case With Syntax?

Ml: .s~ ~~ a.
>~,\:~ Ce~e,~ ~
uu.. e_ \.;
t%~/ de ~cu• •:t ;
2) Explain jump and break?

J'-'"'~ Grefl~~ ~e...'6 h ~ ~t--.~ ~


~~c:,,
Am:

1 -t\-a.- r~ 0~~
¢~~L~ fCOd-
\ ..
~ b, J.. e,_, I ~°'6~~ ~ ~ ~l:) W ./2~~

3) What are pre post exist loop? ~Y


Ans:

.. ~ • I' . •

, . ' • .. • ••

' - . I
I
, -:.- ••

OBJECT ORIENTED PROGRAMMING ACADEMIC YEAR: 2023-24


21SC1204 -R Page 13 of 138
- -
-
Student 'j
Student Name \-_-_-_-_-_-_
- _-_-_- -~-_-_-_--_J\I
In-Lab:
1) To solve the loop Statements
.Java Program to demonstrate the
month name for the given num~;;mple of Switch statement .where we are printing

. Java program to generate


Procedure/Progran'I: . .
a multiplication table using for- loop

pu.b\,' t. J, t-o.h' c_ v o\d rr.~ fl ( ~fl/1 ~ [) , ~j (


s Ci::>-" N~-'l> ,gc_ ~ 11..9»-' Su,." ne'!i' (!.~-tern .', ");
b
I ~ Q_ ~ s C.- ~ k ;:t:.f(t C:);
$ \.P\ ~ t.°'-~ ~
~ e_ ' ·. .h "(->tr:J'<\... t:l)± .. p't' M ( 1,j on J)
b"6e~)
C9S- e. 'l ·• $~• oot - p'-6\ ('Cf (" ~ e_ b ,j;
b~e.o..X.;
~ e.-., : ¥€I'(\ , 0 o t · ~ 0 (' rn:i,(),'

boeoJt;,
('oV l\: ¥et/\• o Ot· p~ NI- ("A-()'¥\\');

'o'~(hlc;
~e. s~ _g~ -out •p""l'cl- ("N::\ ,'.)/,

b"~;
(Me.. G: ~ , oot .("'!\?- t'':J\.Jl) e ');

\':;~ Q..DJ.<.. i
Co.J.. e -t ~ .9.,~<2.f<I 'Ouk:.. " O
f"~
h '"'6 Qo.--lt ,
I
-l
!_course Title 0 ACADEMIC YEAR: 2023·24
[ course Code( ) BJECT ORIENTED PROGRAMMING Page 14 of 138
- - 5 21SC1204 -R
Stu nt ID

ntNam•

• eu,t, fM t\:l- t" o.~"'-'~ ;

. . . _.., ~ • fM""- ( "s"-{:>-\.~e~) ;

~ f'-±
~~.o~t-F~' (ttn ov P r-n be."',:\
o J,
'

:d?,&e.. ,~.: ¥e.rn _ou~ t"1h~ (" de._~e.l"('\'be:<j;


b"l>e.o..tL;
d e.-t-o.,..l.J.l: , b"'6~t_;
$e.totcd 4 i
-,f'\\~~ JC)J-c:l .. Ob I • ~;
fu.))'''" eh--¼ rn~,\~ Cf\ t
~\,{_ ~ac~t. \J~'c:t ~cµ ~ C~ \ c~ ~ ' ) ~
~~ Sc. i:.. ~ S~~ {) ~~-\~~ j
' '~ a. -:: ..$:C, ~~\ Kl C..') ~

.fo'-6 (,~~ ' t L to~ 't4 ~ ~


~ ~~~, ~~ (=>'51t\d +-C'~'t,d ~ '/.c:J ,;::_ ' /,cf~a_, ,,a.*\~J
j

02 BJECT ORIENTED PROGRAMMING


1sc1204 -R ACADEMIC YEAR: 2023-24
Page 15 of 138
udtntlD

UdtntN1m1

~npu:l '' l ''

ofp : - oCi:

1~0~0
~)f!\•~

~\. ::tt
~-;.=-,
~~'-\ '-::::~

~S~h:.

2..'JLr ,d'f'
1.\C s- -;. "
1~'"\ .... \~
'LX lo c. lJ:) .,

Course Title ACADEMIC YEAR: 2023-24


Course Code(s) OBJECT ORIENTED PROGRAMMING
21SC1204 -R Pa e t6of138
Student ID r - - - - - --

Stud~nt Name \ _]
~\ ~ ~
\-:."'\ r~"""~''1 ' --\~~ \>~ ~'lS 0-f("\

v-'\ J e~ ~ ~ ad-
.._
\
-
'-'--._\ Kh eos--e. '
x>e__<S -b rt\ed ~ N)w \t
-\\- µ 'oe..~
~

VJ ei>
uJ.9-1"

53mpl1 VIVA-V OCE ChlHtlont (ln•Lnb):


4
I
\
r.our•,o
<1mr1;t, ·1111,,
C..otJ . ( )
11 i,
I ,
OIJJI CT OHIENTED l'ROGHAMMING
i1 ~C1?OIi •R
ACADEMICYEAH: 2023•2
POBO 17 of 138
' _, . .& • •
""O'l1,.,''.,. 1-: '; , L.rro: ••'~;(
' •

arp)(

Oapa: ife.tto
,lttuo,

'1t,.I ~ '>.s t::l.

"'~~ \tof -~ })ad~ "°''' ~eo.,de. ..«~


"'~ t\.H'~<-t. ~ iJ.J a ~\e lccp ma.J 11ot OO"td.£ --fl.t <~, b" a:i ~
.
4. Difference bmnen break and continue? ,-t t~~~
~
~ ~~ "(_ ~

~ ~aJc. 2,~<?.Jttud ~
\t-%de_ o. ht>· .~ ~ uSed_ ~ e~,t t~p ~ ~ J' ~ ~'I\~~
~~ \rN"1'\~~ , c~1l~t.c! -tk.. c~ ') ~
,-k.. <a-:ht\U.C.. .Nt.~ 1
S. What is pre-checking Loop ,,_ t».<d_ -t,, Sl<l1> -11.. ~ I: <>! i4 ~ ~

~~ h,c, f -.,.. oho P,c,u,~ ~ " e.:i-"o· ~ <l.._,!. leo f' ,9u-i <-U. -I<, <I.

~~LatJ. ~~ ~ l.,._1 G:xrd).~ 1. l~~ 1-f'N- ,t~~.:t.L~•' ~-?


~· ~t
l~ 1.....,. ~
ll .. ..
C~ti <.1'-. -~ · ,l\)~~UJJI f..2l..l~ ~ ~ "-'~ ~

Course Title OBJECT ORIENTED PROGRAMMING


r,;::;-:::-:~~:--f~~~~~~~.=:.:.:_:..:.:.:.:..::.::__ _ _7 ____
- A CAoailC\EAR: ~~~3 ~IlJ
_C_o_ur_
se_c_od_e('-'
s -..!..~
21:.:.
SC=-=1.;:.:
20~4....:.•R._ _ _ _ _ _ _ _ _ • 18 _t)f !_3S_
l\li,e
10

nt Htmt

\M Ult of IWltch ltltlmtntl with strings


!1'1111!1Mt lquart Stat P1tt1rn

l-.b £
" c. \lt'itcl m~ C'\ (<rt~ CJ Q)S'}o~ t
1\6 ~(-::: n~ S.(oJ\nc.Y (S~W'\"IY
g:_,"4.rl u'/

,,
(.P-! e '' o.t c ~

\,~i
~ e•• de~ "; h~qm .. out' p~r-:k ('-', ) ;
\:>~~
~e "?i"' , ', t.~· cu+· p'mrct ('• p~:);
~~~·

de.-fou~-;

1
j
J

l
co·uri,1 Tit 1,1
Counn Cod ,1,)
1
,~
\
OBJI (. r OHII N 11 D PHO(i H/\MMING
21~Cl20'1 · H
1tudeni"t0
Student ,.-;;;;-t-------~

po!rt 'f.
pw.r,c. Mtclft vo'd ~ n (t-1:'n'd a =j;Jt_

EtfQM' o~t . t ~ ~~ ~.lt ''J;


j e).le_ ~

s..,.~.ovl• F rd: (" ·~_,•

~
j
s~kN, ,o\'.>t , p~td r~t ))
J

/\11'111 MIi \I All ' .,MI :~ I


I ~Jlllf (. f I Jfllf I~ ff f I f'l(I HHt/\MMll~II
71 ',I 1;.,M fl '1~
l',INI.' "' ,,,
I 1,, t 1,111 111 fl

,,,.,,

•11\•' 'j

II

bl.df u:t - rr,c.~c...1


'1 ,, pv...:t -=- ~ /'

Q) ld:\)\rl - D ~ (\ o ,
-)
I

'~\'~ -=~

)\._

~
" ~ ~ ~

'k 1(

* *
d, ~ ~ ~ k

I Course Title
Course Codi.'(:.)
l OllJCCT ORIENTFD PROGRAMM ING
21SC1204 -H
~~.\..-....:: \ t .:)f ~" ~,,::: :~
•'~"t' :1 .,~L~
t >.µe,une nt II Stud~ nl ID-
I
Date Student Name

• Analysis and Inferences:

C..Q.f)

Evaluator Remark (if Any):

Marks Secured:
- -out of SO

Signature of the Evaluator with Date


-
Evaluator MUST ask Vlva-voce prior to signing and posting marks for each experiment.

Course Title
Cou~ Code~)
OBJECT ORIENTED PROGRAMMING
215(1204 -R - 1 ACADEMIC YEAR: 2023-24
- - Page 23 of 138

You might also like