Array Ace Quiz: Test Your Data Manipulation Skills Quiz

  1. Pandas Core Object

    Which object is most similar to a one-dimensional NumPy array but allows indexing of values using labels?

    1. DataFrame
    2. Scalar
    3. Series
    4. Array
    5. DaFrame
  2. DataFrame Data Types

    Within a column of a DataFrame, which of the following statements about data types is most accurate?

    1. Data types can vary within a column.
    2. Data types must be strings.
    3. Data types can be different, but numerical values must all be integers.
    4. Everything must be the same data type.
    5. Data types are automatically converted to the most common type.
  3. NumPy Dependency

    Which of the following libraries does Pandas rely on for its foundational numerical operations?

    1. SciPy
    2. Matplotlib
    3. NumPy
    4. SQL
    5. Numpy
  4. ndarray Dimensions

    Which of the following is most correct regarding NumPy arrays, also known as ndarrays?

    1. They can only be one-dimensional.
    2. They can only be two-dimensional.
    3. They can have any number of dimensions.
    4. They must be square matrices.
    5. They are always the same dimensions.
  5. Creating NumPy Arrays

    How would you create a one-dimensional NumPy array from a Python list called 'my_list'?

    1. array(my_list)
    2. np.List(my_list)
    3. np.ndarray(my_list)
    4. np.array(my_list)
    5. np.arry(my_list)
  6. Numerical Operations on Arrays

    When is it most advantageous to use NumPy arrays over Python lists for mathematical operations?

    1. When the data is small.
    2. When the data contains mixed data types.
    3. When the data needs to be processed quickly.
    4. When the data requires complex looping logic.
    5. When the data needs to be printed.
  7. Series Construction

    Which data type cannot be used as an argument for creating a Pandas Series object?

    1. Scalar Value
    2. Python List
    3. Dictionary
    4. NumPy Array
    5. DataFrame
  8. DataFrame from Lists

    When creating a DataFrame from a Python list of lists, what does each nested list typically represent?

    1. A column in the DataFrame.
    2. A cell in the DataFrame.
    3. A single value in the DataFrame.
    4. A row in the DataFrame.
    5. A header in the DataFrame.
  9. Setting DataFrame Index

    What is the command to use a column named 'identifier' as the index of a DataFrame named 'data'?

    1. data.set_index('index')
    2. data.index = 'identifier'
    3. data.set_column_index('identifier')
    4. data.set_index('identifier')
    5. data.use_index('identifier')
  10. Array seed

    What does the term numpy.random.seed() do?

    1. Clears the numbers in the array
    2. This makes the numbers appear unique
    3. Creates unique sets of numbers
    4. Aligns the numbers with a seed
    5. The seed clears the array