Topics for Today Announcements Thursday Extra 4:00 in CS Commons Next week: on Tuesday !!! Prof. Steve Huss-Lederman, Beloit College: Open Energy Dashboard (open source project for monitoring energy resources via Web) Mentor sessions (evolving) eSpeak: • once in a while, may hear extra sounds • typically, when short line follows a long line • possible solution: add spaces to short line Reminder: Supplemental Problem 1 due next Friday Conditional Statements Questions Clicker questions
What can you say about Question 1 on Quiz 2? A. The question is a [slightly edited] version of Step 12 on the lab, "Using the Scribbler 2 and Basic Input" B. The question uses ideas from last Friday's lab regarding basic input and using the Scribbler robot to beep notes C. The question stated the streamlined text of documentation for the rBeep command, as described in MyroC documentation D. All of the above E. None of the above
What is printed by the following code segment? A. yes 2 4 int a = 2; B. no 3 4 int b = 4; C. yes 4 if ( a == 4) printf ("yes "); D. no 4 else E. None of the above printf ("no "); if ( a = 3 ) printf("%d ", a); if ( b ) printf("%d ", b);
What is printed by the following code segment? A. yes one two int a = 2; B. no one two if ( a == 4 ) C. yes printf ("yes "); D. no else E. None of the above printf ("no "); if ( a = 3 ) printf("one "); if ( a == 3 ) printf("two ");
What is printed by the following code segment? int c = 3; switch (c) { case 3: printf("Matey! "); case 7: printf("Time. "); default: printf("Walk the plank!"); } A. Matey! B. Matey! Time. Walk the plank! C. Matey! Walk the plank! D. Does not compile E. None of the above
Recommend
More recommend