MCQ Bank
___________ 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")
The ___________ object is perhaps the important thing that makes the Seq object more than just a string.
- A) Tuple
- B) Alphabet
- C) Float
- D) Double
In R language
## v is the concatenation of x1,x2,x3
x1 <- 3; x2 <- 12; x3 <- 7;
v <- c(x1, x2, x3)
print(v)
The result will be
- A) 3 12 7
- B) 21 17 13
- C) 6 12 21
- D) None
In maximum parsimony method ___________ is said invariant and therefore uninformative, because all trees invoke the same number of mutations.
- A) Position n
- B) Position 02
- C) Position 01
- D) Position 03
Write() function:
- A) Takes to write mode of the file
- B) Rewrites the text specified
- C) None of the above
- D) Writes a string to the file
Built-in list() function can be used to
- A) Convert string to lists
- B) Concatenate two strings
- C) Update single element using both positive and negative indexes
- D) To access a list
External branches exist between _____________________
- A) Between internal node and external leaf
- B) Between a node and a leaf
- C) Internal nodes
- D) None of the above
In programming, Properties of objects include:
- A) They are unmodifiable
- B) They are data structures
- C) They cannot contain methods
- D) Cannot be manipulated
In Python
Which of the following is more accurate for the following declaration?
x = Circle()
- A) x contains an int value
- B) x actually contains an object of type Circle
- C) x contains a reference to a Circle object
- D) Now you can assign int value to x
In Python
from module_name import function_name
Is used to:
- A) Import all the functions
- B) Import whole module
- C) Import whole function
- D) Import specific functions
There is a ______ where a line breaks in python
- A) “”
- B) End of line character
- C) /n
- D) "End of line character " and "/n" both
A data set has been read in R and stored in a variable “dataframe”. Which of the below codes will produce a summary (mean, mode, median) of the entire dataset in a single line of code?
- A) summary(dataframe)
- B) None of the above
- C) summarise(dataframe)
- D) stats(dataframe)