Monday, June 28, 2021

advantage and disadvantage of python programming?

 Question: advantage and disadvantage of python programming?

Solution: 

Advantages of Python

1. Easy to Read, Learn and Write

Python is a high-level programming language that has English-like syntax. This makes it easier to read and understand the code.

Python is really easy to pick up and learn, that is why a lot of people recommend Python to beginners. You need less lines of code to perform the same task as compared to other major languages like C/C++ and Java.

2. Improved Productivity

Python is a very productive language. Due to the simplicity of Python, developers can focus on solving the problem. They don’t need to spend too much time in understanding the syntax or behavior of the programming language. You write less code and get more things done.

3. Interpreted Language

Python is an interpreted language which means that Python directly executes the code line by line. In case of any error, it stops further execution and reports back the error which has occurred.

Python shows only one error even if the program has multiple errors. This makes debugging easier.

4. Dynamically Typed

Python doesn’t know the type of variable until we run the code. It automatically assigns the data type during execution. The programmer doesn’t need to worry about declaring variables and their data types.

5. Free and Open-Source

Python comes under the OSI approved open-source license. This makes it free to use and distribute. You can download the source code, modify it and even distribute your version of Python. This is useful for organizations that want to modify some specific behavior and use their version for development.

6. Vast Libraries Support

The standard library of Python is huge, you can find almost all the functions needed for your task. So, you don’t have to depend on external libraries.

But even if you do, a Python package manager (pip) makes things easier to import other great packages from the Python package index (PyPi). It consists of over 200,000 packages.

7. Portability

In many languages like C/C++, you need to change your code to run the program on different platforms. That is not the same with Python. You only write once and run it anywhere.

However, you should be careful not to include any system-dependent features.

Disadvantages of Python

1. Slow Speed

We discussed above that Python is an interpreted language and dynamically-typed language. The line by line execution of code often leads to slow execution.

The dynamic nature of Python is also responsible for the slow speed of Python because it has to do the extra work while executing code. So, Python is not used for purposes where speed is an important aspect of the project.

2. Not Memory Efficient

To provide simplicity to the developer, Python has to do a little tradeoff. The Python programming language uses a large amount of memory. This can be a disadvantage while building applications when we prefer memory optimization.

3. Weak in Mobile Computing

Python is generally used in server-side programming. We don’t get to see Python on the client-side or mobile applications because of the following reasons. Python is not memory efficient and it has slow processing power as compared to other languages.

4. Database Access

Programming in Python is easy and stress-free. But when we are interacting with the database, it lacks behind.

The Python’s database access layer is primitive and underdeveloped in comparison to the popular technologies like JDBC and ODBC.

Huge enterprises need smooth interaction of complex legacy data and Python is thus rarely used in enterprises.

5. Runtime Errors

As we know Python is a dynamically typed language so the data type of a variable can change anytime. A variable containing integer number may hold a string in the future, which can lead to Runtime Errors.

Sunday, June 27, 2021

Cells of which layer of anther wall are binucleate and nourishes the developing pollen grain? (A) Epidermis (B) Exothecium (C) Middle layer (D) Tapetum

Question:

Cells of which layer of anther wall are binucleate and nourishes the developing pollen grain? 

(A) Epidermis 

(B) Exothecium 

(C) Middle layer 

(D) Tapetum

Answer: option (D) "Tapetum"

Explanation:

Structure of Microsporangium: A typical microsporangium appears nearly circular in outline. It is generally surrounded by four wall layers, viz. epidermis, endothecium, middle layers and tapetum. The outer three wall layers perform the function of protection and help in dehiscence of anther to release the pollen. Tapetum is the innermost wall layer. Tapetum nourishes the developing pollen grains. Cells of the tapetum have dense cytoplasm and are generally bi-nucleate. 

Hence, option (D) "Tapetum" is the correct answer.

Function f(x) = |x| - |x-1| is monotonically increasing when (1) x < 0 (2) x > 1 (3) x < 1 (4) 0 < x < 1

Question:

Function f(x) = |x| - |x-1| is monotonically increasing when 

(1) x < 0 

(2) x > 1 

(3) x < 1 

(4) 0 < x < 1

Answer: option (4) "0<x<1"

Explanation:

Given: f(x)=|x| - |x-1| 

To find: At which condition f(x) is Monotonically increasing. 

Solution: 

f(x)=|x| - |x-1| 

for x>1 

f(x)=x-(x-1)=1 

f '(x)=0 

for 0<x<1 

f(x)=x-(1-x)=2x-1

 f(x)=2>0 

Monotonically increasing 

for x<0 

f (x)=-x-(1-x)= -1 

f '(x)=0 

0<x<1 is the interval for f(x) to be monotonically increases. 

Hence, option (4) "0<x<1" is the correct answer.

Bleaching action of H2O2 is due to its : (A) Oxidizing nature (B) Reducing nature (C) Acidic nature (D) Thermal instability

Question:

Bleaching action of H2O2 is due to its : 

(A) Oxidizing nature 

(B) Reducing nature 

(C) Acidic nature 

(D) Thermal instability

Answer: option (1) " oxidizing nature"

Explanation:

It acts as bleaching agent due to the release of nascent oxygen. Thus, the bleaching action of hydrogen peroxide is permanent and it is due to oxidation. It oxidizes the coloring matter to a colorless product. 

H2O2  H2O + [O]

Hence, option (1) " oxidizing nature" is the correct answer.

Which of the following statements regarding the class phycomycetes is correct ? (A) These are found in aquatic habitats and on decaying wood in moist and damp places or as obligate parasites on plants (B) Mycelium in these fungi is aseptate and coenocytic (C) Asexual reproduction occurs by motile z0ospores and by non-motile apanospores (D) All of these

Question:

Which of the following statements regarding the class phycomycetes is correct ? 

(A) These are found in aquatic habitats and on decaying wood in moist and damp places or as obligate parasites on plants 

(B) Mycelium in these fungi is aseptate and coenocytic 

(C) Asexual reproduction occurs by motile z0ospores and by non-motile apanospores 

(D) All of these

Answer:  option (D) "All the above"

Explanation:

Phycomycetes are characterized by the aseptate coenocytic hyphae. Asexual reproduction occurs by motile zoospores or non-motile aplanospores produced endogenously inside sporangia. Members of Phycomycetes are found in aquatic habitats and on decaying wood in moist and damp places or as obligate parasites on plants. 

Hence, option (D) "All the above" is the correct answer.

Which one of the following statements is correct regarding Sexually Transmitted Diseases (STD)? (1) The chances of a 5-year boy contacting a STD are very little. (2) A person may contact syphilis by sharing milk with the one who is already suffering from the same disease. (3) Haemophilia is one of the STD. (4) Genital herpes and sickle-cell anaemia are both STD.

Question: 

Which one of the following statements is correct regarding Sexually Transmitted Diseases (STD)? (1) The chances of a 5-year boy contacting a STD are very little. 

(2) A person may contact syphilis by sharing milk with the one who is already suffering from the same disease. 

(3) Haemophilia is one of the STD. 

(4) Genital herpes and sickle-cell anaemia are both STD.

Answer: option (1) "The chances of a 5-years boy contracting a STD are very little"

Explanation:

Syphilis is caused by bacterium Treponema pallidum. It is a sexually transmitted disease (STD) which is transmitted through sexual intercourse with infected person. Haemophilia is an X-linked genetic disorder of blood, It is not transmitted via any sexual practice. Genital herpes is an STD while sickle-cell anaemia is an autosomal hereditary disorder. The chances of a 5 years old boy contacting an STD are very rare since he is unlikely to have sex at this age. So, the correct answer is 'The chances of a 5-years boy contracting a STD are very rare'. 

Hence, option (1) "The chances of a 5-years boy contracting a STD are very little" is the correct answer.

Antimarkonikov's addition of HBr is not observed in (A) Propene (B) But-1-ene (C) but-2-ene (D) Pent-2-ene

Question:

Antimarkonikov's addition of HBr is not observed in 

(A) Propene 

(B) But-1-ene 

(C) but-2-ene 

(D) Pent-2-ene 

Answer: option (C) but-2-ene

Explanation:

The Anti-Markovnikov's addition is also called the peroxide effect or the Kharasch effect. The Anti-Markovnikov's rule states that, in the presence of peroxide like benzoyl peroxide (C6H5CO-O-O-COC6H5), the addition of HBr to unsymmetrical alkenes takes place contrary to the Markovnikov's rule. In Markovnikov's rule, the negative part of the addendum gets attached to the carbon atom in the double bond which has a lesser number of a hydrogen atom or more substituted carbon atom. So, in Anti- Markovnikov's rule, the negative part of the addendum gets attached to the carbon atom in the double bond which has more number of hydrogen atoms. 

(A) Propene: The formula of Propene is CH2=CH-CH3. This is an unsymmetrical alkene. So according to the Anti- Markovnikov's rule, the negative part will attach the carbon atom with 2 hydrogen atoms. 

(B) But-1-ene: The formula of But-1-ene is CH2=CH-CH2-CH3. This is an unsymmetrical alkene. So according to the Anti- Markovnikov's rule, the negative part will attach the carbon atom with 2 hydrogen atoms.

(C)- But-2-ene: The structure of 2-Butene is CH3-CH=CH-CH3. This is a symmetrical alkene and the Anti- Markovnikov's rule will not be observed in 2-Butene. 

(D)- pent-2-ene The structure of 2-Pentene is CH3-CH=CH-CH2-CH3. This is an unsymmetrical alkene. So according to the Anti- Markovnikov's rule, the negative part will attach the carbon atom with the methyl group because it is less substituted. 

Hence, option (C) "But-2-ene" is the correct answer.

What is Mutualism? write type and example.

Question: What is Mutualism? write type and example. Answer: Mutualism: The term mutualism can be simply defined as a relationship in which ...