Adobe
9A0-127 · Question #99
Given the following CFQUERY tag: <cfquery name="qArtist" datasource="cfartgallery"> SELECT * FROM Artists </cfquery> Which statement caches the query object in memory?
The correct answer is C. <cfcache action="put" value="#qArtist#" id="qArtistQuery">. See the full explanation below for the reasoning.
Question
Given the following CFQUERY tag:
<cfquery name="qArtist" datasource="cfartgallery"> SELECT * FROM Artists </cfquery> Which statement caches the query object in memory?
Options
- A<cfcache action="put" name="qArtist" id="qArtistQuery">
- B<cfcache action="get" name="qArtist" id="qArtistQuery">
- C<cfcache action="put" value="#qArtist#" id="qArtistQuery">
- D<cfcache action="put" value="qArtist" id="qArtistQuery">
How the community answered
(28 responses)- A7% (2)
- B14% (4)
- C75% (21)
- D4% (1)
Community Discussion
No community discussion yet for this question.