Question: Eoreach of the Immlementation Practice lab components, read their specifications Pre - lab 1 Questions of the operations below, match it to the expected behaviour.

Eoreach of the Immlementation Practice lab components, read their specifications
Pre-lab 1 Questions 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 A,C,G,U this represents an arbitrary RNAStrand. If you see
A,C,G,T this represents an arbitrary DNAStrand.
[A,G]*add(2,x) returns
[A,G]*add(4,x) returns
[A,C,G,U].isPair(T,A)
returns
A
[].splice(0,[]) updates
"this" NAStrand to
C
[C, G, A].reverse(0,1)
G
updates "this" NAStrand
to
[](empty strand)
[A,G]*add(3,C) returns
IndexOutOfBoundsException
A,C,G,U.isPair(A,U)
IllegalArgumentException
returns
A,C,G,U
11vv,[A,G]*add(1,C) returns
[G, C, A].reverse(0,2)
updates "this" NAStrand
to
[A, C].splice(2,[G, U])
updates "this" NAStrand
to
A,C,G,T
[G, A, C].reverse (0,3)
updates "this" NAStrand
to
C,G,A.reverse (0,0)
updates "this" NAStrand
to
true
false
C,A,G
A,C,G
A,G,C
G,A,C
A,G.add (2,C) returns
C,G,A
[A, C, G, U].splice(4,[A, C,
G,T) updates "this"
NAStrand to
[A,C,G,U].isPair(G,C)
returns
 Eoreach of the Immlementation Practice lab components, read their specifications Pre-lab

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!