Arrays - 7.1 Introduction 7.1 Q1: Array are: a....

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

View Full Document Right Arrow Icon
7.1 Introduction 7.1 Q1: Array are: a. variable-length entitles. 7.2 Arrays 7.2 Q1: Which of the following statements about arrays are true? b. A, B, D. 7.2 Q2: The value of s [ s [ 6 ] – s[ 5 ] ] is: c. 9. 7.3 Declaring and Creating Arrays 7.3 Q1: A programmer must do the following before using an array: d. declare then create the array. 7.3 Q2: Consider the code segment below. Which of the following statements is false? d. The value of g [ 3 ] is -1. 7.4 Examples Using Arrays 7.4 Q1: Which of the following statements about creating arrays and initializing their elements is false? c. The elements of an array of integers have a value of null before they are initialized. 7.4 Q2: What do the following statements do? b. Creates a double array containing 14 elements. 7.4 Q3: Which of the following initialize lists would correctly set the elements of array n? a. int n[] = { 1, 2, 3, 4, 5 };. 7.4 Q4: Constant variables also are called ___________. c. named constants. 7.4 Q5: Which of the following will not produce a compiler error? c. Using a final variable before it is initialized. 7.4 Q6: The output of this program will be: c. Result is 67. 7.4 Q7: The output of this Java program will be: c. Result is 286. 7.4 Q8: Which flag in a format specifier indicates that values with fewer digits then the field width
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 02/15/2011 for the course CS 119 taught by Professor Jackson during the Fall '10 term at Jackson State.

Page1 / 3

Arrays - 7.1 Introduction 7.1 Q1: Array are: a....

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