← Quiz: How AI Coding Assistants Work: all 10 questions
Quiz: How AI Coding Assistants Work · Question 1 of 10
What does an LLM fundamentally do when writing code?
What does an LLM fundamentally do when writing code?
- A.Runs the code and returns the output
- B.Predicts likely next tokens based on its training and the context
- C.Searches a database of verified correct programs
- D.Compiles the program
Answer & explanation
Correct answer: Predicts likely next tokens based on its training and the context
It generates the most likely continuation — which is why plausible-looking but wrong code is possible.
Can you get the rest right without peeking?
Take the timed Quiz: How AI Coding Assistants Work quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →