exam2Practice

exam2Practice - PIC 10A November 21, 2005 Second Practice...

Info iconThis preview shows pages 1–4. 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

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: PIC 10A November 21, 2005 Second Practice Midterm NAME (Print!): Check one: Le (1a): OBrien (1b): Problem Points Score 1 10 2 5 3 5 4 5 5 10 6 15 Total 50 2 Problem 1 (10 points): Answer the following five true-false ques- tion. Circle TRUE if you think the statement is always true and FALSE if you think its ever false: (a) Elements of the array int array[SIZE] are indexed from 0 to SIZE. TRUE FALSE (b) By convention array[1][4] is the element of array in the first columns and fourth row. TRUE FALSE (c) To print out the entries of an array, most of the time you should use a loop. TRUE FALSE (d) The following function declaration is valid: int f(int a[5]); TRUE FALSE (e) Having both the following function declaration is valid: int f(int a, int b); double f(int a, int b); TRUE FALSE 3 Problem 2 (5 points): A complex number is a number of the form a + bi where i = - 1 and a and b are real numbers. The number a is called the real part and the number b is the imaginary part. Defineis the imaginary part....
View Full Document

This note was uploaded on 02/22/2010 for the course PIC PIC 10A taught by Professor Shockran during the Fall '03 term at UCLA.

Page1 / 7

exam2Practice - PIC 10A November 21, 2005 Second Practice...

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

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