MCQ Bank
ClustalW is the tool used for ______________.
- A) Structure Prediction
- B) Data alignment and Tree construction
- C) Sequence Alignment
- D) Molecular docking
What is the output of the following code?
def nprint(message, n):
while(n > 0):
print(message)
n-=1
nprint('z', 5)
- A) zzzz
- B) Infinite Loop
- C) Syntax Error
- D) zzzzz
Which of the following statements is not TRUE about Python
- A) OOP is optional in python
- B) All are TRUE
- C) Everything in python is an object
- D) Python class doesn’t implement user-defined data types
Gaps in alignments represent ______________ in sequences
- A) Deletion
- B) Genetic Rearrangement
- C) All of the above
- D) Insertion
Which of the following command is used to open a file “c:\temp.txt” in read-mode only?
- A) infile = open(file = “c:\\temp.txt”, “r+”)
- B) infile = open(file = “c:\temp.txt”, “r+”)
- C) infile = open(“c:\temp.txt”, “r”)
- D) infile = open(“c:\\temp.txt”, “r”)
Append() and Pop() functions can be used together in
- A) Strings
- B) Indexing
- C) LIFO()
- D) List()
Append () function is used to
- A) Add or delete elements
- B) Add elements from the start of a string
- C) Delete elements from a string
- D) Add objects at the end of a string
A slice operator in list is used to
- A) To access a specific character of a list
- B) To do indexing
- C) To Slice a list
- D) To access a part of a list
____________________ is a database used for protein network analysis.
- A) STRING
- B) UNIPROT
- C) PDB
- D) DAVID
Which one of the following is incorrect about dictionaries?
- A) Each key can occur many times
- B) Key can be immutable
- C) Elements are key-value pairs
- D) Elements are separated by commas
Keyword argument is an argument:
- A) None of the above
- B) Preceded by an identifier
- C) Both of the above
- D) That is positional
___________ is not a function to remove elements from a set
- A) s.discard(x)
- B) s.remove(x)
- C) s.spam(x)
- D) s.pop(x)
Correct and accurate phylogenetic analysis depends upon quality of _______________________.
- A) Structure alignment
- B) Structure Prediction
- C) Multiple Sequence alignment
- D) Tree Construction
>>> {base for base in "ATGCA"}, is a:
- A) Tuple
- B) Set
- C) Dictionary
- D) List
Keeping the Python language in mid:
[expression for target1 in iterable1 [if condition1]
for target2 in iterable2 [if condition2]
for targetN in iterableN [if conditionN] ]
The above format is a:
- A) If and else Condition alone
- B) Tuple
- C) List Comprehension
- D) For loop
Below are the types of evolutionary trees except
- A) Dandogram
- B) Phylogram
- C) Ultrametric tree
- D) Cladogram
Sets in Python can be defined as:
- A) An unordered collection of unique and immutable objects
- B) Collection which is ordered and unchangeable
- C) Sequence of characters
- D) None of the above.
___________________ tree can be rooted so that all paths from the root to leaf have the same length
- A) Ultrametric
- B) Phylogram
- C) Cladogram
- D) Dandogram
Which of the following statements are true regarding the opening modes of a file?
- A) When you open a file for writing, if the file does not exist, an error occurs.
- B) When you open a file for reading, if the file does not exist, an error occurs.
- C) When you open a file for reading, if the file does not exist, the program will open an empty file.
- D) When you open a file for writing, if the file does not exist, a new file will not be created.
>>> my_seq.reverse_complement()
Will return:
- A) Seq('AGTACACTGGT')
- B) Seq('ACCAGTGTACT')
- C) Seq('TCATGTGACCA')
- D) ("AGTACACTGGT")