0
0
Intro to Computingfundamentals~10 mins

What a programming language is in Intro to Computing - Interactive Code Practice

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

Complete 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'
A"Hello, world!"
BHello, world!
Cprint
Dmessage
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to use quotes around the text.
Trying to print a word without quotes.
2fill in blank
medium

Complete 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'
A20
Btwenty
C"twenty"
Dage
Attempts:
3 left
💡 Hint
Common Mistakes
Putting numbers inside quotes when assigning.
Using variable names instead of values.
3fill in blank
hard

Fix 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'
A/
B*
C-
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using subtraction or multiplication instead of addition.
Using symbols that do not perform addition.
4fill in blank
hard

Fill 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'
Agreeting
B"Hello!"
Cmessage
DHello
Attempts:
3 left
💡 Hint
Common Mistakes
Putting quotes around variable names.
Not using quotes for text values.
5fill in blank
hard

Fill 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'
A"Alice"
B"Hello, "
Cmessage
Dname
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around strings.
Printing the wrong variable.
Not using + to join strings.