Lecture 2&3: Computing, SQL, and Perl Flashcards

1
Q

What are some types of programming languages?

A

General Purpose - Perl, Python, C++
Markup - HTML, (La)TeX, XML
Specialized - Matlab, SQL, Octave

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the different categories of programming languages?

A

Interpreted - Perl, BASH
Part-compiled - Java, Python
JIT - Python, Perl
Compiled - C++, FORTRAN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the different paradigms of programming languages?

A

Object-oriented - Python
Functional
Procedural - C, Perl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between compiled and interpreted languages?

A

-An Interpreted language converts the source file to the processor language (hexadecimal code) every time it runs.

-A compiled language converts the source file that is able to directly interact with the processor every time is is run.

As a result, a compiled language is faster, and you do not need the compiler present each time.
However, it is slower to develop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is SQL?

A

Structured Query Language (SQL) is programming language that allows to design and manipulate relational databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an algorithm?

A

A complete and precise set of steps that will solve a problem and achieve an identical result whenever given the same set of data to a defined level of accuracy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some key SQL commands?

A

SELECT - What we want to output
FROM - The table we will query
WHERE - conditional statement (e.g.. if we want to select data WHEN two things are true)
DISTINCT - Only select unique values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are some advantages of Perl over Python?

A

You can read files without opening them.

Calling external programs are trivial

Variable declaration possible

Stable language - no changes to syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How are variables defines in Perl?

A

$variable_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How are lists/arrays defined in Perl?

A

defining: @list_name
Referring to one item: $list_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How are dictionaries defined in Perl?

A

defining: %dict_name
Referring to one item: $dict_name{‘key’} = value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the comparison strings in Perl?

A

less than: lt
less than or greater to: le
equal to: eq
greater than or equal to: ge
greater than: gt
not equal to: ne

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the syntax to select lines in Perl?

A

while(<>)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Mention the computer types that specialize in different parts of biology.

A

Mac & PC: Zoology, DNA, Phylogeny
Mini/Mainframe: Crystallography, Protein Sequence and Structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Databank and Database?

A

A Databank is a collection of data without an associated query tool.

A Database is a structured collection of data with some tool enabling it to be queried.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is data mining and how can it be applied to biology?

A

Data mining extracts patterns, relationships, and meanings from data.

It can be used to extract sequence patterns or riles characteristic of a protein family.

17
Q

What are some examples of Machine Learning in Bioinformatics?

A

NNPRED
JNET
PHD
PSIPred