t1vM - 2 B2 = ‘hello world’(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 M Solutions Problem 1 – Vector Manipulation [30 Points] I. D ([10 2 3 10 5 0 5]) II. b = 0 c = [2 6 -6 4 0] d = [100 2 6 4 4 100] III. C D I J H G Problem 2 – Conditionals [30 Points] I. 1. A1 = 0 or false A3 = ‘zero’ (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: 2. B2 = ‘hello world’ (If they forget the '' signs, ignore it) B4 = ‘zero’ (If they forget the '' signs, ignore it) II. D ([7 11 6]) Problem 3 – Iteration + Cell Arrays [40 Points] I. Out1 = 4 Out2 = 2 Out3 = 0 Out4 = 0 II. C (sum(A{2}) + sum(A{4})) III. B and C...
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