t1vD - C = ‘character’(If they forget the ‘’ signs...

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 D Solutions Problem 1 – Vector Manipulation [30 Points] I. A = [6 21 2 -9 3 5] D = [21 -9] E = [1 1 1 0] or [true true true false] length(temp) = 4 II. A (‘tigv’) Problem 2 – Conditionals [30 Points] I. 1. A = 0 B = ‘hello world’ (If they forget the ‘’ signs, ignore it) C = ‘zero’ (If they forget the ‘’ signs, ignore it) D = [1 7 -9] 2. A = 0 B = 1
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: C = ‘character’ (If they forget the ‘’ signs, ignore it) D = ‘Cedric’ (If they forget the ‘’ signs, ignore it) II. A. 1 or true B. 0 or false C. 1 or true Problem 3 – Iteration + Cell Arrays [40 Points] I. B = 27 C = [4 3 9 -1 5 7] D = 12 E = ‘cs-1371-is-cool-’ (If they forget the ‘’ signs, ignore it) II. C ( a{end}{1} = [a{end}{1} 'rules!']) 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 Tech.

Ask a homework question - tutors are online