Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

Assess three steps in the selection process.

Answered: 1 week ago

Question

Identify the steps in job analysis.

Answered: 1 week ago