Purchase Solution

Perl: RNA Code

Not what you're looking for?

Ask Custom Question

The following code is written in the Perl programming language:
$RNA = "AUGCGUAGAACAUAA";
@sequence = split(//,$RNA)

What does sequence [3] equal?

We next use the following code to define the variable $temp:
$temp = scalar @sequence;

What is the value of $temp?

How many places will the regular expression /U[AG]A/ match $RNA (e.g. how many matches for the expression: $RNA =~/U[AG]A/.
a) 0
b) 1
c) 2
d) 3

Purchase this Solution

Solution Summary

This solution quickly reviews regular expression in the perl programming language and how to apply this concept to the given problems. The solution is verified by perl.

Solution Preview

1. $sequence[3] should equal to the character C
This is because:

split(//,$RNA)

splits the string RNA into an character array. Notice the array starts at index 0, so $sequence[3] is ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.