Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Thursday at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Tuesday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Java danuma bedaganna kamathi aya innawada?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="h_abeysinghe" data-source="post: 9569201" data-attributes="member: 123721"><p>ANSWERS and Marks for each MCQ <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /></p><p></p><p> <span style="color: RoyalBlue"><strong>1.Which is another name for package?</strong></span></p><p><span style="color: RoyalBlue"><strong>Marks: 1.0 </strong></span></p><p>a. object <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. library <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. method <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. string <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p><span style="color: RoyalBlue"><strong>2.Which is a set of guidelines for writing an application?</strong></span></p><p><span style="color: RoyalBlue"><strong>Marks: 1.0 </strong></span></p><p> a. algorithm <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. code conventions <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. comments <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. class <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong>3.Which statement displays <span style="font-family: 'courier new'">Hello, world!</span> on the screen?</strong></span></p><p><span style="color: RoyalBlue"><strong>Marks: 1.0 </strong></span></p><p> a. <span style="font-family: 'courier new'">System.out.println("Hello, world!");</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. <span style="font-family: 'courier new'">system.println("Hello, world!");</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. <span style="font-family: 'courier new'">System.println('Hello, world!');</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. <span style="font-family: 'courier new'">System.out.println('Hello, world!');</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong>4.Which is used to enclose single or multiline comments?</strong></span></p><p><span style="color: RoyalBlue"><strong>Marks: 1.0 </strong></span></p><p> a. \* *\ <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. /* */ <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. // // <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. \\ \\ <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong>5.What effect does <span style="font-family: 'courier new'">\n</span> have when included in an output string?</strong></span></p><p><span style="color: RoyalBlue"><strong>Marks: 1.0</strong></span></p><p> a. A <span style="font-family: 'courier new'">\n</span> is displayed in the output. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. A <span style="font-family: 'courier new'">N</span> is displayed in the output. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. A tab (8 spaces) is displayed in the output. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. Output is moved to the next line. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong></strong></span></p><p><span style="color: RoyalBlue"><strong>6.What effect does <span style="font-family: 'courier new'">\t</span> have when included in an output string?</strong></span></p><p><span style="color: RoyalBlue"><strong>Marks: 1.0</strong></span></p><p> a. A <span style="font-family: 'courier new'">\t</span> is displayed in the output. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. Output is moved to the next line. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. A <span style="font-family: 'courier new'">T</span> is displayed in the output. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. A tab (8 spaces) is displayed in the output. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="color: RoyalBlue"><strong>7.The <span style="font-family: 'courier new'">main()</span> method is defined as</strong></span></p><p><span style="color: RoyalBlue"><strong>Marks: 1.0 </strong></span></p><p> a. <span style="font-family: 'courier new'">public static void main(string[] args)</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. <span style="font-family: 'courier new'">public static void Main(String[] args)</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. <span style="font-family: 'courier new'">public static void main(String[] args)</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. <span style="font-family: 'courier new'">public static main(String[] args)</span> <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p><span style="font-size: 12px"><span style="color: RoyalBlue"><strong>8.Which describes the output displayed by the statement:</strong></span></span></p><p><span style="font-size: 12px"><span style="color: RoyalBlue"><strong>Marks: 1.0 </strong></span></span><span style="color: Black"><strong></strong></span></p><p><span style="color: Black"><strong>System.out.format("%-10s %10s %8s", "Item", "Quantity", "Cost\n");</strong></span></p><p><span style="color: Black"><strong></strong></span> a. Item,Quantity, and Cost will be left aligned. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. Item will be left aligned, Quantity and Cost will be right aligned. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. Item, Quantity, and Cost will be right aligned. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. Item will be right aligned, Quantity and Cost will be left aligned. <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p><span style="font-size: 12px"><span style="color: Blue"><strong>9.What does the following symbol indicate in a flow chart?</strong></span></span></p><p><span style="font-size: 12px"><span style="color: Blue"><strong>Marks: 1.0 </strong></span></span></p><p><img src="http://www.georgehernandez.com/h/xComputers/UML/Media/Symbol_Oval.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> a. Process <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. Start or End <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. Input or Output <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. Selection <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <span style="color: Blue"><strong></strong></span></p><p><span style="color: Blue"><strong></strong></span></p><p><span style="color: Blue"><strong>10.What does the following symbol indicate in a flow chart?</strong></span></p><p><span style="color: Blue"><strong>Marks: 1.0 </strong></span></p><p><img src="http://www.georgehernandez.com/h/xComputers/UML/Media/Symbol_Rectangle.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p> a. Start or End <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> b. Process <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> c. Selection <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p> d. Input or Output <img src="http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p></blockquote><p></p>
[QUOTE="h_abeysinghe, post: 9569201, member: 123721"] ANSWERS and Marks for each MCQ :D [COLOR=RoyalBlue][B]1.Which is another name for package? Marks: 1.0 [/B][/COLOR] a. object [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. library [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] c. method [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. string [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [COLOR=RoyalBlue][B]2.Which is a set of guidelines for writing an application? Marks: 1.0 [/B][/COLOR] a. algorithm [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. code conventions [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] c. comments [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. class [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [COLOR=RoyalBlue][B] 3.Which statement displays [FONT=courier new]Hello, world![/FONT] on the screen? Marks: 1.0 [/B][/COLOR] a. [FONT=courier new]System.out.println("Hello, world!");[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] b. [FONT=courier new]system.println("Hello, world!");[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] c. [FONT=courier new]System.println('Hello, world!');[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. [FONT=courier new]System.out.println('Hello, world!');[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [COLOR=RoyalBlue][B] 4.Which is used to enclose single or multiline comments? Marks: 1.0 [/B][/COLOR] a. \* *\ [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. /* */ [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] c. // // [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. \\ \\ [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [COLOR=RoyalBlue][B] 5.What effect does [FONT=courier new]\n[/FONT] have when included in an output string? Marks: 1.0[/B][/COLOR] a. A [FONT=courier new]\n[/FONT] is displayed in the output. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. A [FONT=courier new]N[/FONT] is displayed in the output. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] c. A tab (8 spaces) is displayed in the output. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. Output is moved to the next line. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] [COLOR=RoyalBlue][B] 6.What effect does [FONT=courier new]\t[/FONT] have when included in an output string? Marks: 1.0[/B][/COLOR] a. A [FONT=courier new]\t[/FONT] is displayed in the output. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. Output is moved to the next line. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] c. A [FONT=courier new]T[/FONT] is displayed in the output. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. A tab (8 spaces) is displayed in the output. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] [COLOR=RoyalBlue][B]7.The [FONT=courier new]main()[/FONT] method is defined as Marks: 1.0 [/B][/COLOR] a. [FONT=courier new]public static void main(string[] args)[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. [FONT=courier new]public static void Main(String[] args)[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] c. [FONT=courier new]public static void main(String[] args)[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] d. [FONT=courier new]public static main(String[] args)[/FONT] [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [SIZE=3][COLOR=RoyalBlue][B]8.Which describes the output displayed by the statement: Marks: 1.0 [/B][/COLOR][/SIZE][COLOR=Black][B] System.out.format("%-10s %10s %8s", "Item", "Quantity", "Cost\n"); [/B][/COLOR] a. Item,Quantity, and Cost will be left aligned. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. Item will be left aligned, Quantity and Cost will be right aligned. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] c. Item, Quantity, and Cost will be right aligned. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. Item will be right aligned, Quantity and Cost will be left aligned. [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [SIZE=3][COLOR=Blue][B]9.What does the following symbol indicate in a flow chart? Marks: 1.0 [/B][/COLOR][/SIZE] [IMG]http://www.georgehernandez.com/h/xComputers/UML/Media/Symbol_Oval.gif[/IMG] a. Process [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. Start or End [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] c. Input or Output [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. Selection [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [COLOR=Blue][B] 10.What does the following symbol indicate in a flow chart? Marks: 1.0 [/B][/COLOR] [IMG]http://www.georgehernandez.com/h/xComputers/UML/Media/Symbol_Rectangle.gif[/IMG] a. Start or End [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] b. Process [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Ftick_green_big&rev=160[/IMG] c. Selection [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] d. Input or Output [IMG]http://moodle.thomsoncollegiate.com/theme/image.php?theme=decaf&image=i%2Fcross_red_small&rev=160[/IMG] [/QUOTE]
Insert quotes…
Verification
Hata thunen beduwama keeyada? (60 bedeema thuna)
Post reply
Top
Bottom