Question
5 boys and 3 girls are to be seated on chairs arranged in a
row. If the arrangement is made at random, find the probability that no two girls will be seated next to one another.Solution
8 people can be seated on 8 chairs in 8! ways.
No two girls will be seated next to one another, so the arrangement would be like:
__ B __ B __ B __ B __ B __
5 boys can be seated at 5 places in 5! Ways. After this, 3 girls can be seated in the remaining 6 places in 6 P 3  ways.
Favorable outcomes= 5! XÂ 6 P 3 .
Probability = (5! x 6!)/(3! x 8!) = 5/14
What is the main characteristic of a greedy algorithm?
What is the purpose of a firewall in cybersecurity?
In the context of backups, what is a retention policy?
Which of the following is a common programming technique to prevent SQL injection attacks?
Which tool is used to build data pipelines and workflows in Hadoop-based systems?
Which part of the RDBMS architecture is responsible for maintaining a physical copy of the database on disk?
Join of two table R and S where each has “m” and “n” tuples will be of size?
Which of the following are TCL commands
What is the primary role of the "View" in the MVC architecture?
What is the output of the following code?
print(0.3 + 0.5 == 0.8)