Question
In an A.P a9 = 40, then find sum of first 17 terms of
that A.P.Solution
General form of A.P is a, a + d, a + 2d, a + 3d….. Here a9 = 40; so 9th term is a + 8d = 40 then S17 =? ⇒ Sn = (n/2) [2 x a + (n – 1)d] = 0 ⇒ S17 = (17/2) [2a + 16d] ⇒ (17) [a + 8d] ⇒ 17 x 40 = 680
A data analysis task requires repeatedly extracting the element with the highest priority from a collection. Which heap operation is used for this, and ...
In R, which function reshapes data from long to wide format?
Consider the following C code snippet designed to calculate the sum of digits of a non-negative integer:
  #include
  in...
Quick Sort, another Divide and Conquer algorithm, partitions an array around a pivot. The choice of pivot can significantly impact its performance. What...
The "load factor" of a hash table is a critical metric. What does it represent?
Which is not a access modifier in java?
Which of the following statements accurately describes the layer functionality of a router in network communication?
Consider the following Java code snippet:
  import java.util.PriorityQueue;
  public class HeapQuestion1 {
    publ...
What is the output of the following part of python program?
x = ("apple", "banana", "cherry")
print(x)Â
Complete the Java method to extract a substring from text starting at startIndex and having length characters.
public class StringUtil {
�...