Preview

Chapter 8 Quiz

Good Essays
Open Document
Open Document
469 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Chapter 8 Quiz
Chapter 8 Quiz 1. Processing a large number of items in a(n) ________ is usually easier than processing a large number of items stored in separate variables. (Points : 6) Constant Variable Array Loop None of the above | 2. What is the term used for the number inside the bracket that specifies the number of values that an array can hold? (Points : 7) Size Size declarator Number Number declarator None of the above | 3. Access the individual elements in an array by using their _____________. (Points : 6) Sizes Numbers Integers Subscripts None of the above | 4. Which is the simplest search technique to use to find an item in an array? (Points : 7) Sequential Binary Bubble Select None of the above | 5. Which of the following arguments must be passed when passing an array as an argument? (Points : 6) The array itself An integer that specifies the number of elements in the array The data type of the array A and B A and C | 6. ________________ arrays are two or more arrays that hold related data, and the elements are accessed using a common subscript. (Points : 7) Sequential Binary Parallel Linear None of the above | 7. How many subscripts do you need to access one element in a two-dimensional array? (Points : 6) One Two Three Four None of the above | 8. Two- dimensional arrays can be thought of as containing ___________. (Points : 6) Rows and columns Lines and pages Rows and pages Lines and columns Rows and pages | 9. A three-dimensional array can be thought of as ______ of two-dimensional arrays. (Points : 7) Rows Columns Lines Pages None of the above | 10. In the following declaration, what

You May Also Find These Documents Helpful

  • Good Essays

    Nt1420 Unit 6

    • 1145 Words
    • 5 Pages

    INSTRUCTIONS: 1. THERE ARE SIX (6) QUESTIONS IN THIS PAPER. 2. ANSWER FIVE (5) QUESTIONS ONLY. Question 1 Arrays are used when storing a large number of values. You are required to create an array named a and answer the following questions regarding array manipulation. a. Write a method fillRandom(int[] a, int min, int max), fill the array a with a random integer value. (Note: Math.random() returns a double in the range of 0.0 and 1.0, therefore it is cast to an integer number, between the minimum and maximum value). [6 marks] b. Write the Bubble sort method to sort array a into descending order. [10 marks] c. In the quicksort, an algorithm an element is chosen from the unsorted list. This element is called the…

    • 1145 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    4.) Write assignment statements that perform the following operations with the variables a, b, and c:…

    • 453 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 3-5 Quiz

    • 736 Words
    • 3 Pages

    The marketer wants to understand how the stimuli are changed into responses inside the consumer's ________, which has two parts: the buyer's characteristics that influence how he or she perceives and reacts to the stimuli and the buyer's decision process itself.Answer…

    • 736 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    i. The first element is the access mode. It can be public, private, protected, or not appear at all.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    carloe :)

    • 253 Words
    • 2 Pages

    Problem 2. a) Write an application containing three parallel arrays that hold 10 elements each. The first array holds four-digit student ID numbers, the second holds first names, and the…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Array Structure Proposal

    • 574 Words
    • 3 Pages

    An array is a variable that holds multiple values of the same kind. Nearly every…

    • 574 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    a. In linear algebra, determinants have many uses. Like with inverses, finding the determinants can prove difficult. However, on a 2x2 matrix, determinants are easy. b. Determinants are usually abbreviated "det". So:…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Fluids

    • 2539 Words
    • 11 Pages

    1. Identify each of the following statements as either true or false. If false, explain why.…

    • 2539 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    Math 540

    • 6687 Words
    • 27 Pages

    5) A variable is a value that is usually a coefficient of a parameter in an equation.…

    • 6687 Words
    • 27 Pages
    Satisfactory Essays
  • Satisfactory Essays

    13. Dimension numbers should be centered between arrowheads, except when using stacked dimensions where the numbers should be staggered.…

    • 295 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    7. Space: can be thought of as the distance or area between, around, above, below, or within things.…

    • 255 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    guide to tut

    • 832 Words
    • 6 Pages

    there? How does one refer to the initial array element? To the final array element?…

    • 832 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    c) Assume that the list of holes in a variable partitions memory system contains the following entries (in the given order): 400K, 150K, 270K and 500K. Consider the following sequence of requests :…

    • 2709 Words
    • 11 Pages
    Satisfactory Essays
  • Better Essays

    Data Type and Array

    • 760 Words
    • 4 Pages

    * [ ]: Is used to specify the rank of the array. Rank is used to specify the size of the array.…

    • 760 Words
    • 4 Pages
    Better Essays
  • Good Essays

    mca syllabus

    • 3084 Words
    • 13 Pages

    Course Name: Fundamentals of Programming Course Code: MCA111 Objectives: The aim of this course is to introduce the rudiments of programming to the students. Students will become familiar with problem solving techniques and algorithm development using computers. This will include structured programming using C, a high-level programming language. Prerequisites: None Contents: 1.Introduction to programming& Basics of C: Concepts of Algorithm and Flowcharts, Process of compilation, Generation of languages, Basic features of C Language like Identifier, Keywords, Variable, data types, Operators and Expression.…

    • 3084 Words
    • 13 Pages
    Good Essays