ee322c_q1_v3 - EE 322C Data Structures Fall 2008...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: EE 322C Data Structures Fall 2008 Instructor: Dr. Ramesh Yerraballi Date: Sep. 4, 2008 Grader: Senthil K Chellappan Due-Date: 11:55 PM, Sep. 10, 2008 Quiz 1 Full Name (Last, First): All the code snippets in this assignment are Java programs unless specified otherwise. Total points available: 65 . Strategy: Check for compilation errors. If errors exist, provide a fix else produce the output of the program. You do not need to check for run-time errors. Submission: Please type your answers as a Word doc or txt or pdf and upload it electronically on Blackboard. Tip: Attempt the problems without a computer first, and then verify your reasoning with the actual program output. This will help you reason out problems during the tests. 1. Refresher a) Are the if-statements syntactically correct in C/C++? In Java? (4 points) int i = 0, j = 1, k = 2; if (i < j && j < k) { } if (i < j < k) { } b) What gets printed after executing the following code? [Hint: Operator &&, || evaluation ] (3 points) int i = 0, j = 1, k = 2;...
View Full Document

Page1 / 3

ee322c_q1_v3 - EE 322C Data Structures Fall 2008...

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

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