0
0
Intro to Computingfundamentals~10 mins

Why computational thinking is a life skill in Intro to Computing - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to show the first step in computational thinking: breaking a problem into smaller parts.

Intro to Computing
def solve_problem(problem):
    parts = problem[1]  # Break problem into parts
    return parts
Drag options to blanks, or click blank then click option'
A.split()
B.join()
C.append()
D.remove()
Attempts:
3 left
💡 Hint
Common Mistakes
Using .join() which combines parts instead of splitting.
Using .append() which adds to a list, not splitting.
2fill in blank
medium

Complete the code to show pattern recognition by checking if two parts are equal.

Intro to Computing
def check_pattern(part1, part2):
    if part1 [1] part2:
        return True
    else:
        return False
Drag options to blanks, or click blank then click option'
A==
B<
C>
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using != which checks for inequality.
Using > or < which compare sizes, not equality.
3fill in blank
hard

Fix the error in the code that shows abstraction by hiding details in a function.

Intro to Computing
def calculate_area(radius):
    area = 3.14 * radius [1] 2
    return area
Drag options to blanks, or click blank then click option'
A+
B**
C*
D//
Attempts:
3 left
💡 Hint
Common Mistakes
Using * which multiplies but does not square.
Using + which adds instead of exponentiation.
4fill in blank
hard

Fill both blanks to complete the code that shows algorithm design by looping through steps.

Intro to Computing
steps = ['Understand', 'Plan', 'Execute', 'Review']
for step [1] steps:
    print(step [2] '!')
Drag options to blanks, or click blank then click option'
Ain
B+
C*
Don
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'on' instead of 'in' in the loop.
Using '*' which repeats strings instead of joining.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that models computational thinking steps with conditions.

Intro to Computing
steps = ['Break', 'Recognize', 'Abstract', 'Design']
result = { [1] : [2] for step in steps if len(step) [3] 6 }
Drag options to blanks, or click blank then click option'
Astep.upper()
Bstep
C<
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '<' which changes the condition.
Using step.lower() which is not required here.