Quiz#6 Practice

Quiz#6 Practice - Arrays Practice Questions CSE 100, Fall...

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

View Full Document Right Arrow Icon
Arrays Practice Questions CSE 100, Fall 2007 Arizona State University True/False Indicate whether the statement is true or false. ____ 1. A double type is an example of a simple data type. ____ 2. All components of an array are of the same type. ____ 3. In C++, an array index starts at index 1. ____ 4. Given the declaration int list[20]; the statement list[12] = list[5] + list[7]; updates the content of the twelfth component of the array list . ____ 5. Given the declaration int list[50]; the statement cout << list << endl; outputs all 50 components of the array list , one component per line. ____ 6. In C++, when declaring an array as a formal parameter, the size of the array must be specified within square brackets. ____ 7. In a function call statement, when passing an array as an actual parameter, you use only its name. ____ 8. When you pass an array as a parameter, the base address of the actual array is passed to the formal parameter. ____ 9. The declaration char str[21] = "Sunny Day"; declares str to be an array of 9 characters, since the string "Sunny Day" has only 9 characters. ____ 10.
Background image of page 1

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

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

This note was uploaded on 04/29/2008 for the course CSE 100 taught by Professor Computersystems during the Fall '07 term at ASU.

Page1 / 4

Quiz#6 Practice - Arrays Practice Questions CSE 100, Fall...

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