Question
Consider the following Python code: text =
"banana" char_to_find = 'a' count = 0 for i in range(len(text)): if text[i] == char_to_find: count += 1 if count == 2: print(i) break What will be the output of this code?Solution
Correct Answer: B (b-0, a-1, n-2, a-3, n-4, a-5) - i=0, text='b' - i=1, text='a', count=1 - i=2, text='n' - i=3, text='a', count=2. count == 2 is true. Prints 3. Breaks.
Temperature required for pasteurization is
During processing, foods can get contaminated because of:
a. Equipments
b. Labour
c. Raw materials
Microorganism comes under the category of thermophiles is/are
Match the following mineral metabolism & their Disorders A to D
1. Phosphorus metabolism A. Osteomalacia & Rickets
...
Which of the following statements is / are correct?
a. Generation time is the time required by the cell to double its number
b....
Statement 1: There will be a shift of demand snacks, convenience food and organic and diet food. Statement 2: High taxation is a constraint for the food...
What is the full form of NOEL?
(i)Food components (a ) Product of digestion
(ii) Carbohydrates (b) fatty acid glycerol
(iii)Lysine ...
The limiting amino acid in green vegetables is:
Which is biotechnological milestone?