Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What command would you use to see all variables in your workspace while debugging?
It starts with 'who'.
What do you click next to a variable to see its current value via datatip?
Think about hovering.
What does examining variable values help you determine in debugging?
Think about what you check after running code.
True or False: You should examine variable values only after the program has run completely.
Consider when you check variable values.
You are debugging a program that calculates the average of a set of numbers, but the output appears too high. What steps would you take to investigate?
Focus on where the average is calculated.
During debugging, you find that a loop variable never increases past a certain point. What could be the problem, and how would you fix it?
Inspect the loop's controlling condition.
5 more questions in this section. Enroll free to practise them all.
Enroll free