Question
In how many ways can three girls and three boys be
seated in a straight line such that three girls never sit together?Solution
3 boys and 3 girls Total =6 Total way to make everyone sit in a straight line=6! =6×5×4×3×2×1=720 If we consider 3 girls as 1 then the total=3+1=4! How to make all three girls sit together in a straight line=4! ×3! =4×3×2×3×2=144 So, the total way to avoid sitting with all three girls is=720-144=576
A stack follows which principle for data access?
Which cryptographic concept ensures that data integrity is preserved and cannot be altered during transmission?
Which memory type is the fastest but most expensive, typically located directly on the CPU?
Which type of database join returns only the matching rows from two tables based on a condition?
- Internet of Things (IoT)
In an IoT ecosystem, which protocol is most efficient for constrained devices communicating over lossy networks?
... Which of the following is the primary reason why polymorphism is useful in Object-Oriented Programming (OOP)?
Which attack can be mitigated using DNSSEC (Domain Name System Security Extensions)?
Which cloud service model allows developers to deploy their applications without managing the underlying infrastructure?
Which algorithm is used for shortest path in graphs?
Which of the following is a primary advantage of using a star schema in a data warehouse design?