exam1PRACSOL - CodeLab (conditionals, loops) due at...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CodeLab (conditionals, loops) due at midnight Exam 1 tomorrow during class No labs this week Proj 3 due next Friday Topics: Basic Java program Variables and operations Printing, user input (including conversions) Conditional statements (if, if/else, if/else if, switch) Loops (while, do-while, for, nested loops) Types of problems: Full Java programs “Code fragments” Reading code – what is printed What is wrong CIS 200 Exam 1 (50 points) Tuesday, September 15, 2009 Name: ______________________________________ This test is closed-books and closed-notes. Please do your own work.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1. (6 pts) Write a complete Java program (everything that would go in the .java file) that prints the following information to the screen. Your information should be displayed exactly as it is below. CIS 200: Exam 1 Tues., Sept. 15, 2009 public class Test { public static void main(String[] args) { System.out.println(“CIS 200: Exam 1”); System.out.println(“Tues., Sept. 15, 2009”); } }
Background image of page 2
2. (12 pts) Write a code fragment with a loop that repeatedly asks the user to enter a character. Keep doing this until the user enters ‘q’. Afterwards,
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/02/2010 for the course CIS 200 taught by Professor Staff during the Spring '08 term at Kansas State University.

Page1 / 8

exam1PRACSOL - CodeLab (conditionals, loops) due at...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online