Meeting Announcements & Notes

November 11, 2016 Meeting

We will meet in the board room at 25N at 5:45 tonight.

Tonight’s Agenda:

Consider the following code segment.

for (int k = 0); k < 20; k = k + 2)

{

if (k  % 3) == 1)

{

      System.out.print (k + “  “)’

}

}

What is printed as a result of executing the code segment?

(A)   4 16

(B)   4 10  16

(C)   0 6  12  18

(D)   1 4  7  10  13  16  19

(E)  0 2  4  6  8  10  12  14  16  18

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.