📊

Logic Building - Phase 4: Basic Arrays

Practice array operations, searching, counting, and transformation logic

50 questions•5 pages•~75 min

Use this quiz track to strengthen recall, speed, and exam-style decision making. Attempt one page first, review explanations, and then re-attempt incorrect questions without notes.

A good scoring strategy is to mark uncertain questions, finish known ones quickly, and return with elimination logic. This improves accuracy while keeping momentum under time constraints.

Progress: 0 / 500%
Page 2 of 5 • Questions 11-20 of 50
Q11easy

What will be printed? arr = [1, 2, 3, 2, 4, 2] count = arr.count(2) print(count)

Q12easy

What is the result?

arr = [3, 1, 4, 1, 5]
arr.sort()
print(arr)
Q13easy

What will be printed? arr = [1, 2, 3, 4, 5] arr.reverse() print(arr)

Q14easy

What does this code do? arr = [1, 2, 3, 4, 5] result = sum(arr) / len(arr)

Q15medium

What is the output?

arr = [10, 20, 30, 40]
print(arr[1:3])
Q16medium

What will be printed? arr = [1, 2, 3] arr.extend([4, 5]) print(arr)

Q17medium

What is the result?

arr = [5, 2, 8, 1, 9]
max_index = arr.index(max(arr))
print(max_index)
Q18medium

What will be printed? arr = [1, 2, 3, 4, 5] arr.pop() arr.pop(0) print(arr)

Q19medium

What does this code do? arr = [1, 2, 3, 4, 5] result = [x for x in arr if x % 2 == 0]

Q20hard

What is the output?

arr = [1, 2, 3]
arr2 = arr.copy()
arr2[0] = 10
print(arr)
...

Quiz Pages

Navigate directly to paginated quiz sets. These links help you revise by page and make every page discoverable.