Prompt Engineering Objective Questions and Answers

This prompt engineering quiz contains carefully curated objective questions with correct answers and clear explanations. It is designed for developers, AI practitioners, and interview preparation, covering modern prompting strategies, LLM behavior, optimization techniques, and safety practices.

Practice Prompt Engineering MCQs with Detailed Explanations

Answer at least 12 questions to submit and verify answers.

1 What is the primary goal of prompt engineering? Easy

2 Which prompting technique provides examples in the input? Easy

3 What does zero-shot prompting mean? Easy

4 Which technique encourages the model to explain its reasoning step-by-step? Medium

5 What is prompt injection? Medium

6 Which of the following improves output consistency? Medium

7 What role does temperature play in LLM output? Medium

8 Which parameter limits the maximum response length? Easy

9 What is the purpose of system prompts? Medium

10 Which approach helps reduce hallucinations? Medium

11 What is few-shot chain-of-thought prompting? High

12 What does 'top-p' control? High

13 Which prompt is more effective? Medium

14 What is role prompting? Medium

15 Which is an example of role prompting? Medium