Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to print a message using a programming language.
Intro to Computing
print([1])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to use quotes around the text.
Trying to print a word without quotes.
✗ Incorrect
The print function requires a string inside quotes to display text.
2fill in blank
mediumComplete the code to assign a number to a variable in a programming language.
Intro to Computing
age = [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Putting numbers inside quotes when assigning.
Using variable names instead of values.
✗ Incorrect
Numbers are written without quotes when assigning to variables.
3fill in blank
hardFix the error in the code to correctly add two numbers.
Intro to Computing
result = 5 [1] 3
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using subtraction or multiplication instead of addition.
Using symbols that do not perform addition.
✗ Incorrect
The plus sign (+) adds two numbers together.
4fill in blank
hardFill both blanks to create a variable holding a greeting message.
Intro to Computing
[1] = [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Putting quotes around variable names.
Not using quotes for text values.
✗ Incorrect
Variable names go on the left, strings with quotes go on the right.
5fill in blank
hardFill all three blanks to create a simple program that prints a personalized greeting.
Intro to Computing
name = [1] message = [2] + name print([3])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around strings.
Printing the wrong variable.
Not using + to join strings.
✗ Incorrect
Assign a name string, add it to a greeting string, then print the combined message.