GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Chapter 9 multiple choice

Naina Minhas 15 Fragen

Quiz starten

Fragen in diesem Quiz (15)

  1. 1In the bubble sort algorithm the two arguments sent into the swap module are ___________.
    1. Aarray[index+1] and array[index-1]
    2. BNone of the answers
    3. Carray[index] and array[index-1]
    4. Darray[index-1] and array[index]
    5. Earray[index-1] and array[index+1]
  2. 2Which searching algorithm requires the array to be ordered?
    1. AParallel
    2. BLinear
    3. CSequential
    4. DNone of the answers
    5. EBinary
  3. 3As the __________sorting algorithm makes passes through and compares the elements of the array certain values move toward the end of the array with each pass.
    1. ANone of the answers
    2. BBubble
    3. CInsertion
    4. DSelection
    5. EHash
  4. 4What does the variable middle represent in a binary search algorithm?
    1. AThe average of two values
    2. BMiddle value in the array
    3. CSubscript of the midpoint
    4. DNone of the answers
    5. EMiddle value in the portion to be searched
  5. 5In the swap module the third variable is declared as a __________ variable.
    1. AReference
    2. BNone of the answers
    3. CConstant
    4. DLocal
    5. EGlobal
  6. 6This algorithm begins by sorting the first two elements of the array, which become a sorted subset. Then, the third element is moved to its correct position relative to the first two elements. At that point, the first three elements become the sorted subset. This process continues with the fourth and subsequent elements until the entire array is sorted.
    1. Ainsertion sort
    2. Bselection sort
    3. Cbubble sort
    4. Dsequential sort
  7. 7This search algorithm is adequate for small arrays but not large arrays.
    1. Anatural order search
    2. Bsequential search
    3. Cselection search
    4. Dbinary search
  8. 8Which statement is true after the execution of the following statements?
    Set t = x
    Set x = y
    Set y = t
    1. Ax contains the value in y and y stayed the same
    2. BNone of the answers
    3. Cx and y contain their original values
    4. Dy contains the value in x and x stayed the same
    5. Ex and y swapped their values
  9. 9This search algorithm steps sequentially through an array, comparing each item with the search value.
    1. Aselection search
    2. Bbinary search
    3. Csequential search
    4. Dnatural order search
  10. 10Which of the following is a sorting algorithm?
    1. ABubble sort
    2. BInsertion sort
    3. CSelection sort
    4. DNone of the answers
    5. EAll of the answers

Informationen

Beschreibung
Computer Science Quiz am Chapter 9 multiple choice, erstellt von Naina Minhas am 10/12/2022.
Sprache
English
Aufrufe
0
Schlagwörter
computer science
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck