-
Free Porn!
Not Really!
Thanks for the first answers!
Can anyone explain the following questions:
10.When the following code is executed what is the next value assigned
to
count after the break statement
is executed?
for(int count = 0,count < 5;count++) {
if(count < 1);
count = 1;
while(count < 4) {
if(count<2) {
break;
count = 3;
}
count = 4;
}
count = 5;
}
count = 6;
11..The following code produces which sequence of numbers?
boolean t;
int a = 0;
int b = 1;
int c = 1;
for(int n = 0; a < 25; n++) {
t = false;
for (int j = a ; j < a + 4; j++) {
if (a%2==0) t = true;
if (t) system.out.println(j);
}
c = a;
a = b;
b = c+b;
}
can some explain how they got the sequence of numbers : 0,1,2,3,2,3,4,5,8,9,10,11
?
17/18.Can anyone explain the following terms
a lexical error
a syntax error
a compile-time semantic error
a logic error
a run-time error
Andy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks