Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-1127-25 Topic 2 Question 5 Discussion

Actual exam question for Oracle's 1Z0-1127-25 exam
Question #: 5
Topic #: 2
[All 1Z0-1127-25 Questions]

Given the following code:

PromptTemplate(input_variables=["human_input", "city"], template=template)

Which statement is true about PromptTemplate in relation to input_variables?

Show Suggested Answer Hide Answer
Suggested Answer: C

Comprehensive and Detailed In-Depth Explanation=

In LangChain, PromptTemplate supports any number of input_variables (zero, one, or more), allowing flexible prompt design---Option C is correct. The example shows two, but it's not a requirement. Option A (minimum two) is false---no such limit exists. Option B (single variable) is too restrictive. Option D (no variables) contradicts its purpose---variables are optional but supported. This adaptability aids prompt engineering.

: OCI 2025 Generative AI documentation likely covers PromptTemplate under LangChain prompt design.


Contribute your Thoughts:

Vincent
16 days ago
I think the answer is C because PromptTemplate can support any number of variables, including none.
upvoted 0 times
...
Lashaunda
22 days ago
I'm not sure, but I think PromptTemplate can work with any number of variables.
upvoted 0 times
...
Vannessa
27 days ago
I disagree, I believe the answer is A.
upvoted 0 times
...
Shenika
1 months ago
I'll go with Option C. Seems like the most flexible and logical choice for a template-based system. Plus, who doesn't love a little flexibility? *winks*
upvoted 0 times
Lucy
2 days ago
User 2: Agreed, having the option to support any number of variables is definitely a plus.
upvoted 0 times
...
Arletta
12 days ago
User 1: I think Option C is the best choice too. It allows for any number of variables.
upvoted 0 times
...
Shantay
18 days ago
User 1: I think Option C is the best choice too. Flexibility is key.
upvoted 0 times
...
...
Tien
1 months ago
Option D is clearly wrong. If PromptTemplate can't use any variables, what's the point of having it? *chuckles*
upvoted 0 times
...
Estrella
1 months ago
I think the answer is C.
upvoted 0 times
...
Shawna
1 months ago
I'm going with Option A. Doesn't a template need at least two variables to be useful?
upvoted 0 times
...
Pearline
1 months ago
Option C makes the most sense to me. PromptTemplate should be able to handle any number of variables, including zero.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77