t1vC - D = David (If they forget the signs, ignore it) II....

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 1371 Computing for Engineers Test 1 Version C Solutions Problem 1 – Vector Manipulation [30 Points] I. A = [-1 -7 7 -1 11 0] D = [-1 -7] E = [1 1 0] or [true true false] length(temp) = 3 II. C (‘Z’ > ‘a’) Problem 2 – Conditionals [30 Points] I. 1. A = [1 2 3] B = 0 C = [] or empty vector D = [5 6 7 8] 2. A = -1 B = 0 C = ‘character’ (If they forget the ‘’ signs, ignore it)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: D = David (If they forget the signs, ignore it) II. A. 0 or false B. 1 or true C. 0 or false Problem 3 Iteration + Cell Arrays [40 Points] I. B = 27 C = [4 3 9 -1 5 7] D = 0 E = or empty vector II. D (a(2) = ) III. D (final = x{index} * x{index+1})...
View Full Document

This note was uploaded on 05/08/2010 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online