3.4.1 Array & List are Similar

10 Computer Science · Chapter 3: Programing Fundamentals · Federal Board (FBISE)

3.4.1 Array & List are Similar from Federal Board 10 Computer Science (10th Class) Chapter 3, Programing Fundamentals: 3 short and long questions and 7 MCQs with answers.

Array & List are Similar MCQs

  1. Q1

    What is a List, in terms of data structures?

    1. AA type of HTML tag
    2. BA built-in JavaScript array only
    3. CAn Abstract Data Type (ADT) representing an ordered sequence of elements
    4. DA CSS property
    Show answer

    Correct answer: C. An Abstract Data Type (ADT) representing an ordered sequence of elements

    A list is an Abstract Data Type (ADT) — an ordered sequence of elements with defined operations.

  2. Q2

    What is a key difference between how arrays and lists are stored in memory?

    1. AArrays are stored at contiguous locations; lists are not necessarily contiguous
    2. BArrays cannot store numbers
    3. CLists are always faster than arrays
    4. DLists cannot hold mixed data types
    Show answer

    Correct answer: A. Arrays are stored at contiguous locations; lists are not necessarily contiguous

    Arrays are stored in memory at contiguous locations, while list elements may be stored at non-contiguous memory locations.

  3. Q3

    Which of the following is true about both arrays and lists?

    1. ANeither can hold multiple data types
    2. BOnly arrays can be indexed
    3. COnly lists start indexing at 0
    4. DBoth can expand or contract to hold items
    Show answer

    Correct answer: D. Both can expand or contract to hold items

    Both arrays and lists can grow or shrink easily to accommodate adding or removing items.

  4. Q4

    Which symbol indicates that an array is a built-in JavaScript tool?

    1. AParentheses ( )
    2. BSquare brackets [ ]
    3. CCurly braces { }
    4. DAngle brackets < >
    Show answer

    Correct answer: B. Square brackets [ ]

    Square brackets [ ] are used to indicate and create arrays, which are a built-in JavaScript feature.

  5. Q5

    For which type of data are arrays generally considered best suited?

    1. ANumbers
    2. BAudio files
    3. CImages
    4. DText documents
    Show answer

    Correct answer: A. Numbers

    Arrays are best suited for working with numbers, while lists are chosen for more general, flexible usage.

  6. Q6

    Arrays and list can contain data types containing __________.

    1. ANumbers
    2. BAlphanumeric
    3. CCheck boxes
    4. DAlphabets
    Show answer

    Correct answer: B. Alphanumeric

    Arrays and lists can contain alphanumeric data — a mix of alphabets and numbers.

  7. Q7

    ADT stands for __________.

    1. AAbstract document type
    2. BAll Data type
    3. CAbstract Data type
    4. DAny Data type
    Show answer

    Correct answer: C. Abstract Data type

    ADT stands for Abstract Data Type, a data type defined only by its operations.

Array & List are Similar short questions

  1. How are arrays and lists similar, and what are the major differences between them?

    Important
  2. Enlist 3 key differences between array and list.

    Important

Array & List are Similar long questions

  1. What is a List, and how is it similar to and different from an Array? Explain the algorithm to find an element in a list, with code.

    Important

Chapter 3 study material

A little trouble connecting

We could not reach IlmiDunya. Your connection may be slow or interrupted. Check your connection and try again.

If you were saving or submitting, check the result before trying again.

Account blocked

You are blocked from using IlmiDunya. Contact support to unblock your account.