Question
An integer 'p' is added to each of 7, 15, 27 and 45 so
that the resulting numbers will be in proportion in given order only. Find the value of '(p + 4)'.Solution
Let 'p' be the number that must be added to each of the given numbers so that they become proportional. i.e. (7 + p) :(15 + p) ::(27 + p) :(45 + p) So, (7 + p) ÷ (15 + p) = (27 + p) ÷ (45 + p) Or, (7 + p) (45 + p) = (27 + p) (15 + p) Or, 315 + 7p + 45p + p2 = 405 + 27p + 15p + p2 Or, 315 + 52p = 405 + 42p Or, 10p = 90 Or, 'p' = 9 Required value = p + 4 = 9 + 4 = 13
Given a singly linked list with 'n' nodes, what is the time complexity to delete the last node?
Which I/O scheduling algorithm is most suitable for minimizing seek time in hard drives?
Which type of database join returns only the matching rows from two tables based on a condition?
- Which of the following is the primary characteristic of Infrastructure as a Service (IaaS) in cloud computing?
Which of the following is a primary advantage of using a star schema in a data warehouse design?
Tarjan’s algorithm is used to find:
To insert a new node at the beginning of a singly linked list, which of the following operations is typically performed?
Which of the following accurately describes the role of a "foreign key" in a relational database system?
What is the primary purpose of an abstract class?
Which SQL query will retrieve the second highest salary from an Employee table?