Name:_______________________



Name:_______________________

Covers Chapters 3 and 4 |CSCI 1301 Introduction to Programming

Armstrong Atlantic State University

Instructor: Y. Daniel Liang | |

Part I: Multiple Choice Questions.

1. Analyze the following code:

// Enter an integer

String numString = JOptionPane.showInputDialog(null,

"Enter a number:",

"Exam Input", JOptionPane.QUESTION_MESSAGE);

int number = Integer.parseInt(numString);

if (number 9)

if (y > 8)

System.out.println("x > 9 and y > 8");

else if (z >= 7)

System.out.println("x = 7");

else

System.out.println("x ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download