📊

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 5 of 5 • Questions 41-50 of 50
Q41hard

What will be printed? arr = [1, 2, 3, 4, 5] result = [x for x in arr if x % 2 == 0] + [x for x in arr if x % 2 == 1] print(result)

Q42medium

What does this code do? arr = [1, 2, 3, 4, 5] result = arr[:3] + arr[3:] print(result)

Q43hard

What is the result?

arr = [10, 20, 30, 40]
arr.pop(1)
arr.insert(2, 25)
print(arr)
Q44hard

What will be printed? arr = [1, 2, 3, 4, 5] result = sum([x*x for x in arr]) print(result)

Q45medium

What is the output?

arr = [5, 2, 8, 1, 9]
arr.remove(max(arr))
print(arr)
Q46easy

What will be printed? arr = [1, 2, 3] arr2 = [4, 5] result = arr + arr2 print(result)

Q47hard

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

Q48hard

What is the result?

arr = [1, 2, 3, 4, 5]
arr[2:4] = []
print(arr)
Q49easy

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

Q50hard

What is the output?

arr = [5, 2, 8, 1, 9]
arr.sort()
median = arr[len(arr)//2]
print(median)
...

Quiz Pages

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