📊

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 4 of 5 • Questions 31-40 of 50
Q31medium

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

Q32medium

What is the result?

arr = [1, 2, 3, 4, 5]
result = sum([x for x in arr if x > 2])
print(result)
Q33hard

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

Q34hard

What does this code do? arr = [1, 2, 3, 4, 5] result = [arr[i] for i in range(len(arr)) if i % 2 == 0]

Q35easy

What is the output?

arr = [10, 20, 30]
arr.clear()
print(len(arr))
Q36easy

What will be printed? arr = [1, 2, 3, 4, 5] result = max(arr) - min(arr) print(result)

Q37medium

What does this code do? arr = [1, 2, 3, 2, 4, 2] result = list(set(arr)) print(result)

Q38hard

What is the result?

arr = [1, 2, 3, 4, 5]
arr[1:4] = [10, 20]
print(arr)
Q39medium

What will be printed? arr = [5, 2, 8, 1, 9] arr.sort() second_min = arr[1] print(second_min)

Q40medium

What is the output?

arr = [1, 2, 3]
arr.append([4, 5])
print(arr)
...

Quiz Pages

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