logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    sfolax6776
    Feb 23, 2019
      ·  Edited: Jan 14, 2020

    Test Prep 6 - FRQ Array Problems

    in AP Computer Science A

    A. 1-D Array (Example 1: FRQ#4 of 2018 sample solutions)

    1. How to declare and initialize an array of varied length?

    2. How to traverse an array using for loops and for-each loops to find the max/min/total/mean?

    3. How to create an array of Money or Date objects?

    4. How to use Array variables in a class? (as instance variables, static variables or local variables)

    5. How to pass an array as a parameter to a method or take an array as a return value?

    B. 2-D Array (Example 2: FRQ#4 of 2017 )

    1. Is a 2-D array(matrix) an array of 1-D / row arrays?

    2. How to traverse a 2-D array using nested for loops or for-each loops?

    3. How to pass a 2-D array as a parameter or take a 2-D array as a return value?

    C. What is the best or worst case of an array algorithm?

    When traversing an array to process, depends on the situation, the amount of processing may vary. The best case is when the necessary procession is the least, the worst case is when the necessary procession is the most.


    D. What is the disadvantage of arrays?

    Inefficient to insert or delete elements.


    E. Practice of the week:

    1. All array questions of Chapter 7 "Arrays and Array Lists" (Barron's)

    2. FRQ#3 of 2016

    0 comments
    0
    0 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners