Which one of the following array represents a binary max-heap? (A) [26, 13, 17, 14, 11, 9, 15] (B) [26, 15, 14, 17, 11, 9, 13] (C) [26, 15, 17, 14, 11, 9, 13] (D) [26, 15, 13, 14, 11, 9, 17]

1 Answer

Answer :

(C) [26, 15, 17, 14, 11, 9, 13]

Related questions

Description : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50'. What number is missing? -Riddles

Last Answer : 22

Description : Let A and B be two fuzzy integers defined as: A={(1,0.3), (2,0.6), (3,1), (4,0.7), (5,0.2)} B={(10,0.5), (11,1), (12,0.5)} Using fuzzy arithmetic operation given by (A) {(11,0.8), (13,1), (15,1)} ( ... ,0.2)} (D) {(11,0.3), (12,0.5), (13,0.6), (14,1), (15,0.7), (16,0.5), (17,0.2)}

Last Answer : (D) {(11,0.3), (12,0.5), (13,0.6), (14,1), (15,0.7), (16,0.5), (17,0.2)}

Description : Compute the value of adding the following two fuzzy integers: A = {(0.3,1), (0.6,2), (1,3), (0.7,4), (0.2,5)} B = {(0.5,11), (1,12), (0.5,13)} Where fuzzy addition is defined as μA+B(z) = maxx+y=z (min(μA(x), μB( ... ,18)} (D) {(0.3,12), (0.5,13), (0.6,14), (1,15), (0.7,16), (0.5,17), (0.2,18)}

Last Answer : (D) {(0.3,12), (0.5,13), (0.6,14), (1,15), (0.7,16), (0.5,17), (0.2,18)} 

Description : 24 14 26 ? 28 16 30 a) 13 b) 17 c) 15 d) 11 e) 20

Last Answer : The series consists of two series 1 and 2: Series 1 : 24 26 28 30 +2 +2 +2 Series 2 : 14 15 16 +1 +1 Answer: c)

Description : Float a[15], what is the size of array? A) 17 B) 14 C) 15 D) 16

Last Answer : 16

Description : What is the output of the following? i = 5 while True: if i%0O9 == 0: break print(i) i += 1 a) 5 6 7 8 b) 5 6 7 8 9 c) 5 6 7 8 9 10 11 12 13 14 15 …. d) error

Last Answer : d) error

Description : the range of the data 13, 18, 20, 15, 12, 17, 9, 14, 11, and 16 is ________.

Last Answer : the range of the data 13, 18, 20, 15, 12, 17, 9, 14, 11, and 16 is ________.

Description : The mean of 8 article was found to be 15. On rechecking, it was found that two article were wrongly taken as 11 and 9 instead of 16 and 14 respectively. Find the correct mean. A) 17.25 B) 13.65 C) 16.54 D) 16.25

Last Answer : D) Calculated mean of 8 articles = 15 Incorrect sum of these 8 articles = (15*8) = 120. Correct sum of these 8 articles = (incorrect sum) - (sum of incorrect articles) + (sum of actual articles) = [120 ... (30)] = 130 Therefore, correct mean = 130/8 = 16.25 Hence, the correct mean is 16.25.

Description : What is the median of this set of data values 11 13 14 15 18 20 23 26?

Last Answer : Feel Free to Answer

Description : Two students appeared at an examination. One of them secured 18marks more than the other and his marks was 72% of the sum of their marks. What are the marks obtained by them? a) 12.5,23.3 b) 26.7,16.0 c) 13.3,14.2 d) 11.45, 29.45 e) 29.8,15.4 

Last Answer : Answer: D  Let the marks secured by them be x and (x + 18)  Then sum of their marks = x + (x + 18) = 2x + 18  Given that (x + 18) was 72% of the sum of their marks  =>(x+18) = 72/100(2x+18)  => ... 11x = 126 x = 11.45  Then (x + 18) = 11.45 + 18 = 29.45  Hence their marks are 11.45 and 29.45

Description : Consider the following binary search tree: If we remove the root node, which of the node from the left subtree will be the new root? (A) 11 (B) 12 (C) 13 (D) 16

Last Answer : (D) 16

Description : A cartoon contains 15 torch lights out of which 3 are defective. Two torch light are chosen at random from this cartoon. The probability that at least one of these is defective is. A) 13/35 B) 14/35 C) 11/35 D) 17/35

Last Answer : Answer: A) P (none is defective) = 12c2/15c2 = (12*11/2*1)/(15*14/2*1) = 66/105=22/35 P (at least one is defective) = (1 – 22/35) =13/35

Description : If the purchases made during the year were Rs. 60,000, the balance of stock in trade at the beginning and at the end of the year were Rs. 12,000 and Rs. 9,000 respectively and the gross profit on sales was 1/5th, when which ... year ? (A) Rs. 15,750 (B) Rs. 14,000 (C) Rs. 12,500 (D) Rs. 17,250

Last Answer : Answer: Rs. 12,500

Description : State True or False. i) Binary search is used for searching in a sorted array. ii) The time complexity of binary search is O(logn). A) True, False B) False, True C) False, False D) True, True

Last Answer : D) True, True

Description : What will be the values of x, m and n after execution of the following statements? Int x, m, n; m=10; n=15; x= ++m + n++; A) x=25, m=10, n=15 B) x=27, m=10, n=15 C) x=26, m=11, n=16 D) x=27, m=11, n=16

Last Answer : C) x=26, m=11, n=16

Description : A national random sample of 20 ACT scores from 2010 is listed below. Calculate the sample mean and standard deviation. 29, 26, 13, 23, 23, 25, 17, 22, 17, 19, 12, 26, 30, 30, 18, 14, 12, 26, 17, 18 a. 20.50, 5.79 b. 20.50, 5.94 c. 20.85, 5.79 d. 20.85, 5.94

Last Answer : Katie earned 84,92,84,75 and 70 on her first 5 tests. What is the minimum grade Katie needs to earn on the next test to have a mean of 84?

Description : The inorder traversal of the following tree is: (A) 2 3 4 6 7 13 15 17 18 18 20 (B) 20 18 18 17 15 13 7 6 4 3 2 (C) 15 13 20 4 7 17 18 2 3 6 18 (D) 2 4 3 13 7 6 15 17 20 18 18

Last Answer : Answer: D 

Description : In how many ways can the string A ∩ B - A ∩ B - A be fully parenthesized to yield an infix expression? (A) 15 (B) 14 (C) 13 (D) 12

Last Answer : (B) 14

Description : Consider an array A[20, 10], assume 4 words per memory cell and the base address of array A is 100. What is the address of A[11, 5] ? Assume row major storage. (A) 560 (B) 565 (C) 570 (D) 575

Last Answer : (A) 560

Description : A software project was estimated at 352 Function Points (FP). A four person team will be assigned to this project consisting of an architect, two programmers, and a tester. The salary of the architect is Rs.80,000 per month, the ... ) Rs.28,16,000 (2) Rs.20,90,000 (3) Rs.26,95,000 (4) Rs.27,50,000

Last Answer : (4) Rs.27,50,000 

Description : Which of the following is not the internal sort? A) Insertion Sort B) Bubble Sort C) Merge Sort D) Heap Sort

Last Answer : C) Merge Sort

Description : Which of the following algorithms has lowest worst case time complexity? a) Insertion sort b) Selection sort c) Quick sort d) Heap sort

Last Answer : d) Heap sort

Description : Consider the situation in which assignment operation is very costly. Which of the following sorting algorithm should be performed so that the number of assignment operations is minimized in general? a) Insertion sort b) Selection sort c) Heap sort d) None

Last Answer : b) Selection sort

Description : Which of the following is not an in-place sorting algorithm? a) Selection sort b) Heap sort c) Quick sort d) Merge sort

Last Answer : merge sort

Description : Which of the following is a stable sorting algorithm? a) Merge sort b) Typical in-place quick sort c) Heap sort d) Selection sort

Last Answer : a) Merge sort

Description : In UNIX operating system, when a process creates a new process using the fork() system call, which of the following state is shared between the parent process and child process? (A) Heap (B) Stack (C) Shared memory segments (D) Both Heap and Stack

Last Answer : (C) Shared memory segments 

Description : Match the following types of variables with the corresponding programming languages: (a) Static variables (i) Local variables in Pascal (b) Stack dynamic (ii) All variables in APL (c) Explicit heap dynamic (iii) Fortran 77 (d) Implicit ... (ii) (C) (iii) (i) (iv) (ii) (D) (ii) (i) (iii) (iv)

Last Answer : (C) (iii) (i) (iv) (ii) 

Description : What is the output of the following? i = 1 while True: if i%2 == 0: break print(i) i += 2 a) 1 Page No 13 b) 1 2 c) 1 2 3 4 5 6 … d) 1 3 5 7 9 11 …

Last Answer : d) 1 3 5 7 9 11 …

Description : I have some matchsticks set up like this: I + XI = X. If you do not know Roman numerals, here is a quick starter: I=1 II=2 III=3 IV=4 V=5 VI=6 VII=7 VIII=8 IX=9 X=10 XI=11 ... are told to move the minimum number of matchsticks to make the question correct. So, how many do you have to move? -Riddles

Last Answer : Most people would get to one move at the least, but the real answer is zero moves. If you rotate the whole question around 180 degrees, it will display this: X = IX + I

Description : Income from Salary is explained in the section …………………… A) 12 to 14 B) 15 to 17 C) 18 to 22 D) 24 to 26

Last Answer : B) 15 to 17

Description : All active prostaglandins have at least one double bond between positions (A) 7 and 8 (B) 10 and 11 (C) 13 and 14 (D) 16 and 17

Last Answer : Answer : A

Description : Menarche usually occurs at age of: a) 8 and 10 years. b) 11 and 13 years. c) 14 and 16 years. d) 17 and 18 years. e) 18 and above.

Last Answer : b) 11 and 13 years.

Description : Using p=3, q=13, d=7 and e=3 in the RSA algorithm, what is the value of ciphertext for a plain text 5? (A) 13 (B) 21 (C) 26 (D) 33

Last Answer : Answer: Marks to all Explanation: p=3, q=13, d=7, e=3, M=5, C=? C = Me mod n n = p*q  = 3*13 = 39 C = 53 mod 39 = 8 Answer is 8.

Description : Find the range of the data : 14, 15, 16, 18, 19, 25, 30, 41, 26, 16, 13, 18, 20 and 26.

Last Answer : Find the range of the data : 14, 15, 16, 18, 19, 25, 30, 41, 26, 16, 13, 18, 20 and 26.

Description : What type of data is: a=[(1,1),(2,4),(3,9)]? a) Array of tuples b) List of tuples c) Tuples of lists d) Invalid type

Last Answer : b) List of tuples

Description : If the price of Mango is Rs. 130 per kg, Apple is Rs. 140 per kg and Orange is Rs. 80 per kg, then what is the ratio of their cost at vendor A? 1) 11 : 14 : 16 2) 39 : 28: 20 3) 39 : 28 : 21 4) 15 : 14 : 11 5) 39 : 26 : 20

Last Answer : 2) 39 : 28: 20

Description : If X is a binary number which is power of 2, then the value of X&(X-1) is: (1) 11....11 (2) 00.....00 (3) 100.....0 (4) 000.....1

Last Answer : Answer: 2

Description : Ten observations 6, 14, 15, 17, x + 1, 2x – 13, 30, 32, 34, 43 are written in ascending order. -Maths 9th

Last Answer : Here, the arranged data is 6, 14, 15, 17, x + 1, 2x - 13, 30, 32, 34, 43 Total number of observations = 10 Here, 10 is an even number , therefore median will be the mean of (10 / 2)th and (10 / 2 + 1)th observation. ... ⇒ 3x + 12 / 2 = 24 ⇒ 3x - 12 = 48 ⇒ 3x = 60 ⇒ x = 20 ∴ The value of x = 20

Description : Ten observations 6, 14, 15, 17, x + 1, 2x – 13, 30, 32, 34, 43 are written in ascending order. -Maths 9th

Last Answer : Here, the arranged data is 6, 14, 15, 17, x + 1, 2x - 13, 30, 32, 34, 43 Total number of observations = 10 Here, 10 is an even number , therefore median will be the mean of (10 / 2)th and (10 / 2 + 1)th observation. ... ⇒ 3x + 12 / 2 = 24 ⇒ 3x - 12 = 48 ⇒ 3x = 60 ⇒ x = 20 ∴ The value of x = 20

Description : Ten observations 6, 14, 15, 17, x+1, 2x -13, -Maths 9th

Last Answer : 6, 14, 15, 17, x + 1, 2x -13, 30, 32, 34, 43, Here, n = 10 Since the number of observations is 10 (an even number), therefore, the median = (10/2)th observation + (10/2 + 1)th observation/2 = 5th observation + 6th ... = x + 1 + 2x - 13/2 ⇒ 48 = 3x - 12 ⇒ 3x = 48 + 12 = 60 ⇒ x = 20

Description : Which of the following Article of Indian Constitution deals with the Right to Equality before Law? (1) Article – 13 (2) Article - 14 (3) Article – 15 (4) Article - 17

Last Answer : (2) Article - 14 Explanation: Right to equality is given under article 14 of Indian constitution. It ensures that every citizen shall be like-wise protected by the laws of the country. It means that ... Indian citizens on the basis of their gender, caste, creed, religion or even the place of birth.

Description : The provisions of reservation for OBC is made in the Constitution under which Articles? (1) Article 13 (ll) and 14 (2) Article 14 and 15 (3) Article 15 (IV) and 16 (IV) (4) Article 17 and 18

Last Answer : (3) Article 15 (IV) and 16 (IV) Explanation: Under Article 15 (IV) and 16 (IV), the provision of reservation for OBC is made in the constitution.

Description : In the Indian Constitution, the right to equality is granted by following Articles. They are: (1) Article 16 to Article 20 (2) Article 15 to Article 19 (3) Article 14 to Article 18 (4) Article 13 to Article 17

Last Answer : (3) Article 14 to Article 18 Explanation: Article 14 - Equality before Law Article 15 - Prohibition of Discrimination Article 16 - Equality of Opportunity Article 17 - Abolition of untouchability Article 18 - Abolition of titles.

Description : If core diameter of bolt is 13.8cm the it’s nominal diameter is given by? a) 17.27mm b) 15.34mm c) 14.67mm d) 16.34mm

Last Answer : a) 17.27mm

Description : 3 ? 113 673 3361 13441 40321 a) 13 b) 14 c) 15 d) 16 e) 17

Last Answer : The series is: 3 × 8 – 7 = 17; 17 × 7 – 6 = 113; 113 × 6 – 5 = 673; 673 × 5 – 4 = 3361; 3361 × 4 – 3 = 13441; 13441 × 3 – 2 = 40321 Answer: e)

Description : The ages of Gaurav and Goutham will be in the ratio 5 : 7 after ten years from now and will be in the ratio 13 : 18 after twelve years from now. Find the ratio of the sum of their ages 10 years hence to the sum of their ages 12 ... hence. 1 : 25 : 27 2 : 13 : 15 3 : 14 : 17 4 : 18 : 23 5 : 30 : 31

Last Answer : 5 : 30 : 31

Description : kajal rides his scooter 14km at an average speed of 16 km/hr and again travels 16km at an average speed of 14 km/hr. What is her average speed for the entire trip approximately? a) 15.36 km/hr b) 17.46 km/hr c) 13.56 km/hr d) 14.86 km/hr

Last Answer : D Total distance travelled =14+16=30Km Time taken to travel 14 km at an average speed of 16 km/hr =14/16=7/8 Hr Time taken to travel 16 km at an average speed of 14 km/hr =16/14=8/7 hr Total time taken = ... /Total time taken =30/(7/8+8/7) =30/(113/56) =30*56/113=1680/113 =14.86 km/hr

Description : (32.3)2 ÷ 4 + √361 = ?2 + 50 a) 15 b) 13 c) 11 d) 17 e) None of these

Last Answer : 32*32 = 1024 1024/4 + 19 = 256+19= 275 Answer: a)