0
0
Prompt Engineering / GenAIml~20 mins

Text-to-image prompt crafting in Prompt Engineering / GenAI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Text-to-Image Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding prompt specificity in text-to-image generation

Which of the following prompts is most likely to generate a clear and detailed image of a red apple on a wooden table?

A"A colorful scene"
B"A fruit on a surface"
C"A red apple on a wooden table with natural lighting"
D"An object"
Attempts:
2 left
💡 Hint

Think about how adding details helps the AI understand what to draw.

Predict Output
intermediate
2:00remaining
Output of a prompt with conflicting style instructions

What is the most likely visual style of the image generated by this prompt?

"A futuristic cityscape, painted in the style of a watercolor and photorealistic"
AA purely photorealistic image with sharp details and no painterly effect
BA black and white sketch
CA flat cartoon-style image with no texture
DAn image blending soft watercolor textures with realistic city details
Attempts:
2 left
💡 Hint

Consider how AI models combine multiple style keywords.

Model Choice
advanced
2:00remaining
Choosing the best model for detailed text-to-image generation

You want to generate high-resolution images with fine details from complex prompts. Which model is best suited?

AA large diffusion-based model trained on diverse high-res images
BA simple GAN trained on low-res images
CA text-only language model without image generation capability
DA small lightweight model optimized for speed but low detail
Attempts:
2 left
💡 Hint

Think about model size, training data, and architecture for image quality.

Hyperparameter
advanced
2:00remaining
Effect of guidance scale on image generation

In text-to-image generation, increasing the guidance scale parameter typically causes the output to:

ABecome more closely aligned with the prompt but less diverse
BBecome more random and less related to the prompt
CRun faster but with lower image quality
DGenerate images with fewer colors
Attempts:
2 left
💡 Hint

Guidance scale controls how strongly the model follows the prompt.

🔧 Debug
expert
2:00remaining
Diagnosing poor image output from a text-to-image model

You input the prompt "A sunny beach with palm trees" but the generated image is mostly dark and blurry. Which is the most likely cause?

AThe prompt is too vague and lacks style or lighting details
BThe model was run with a very low number of inference steps
CThe model is trained only on indoor scenes
DThe prompt contains unsupported special characters
Attempts:
2 left
💡 Hint

Consider how inference steps affect image clarity.