Bird
0
0

Consider this code snippet for setting a heated bed temperature in a 3D printer firmware:

medium📝 Analysis Q13 of 15
3D Printing - 3D Printer Hardware
Consider this code snippet for setting a heated bed temperature in a 3D printer firmware:
bed_temp = 60
if filament == 'PLA':
    bed_temp = 50
elif filament == 'ABS':
    bed_temp = 100
print(f"Set bed temperature to {bed_temp}°C")

What will be printed if filament is set to 'ABS'?
ASet bed temperature to 60°C
BSet bed temperature to 0°C
CSet bed temperature to 50°C
DSet bed temperature to 100°C
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the filament condition

    If filament is 'ABS', the code sets bed_temp to 100.
  2. Step 2: Check the print statement output

    The print statement uses the updated bed_temp value, so it prints 100°C.
  3. Final Answer:

    Set bed temperature to 100°C -> Option D
  4. Quick Check:

    ABS filament bed temp = 100°C [OK]
Quick Trick: ABS needs 100°C bed temperature [OK]
Common Mistakes:
MISTAKES
  • Ignoring the elif condition
  • Using default 60°C instead of updated value
  • Confusing PLA and ABS temperatures

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More 3D Printing Quizzes