Free CT-GenAI sample questions
Here are free CT-GenAI sample questions, each with the correct answer and an explanation. They cover prompt writing for test tasks, model hallucinations and the privacy risks of AI tools. Use them to see how well you can apply generative AI to testing.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A prompt contains the following section: `""" Code: function add(a, b) { return a + b; } """ Instruction: Write unit tests for the code above.` What is the specific purpose of the triple quotes (`"""`) in this prompt design?
You are using an LLM to review a user story for ambiguity. The model simply replies "The story looks good." To get a more critical analysis, you change the prompt to: "You are a pessimistic QA lead who assumes every requirement will fail. Criticize this user story and list 5 potential edge cases that are missing." Which prompting concept are you leveraging?
A tester asks an LLM to "Generate a list of Boundary Values for an age field (18-65)." The LLM returns values: 18, 19, 64, 65. The tester realizes this is insufficient for robust testing. How should the prompt be refined to improve the test coverage?
Case Study: Company X is using Generative AI to automate the creation of unit tests for their Python microservices. They have established a workflow where the LLM reads a function and outputs a test file. Problem: The generated tests often reference variables or functions that don't exist, causing the tests to fail execution immediately. Question: What is the most effective "Self-Correction" prompting strategy to resolve this?
When applying 'Meta Prompting' in a software testing context, what is the primary objective?
Which of the following represents a 'Negative Constraint' in prompt engineering for test data generation?
A QA team is analyzing a prompt used for generating regression test summaries. The prompt is: "Summarize these test logs." The output is inconsistent and misses key failures. Which component is missing from this prompt to make it effective?
What is the primary risk of using 'Prompt Injection' techniques in a testing context against a GenAI-powered chatbot application?
Which of the following is a primary data privacy concern when using public LLMs for generating test data based on production samples?
10 more free samples are waiting
Create a free account to unlock the whole CT-GenAI sample bank, or get full access to all 199 practice questions in the simulator.