Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to assign the value 10 to variable #1.
CNC Programming
#1 = [1]
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning a wrong value like 5 or 20 instead of 10.
Leaving the assignment blank.
✗ Incorrect
Variable #1 should be assigned the value 10 as requested.
2fill in blank
mediumComplete the code to add the values of variables #1 and #2 and store the result in #3.
CNC Programming
#3 = #1 [1] #2
Attempts:
3 left
💡 Hint
Common Mistakes
Using subtraction (-) or multiplication (*) instead of addition.
Using division (/) which is not addition.
✗ Incorrect
The plus sign (+) adds the values of #1 and #2 and stores the result in #3.
3fill in blank
hardFix the error in the code to correctly assign the value of #2 to #1.
CNC Programming
#1 = [1]
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning #3 or #1 to #1 instead of #2.
Using the number 2 instead of variable #2.
✗ Incorrect
To assign the value of #2 to #1, use #2 on the right side of the equals sign.
4fill in blank
hardFill both blanks to create a program that sets #1 to 5 and then doubles it into #2.
CNC Programming
#1 = [1] #2 = #1 [2] 2
Attempts:
3 left
💡 Hint
Common Mistakes
Using addition (+) instead of multiplication (*) to double.
Assigning wrong value to #1.
✗ Incorrect
First, assign 5 to #1. Then multiply #1 by 2 to double it and store in #2.
5fill in blank
hardFill all three blanks to create a program that sets #1 to 3, #2 to 4, and stores their sum in #3.
CNC Programming
#1 = [1] #2 = [2] #3 = #1 [3] #2
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the values assigned to #1 and #2.
Using wrong operator instead of +.
✗ Incorrect
Assign 3 to #1, 4 to #2, then add #1 and #2 storing the result in #3.
