Hi people, got a question here. Problem in exam says (Write a segment of code...) . I know that it is simply a code text whitout all the public class n stuff, but can anyone tell me where segment code should start and where ends exactly? do i need to use curly brackets in segment code to finish program? sry for nub question :p and tnx in advance :thumbup1:.
2 replies to this topic
#1
Posted 07 January 2012 - 06:25 AM
|
|
|
#2
Posted 09 January 2012 - 08:39 AM
There's no formal definition for a "segment" of code in your particular case. A "block" of code is one that is surrounded by curly braces, but that may not be enough to sufficiently answer the question on the exam.
Basically, when an exam requires you to write a "segment" of code, think of it as simply all the relevant pieces to adequately answer the question, and nothing extra. In other words, common sense should guide you. :)
Basically, when an exam requires you to write a "segment" of code, think of it as simply all the relevant pieces to adequately answer the question, and nothing extra. In other words, common sense should guide you. :)
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
#3
Posted 09 January 2012 - 10:52 AM
cheers, i have figured it out
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









