PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

AI · Theory

Generative AI

← All stacks

Theory

183/215

Generative AI

Generative AI creates new content: text, images, audio, code. It learns a distribution, then samples. LLMs predict the next token. Image models denoise or decode latents. Useful copilots. Risks: hallucination, copyright, deepfakes, leaking training data.

Not the same as a classifier that only outputs spam/not-spam. Generative = produce new samples. Discriminative = label existing ones. Say that pair.

Generative AI — output — three lines. Generative creates samples; still can hallucinate.

Exam tip

Generative vs discriminative + one risk.

Example

# Generative vs discriminative
print("classifier : spam / not spam")
print("generative : write a new email draft")
print("fluent text can still be false")

Generative AI — output: three lines. Generative creates samples; still can hallucinate.

Short notes

  • Creates new samples.
  • LLM = next token.
  • Trapfluent ≠ true.

Questions

1

Explain Generative AI as if you are teaching a junior — definition, then one example.

2

What does the example print, and what does that prove?

3

What mistake do freshers make with Generative AI?

Previous← Current Trends in Artificial Intelligence in 2025NextIs Artificial Intelligence Good or Bad →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.