🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Runs the code and returns the output
  2. B.Predicts likely next tokens based on its training and the context
  3. C.Searches a database of verified correct programs
  4. 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 →