Practice Free AD0-P101 Exam Online Questions
Question #1
Which tag is used to invoke reusable custom output blocks defined as custom tags in ColdFusion?
- A . <cfblock>
- B . <cftemplate>
- C . <cfcustom>
- D . <cfmodule>
Correct Answer: D
Question #2
Which file formats can <cfdocument> output? (Choose 2)
- A . PDF
- B . Excel
- C . HTML
- D . Word
Correct Answer: AC
Question #3
What is the proper use of the cfset tag?
- A . <cfset varName = value>
- B . <cfset varName: value>
- C . <cfset varName, value>
- D . <cfset varName => value>
Correct Answer: A
Question #4
Which action of the <cfpdf> tag is used to extract text from a PDF file?
- A . extractText
- B . readText
- C . getText
- D . parseText
Correct Answer: A
Question #5
Which tag is used to create PDF documents in ColdFusion?
- A . <cfpdf>
- B . <cfdocument>
- C . <cfpdfdoc>
- D . <cfcreatepdf>
Correct Answer: B
Question #6
What are valid uses of the <cfreturn> tag? (Choose 3)
- A . To return a value from a method
- B . To end the execution of a method early
- C . To specify output formatting
- D . To return complex objects
Correct Answer: ABD
Question #7
Which <cfpdf> actions allow manipulation of multiple PDF files? (Choose 2)
- A . merge
- B . split
- C . extractText
- D . rotate
Correct Answer: AB
Question #8
A race condition is observed when accessing an application scope variable.
What can the developer do to fix it?
- A . Use <cftransaction> to manage database changes.
- B . Lock the variable access with <cflock>.
- C . Change the scope to session.
- D . Avoid initializing variables in Application.cfc.
Correct Answer: B
Question #9
What are advantages of the Ternary operator? (Choose 3)
- A . Reduces code verbosity
- B . Handles null values
- C . Enhances readability for complex conditions
- D . Ensures strict type checking
- E . Allows inline condition evaluation
Correct Answer: ACE
Question #10
What are the benefits of parameterized queries in ColdFusion? (Choose 3)
- A . Improves performance
- B . Prevents SQL injection
- C . Enhances code readability
- D . Automatically optimizes database indexing
- E . Reduces query execution time
Correct Answer: ABC
