GoConqr has a new look! Let us know what you think.

Quiz

Data Structures 1 - Review 1

jshin13 32 questions

Take the quiz

Questions in this quiz (32)

  1. 1How is a non-circular, doubly-linked list different from a circular, doubly-linked list (which is true for a non-circular list)?
    1. AThe "next" points to the "prev" and "prev" points to "next" for the head and tail nodes
    2. BThe "next" of tail node is null, and the "previous" of the head node is null
    3. CThe "next" of tail node points to the tail node and the "previous" of the head node points to the head node
    4. DThe "next" of tail node points to the head node and the "previous" of the head node points to the tail node
  2. 2What term is used to describe a O(n^2) algorithm?
    1. AConstant
    2. BExponential
    3. CQuadratic
    4. DLinear
    5. ELogarithmic
  3. 3Which of the following would be the Big-O function for the funtion (5x^2 + 4x^4 + 3)?
    1. AO( 3 )
    2. BO( 5x^2 )
    3. CO( 4x )
    4. DO( x^4 )
  4. 4For which of the following structures can a binary search be used?
    1. Aunsorted, array-based lists
    2. Bsorted, array-based lists
    3. Cunsorted, linked lists
    4. Dsorted, linked lists
    5. Eall of the others are possible
  5. 5How is a circular, doubly-linked list different from a non-circular, doubly-linked list (which is true for a circular list)?
    1. A"next" points to the "prev" and "prev" points to "next" for the head and tail nodes
    2. BThe "next" of tail node points to the head node and the "previous" of the head node points to the tail node
    3. CThe "next" of tail node is null, and the "previous" of the head node is null
    4. DThe "next" of tail node points to the tail node and the "previous" of the head node points to the head node
  6. 6Which of the following describe a difference between a queue and a stack is:
    1. AStacks modify both ends of the structure, queues modify only one.
    2. BQueues require linked lists, but stacks do not.
    3. CQueues modify both ends of the structure; stacks modify only one.
    4. DStacks require linked lists, but queues do not.
  7. 7Consider the following code segment where "n" was passed in as a parameter.

    for (int i = n; i >= 1; i = i / 2) {

    System.out.println(i);

    }


    Of the following, which best characterizes the running time of this code segment?
    1. AO(log n)
    2. BO(n log n)
    3. CO(n^2)
    4. DO(n)
  8. 8When comparing the equations shown below, some equations will give you relatively larger values for smaller input values. However, as values of n become large enough, which of the following will give you the smallest value?
    1. A0.005 * n^2
    2. B4 * n^3
    3. C20000 * log2(n)
    4. D50 * n + n^(2/3)
  9. 9Given an unsorted list of items, the selection sort algorithm complexity for the number of assignments (memory moves) is:
    1. An(n-1)
    2. BO(n^2 + n)
    3. CO(log n)
    4. DO(n^2)
    5. EO(n)
  10. 10Which of the following is NOT an example of empirical analysis?
    1. AWeighing two equal volume containers of rocks of where each container has a different type rock in it
    2. BMeasuring the clock time used by a specific code segment in a program for a specific input set
    3. CShowing that C^2 = A^2 + B^2 for all right triangles where A, B, and C are the lengths of the sides, and C is the length of the hypotenuse.
    4. DComparing hourly air pressure readings to hourly rainfall measurements during one day

Information

Description
Quiz on Data Structures 1 - Review 1, created by jshin13 on 09/03/2015.
Author
jshin13
Language
English
Views
28
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?