Most viewed questions in Programming and DS

8 votes
3 answers
153
Consider the following pseudo-codex:=1; i:=1; while (x <= 1000) begin x:=2^x; i:=i+1; end;What is the value of i at the end of the pseudo-code?4567
5 votes
6 answers
154
6 votes
3 answers
155
A one dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting addres...
44 votes
9 answers
156
Compute the post fix equivalent of the following expression $3^*\log(x+1)-\frac{a}{2}$
16 votes
3 answers
157
A is an array $[2.....6, 2.....8, 2.......10]$ of elements. The starting location is $500$. The location of an element $A(5, 5, 5)$ using column major order is __________...
18 votes
2 answers
160
6 votes
3 answers
163
39 ) Suppose a multidimensional array is declared as m(2:8,-4:1,6:10). If the base address is 200 and there are 4 words per memory location, then the address of A[5,-1,8]...
5 votes
2 answers
165
Given a binary-max heap. The elements are stored in an arrays as $25, 14, 16, 13, 10, 8, 12$. What is the content of the array after two delete operations?$14,13,8,12,10$...
2 votes
1 answer
166
If class A is friend of class B and if class B is friend of class C, which of the following is true?a. Class C is friend of class Ab. Class A is friend of class Cc. Class...
29 votes
2 answers
168