Question: For each of the Implementation Practice lab components, read their specifications carefully. Then, for each of the operations below, match it to the expected behaviour.
For each of the Implementation Practice lab components, read their specifications carefully. Then, for each of the operations below, match it to the expected behaviour. If the expected behaviour is an exception, choose the appropriate exception. If the operation is "void" select what the strand would be after the operation.
Note that if you see an ACGU this represents an arbitrary RNAStrand. If you see ACGT this represents an arbitrary DNAStrand.
Question options:
AGaddX returns
AGaddX returns
G C Areverse updates "this" NAStrand to
AGaddC returns
splice updates "this" NAStrand to
C G Areverse updates "this" NAStrand to
ACGUisPairAU returns
C G Areverse updates "this" NAStrand to
A CspliceG U updates "this" NAStrand to
AGaddC returns
G A Creverse updates "this" NAStrand to
ACGUisPairTA returns
AGaddC returns
ACGUisPairGC returns
A C G UspliceA C G T updates "this" NAStrand to
A
C
G
empty strand
IndexOutOfBoundsException
IllegalArgumentException
A C G U
A C G T
true
false
C A G
A C G
A G C
G A C
C G A
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
