What will be output from the following code:


You will get compiler errors.
2 errors found:
File: C:\DrJava\SoundExTest.java [line: 72] Error: ’)’ expected
File: C:\DrJava\SoundExTest.java [line: 78] Error: illegal start of expression
If you fix the code to be: while ((!(x < 10)) || y < 1) then it will loop forever (or until you stop it). The first few values output will be:
13, 1
14, 2
15, 3
...

Computer Science & Information Technology

You might also like to view...

Use a(n) ________ when you want to indent the left margin of an entire paragraph

Fill in the blank(s) with correct word

Computer Science & Information Technology

What is the output of this code?

``` int main() { int x; if(x == 2) { cout<<”x is 2”; } else { cout<<”x is not 2”; x = x + 5; return 0; } ``` A. No output. B. x is 2 C. x is not 2 D. x is never initialized, so it won’t compile.

Computer Science & Information Technology

Blogosphere is the practice of using social media sites to sell products and services

Indicate whether the statement is true or false

Computer Science & Information Technology

You should never arrange a private meeting with an online "friend" whom you've never met in person

Indicate whether the statement is true or false

Computer Science & Information Technology