A three dimensional array in ‘C’ is declared as int A[x][y][z]. Here, the address of an item at the location A[p][q][r] can be computed as follows (where w is the word length of an integer): (A) &A[0][0][0]+w(y*z*q+z*p+r) (B) &A[0][0][0]+w(y*z*p+z*q+r) (C) &A[0][0][0]+w(x*y*p+z*q+r) (D) &A[0][0][0]+w(x*y*q+z*p+r)

1 Answer

Answer :

Answer: B

Related questions

Description : A method name myMethod( ) that needs two integer arguments is declared as A) public void myMethod( ); B) public void myMethod(int a, int b); C) public void myMethod(int a, b); D) public int myMethod(a, b);

Last Answer : B) public void myMethod(int a, int

Description : main() { Int a=3, b=2, c*d*e; d=&a; e=&b; c=*d+*e; } Which one of the given answers is correct? A) a=4, c-6 B) a=3, c=5 C) a=3, c=6 D) a=3, c=8

Last Answer : B) a=3, c=5

Description : Trace the error: void main( ) { int *b, &a; *b = 20 printf(“%d, %d”, a, *b) } (A) No error (B) Logical error (C) Syntax error (D) Semantic error

Last Answer : (C) Syntax error

Description : The correct way to round off a floating number x to an integer value is (A) y = (int)(x+0.5) (B) y = int(x+0.5) (C) y = (int)x+0.5 (D) y = (int)((int)x+0.5)

Last Answer : (A) y = (int)(x+0.5)

Description : Assume that variable x resides at memory location 1234, y at 1111 and p at 2222. Int x=1, y=2, *p; p=&x; y=*p; What will be the value of y after execution of above code? A) 2 B) 1 C) 1234 D) 1111

Last Answer : C) 1234

Description : If a variable is declared final, it must include ...................... value. A) integer B) no C) initial D) float

Last Answer : C) initial

Description : A Boolean operator Ө is defined as follows: 1Ө1=1, 1Ө0=0, 0Ө1=0 and 0Ө0=1 What will be the truth value of the expression (xӨy)Өz = xӨ(yӨz)? (A) Always false (B) Always true (C) Sometimes true (D) True when x, y, z are all true

Last Answer : (B) Always true

Description : If an integer occupies 4 bytes and a character occupies 1 byte of memory, each element of the following structure would occupy how many bytes ? struct name { int age; char name[30]; }; A) 30 B) 32 C) 34 D) 36

Last Answer : C) 34

Description : Write the given sets in roster form: (a). P = {y: y is an integer and -4 < y < 6}. (b). Q = {y: y is a natural number which is

Last Answer : (i) A = {x: x is an integer and †3 < x < 7} The elements of this set are †2, †1, 0, 1, 2, 3, 4, 5, and 6 only. Therefore, the given set can be written in roster form as A = {†2, †... and 80 only. Therefore, this set can be written in roster form as C = {17, 26, 35, 44, 53, 62, 71, 80}}.

Description : What does the following declaration mean ? int (*ptr) [10]; (A) ptr is an array of pointers of 10 integers. (B) ptr is a pointer to an array of 10 integers. (C) ptr is an array of 10 integers. (D) none of the above.

Last Answer : (B) ptr is a pointer to an array of 10 integers.

Description : Eight persons P, Q, R, S, W, X, Y and Z in which 4 females are facing towards and 4 males facing away from the center. Males and females are seated alternately. I. X is male, W position is 3rd to the right of X ... . Which of the following is correct for neighbors? a) X, W b) R, X c) S, W d) P, S

Last Answer : Ans: option (d)

Description : Eight persons P, Q, R, S, W, X, Y and Z in which 4 females are facing towards and 4 males facing away from the center. Males and females are seated alternately. I. X is male, W position is 3rd to the right of X and ... R & Y are neighbors. Who is the only female in between X & R? a) Z b) P c) Y d) Q

Last Answer : Ans: option (c)

Description : Eight persons P, Q, R, S, W, X, Y and Z in which 4 females are facing towards and 4 males facing away from the center. Males and females are seated alternately. I. X is male, W position is 3rd to the right of X and exactly opposite to Q. ... a) S, Q, R, W b) P, Q, Y, W c) P, Q, R, W d) P, Q, R, S

Last Answer : b) P, Q, Y, W

Description : Eight persons P, Q, R, S, W, X, Y and Z in which 4 females are facing towards and 4 males facing away from the center. Males and females are seated alternately. I. X is male, W position is 3rd to the right of X ... as well R & Y are neighbors. 10. Who is exactly opposite to X? a) Z b) P c) S d) W

Last Answer : Ans: option (a)

Description : How many times does the following code segment execute int x=1, y=10, z=1; do{y--; x++; y-=2; y=z; z++} while (y>1 && z

Last Answer : A) 1

Description : Consider a system with seven processes A through G and six resources R through W. Resource ownership is as follows: process A holds R and wants T process B holds nothing but wants T process C holds nothing but wants S process D holds U ... No (B) Yes, A, B, C (C) Yes, D, E, G (D) Yes, A, B, F

Last Answer : (C) Yes, D, E, G

Description : The average case occurs in the Linear Search Algorithm when: (A) The item to be searched is in some where middle of the Array (B) The item to be searched is not in the array (C) The item to be searched is in the last of the array (D) The item to be searched is either in the last or not in the array

Last Answer : (A) The item to be searched is in some where middle of the Array

Description : Suppose the function y and a fuzzy integer number around -4 for x are given as y=(x-3)2+2 Around -4={(2,0.3), (3,0.6), (4,1), (5,0.6), (6,0.3)} respectively. Then f(Around - 4) is given by: (A) {(2,0.6), (3,0.3), ... 6), (3,1), (6,0.6), (11,0.3)} (D) {(2,0.6), (3,0.3), (6,0.6), (11,0.3)}

Last Answer : (C) {(2,0.6), (3,1), (6,0.6), (11,0.3)}

Description : The force acting between two point charges can be computed using which of the following laws? w) Ohm's Law x) Ampere's Law y) Coulomb's Law z) Newton's Second Law.

Last Answer : ANSWER: Y -- COULOMB'S LAW

Description : Three pipes P, Q and R can fill a tank from empty to full in 40 minutes, 15 minutes, and 30 minutes respectively. When the tank is empty, all the three pipes are opened. P, Q and R discharge chemical solutions X, Y and Z respectively. ... 5 minutes? a) 8 / 15 b) 7 / 15 c) 8 / 17 d) 6 / 13 e) 8 / 13

Last Answer : a Part of the tank filled by pipe P in 1 minute = 1 / 40 Part of the tank filled by pipe Q in 1 minute = 1 / 15 Part of the tank filled by pipe R in 1 minute = 1/ 30 Here we have to find the proportion of ... together in 5 minute = 5 1/8 = 5/ 8 Required proportion = (1/3) / ( 5/8) = 8 / 15

Description : Why is the reward system so low compared to Q &A ? This means that the prizes of 2nd and 3rd are much less. When will the amount of prizes be increased more ?

Last Answer : answer:

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 : When the following code is executed what will be the value of x and y? int x = 1, y=0; y = x++; (A) 2, 1 (B) 2, 2 (C) 1, 1 (D) 1, 2

Last Answer : (A) 2, 1

Description : Which of the following characteristics of constructor are true. i) They should be declared in the public section. ii) They are invoked automatically when the objects are created. iii) They do not have return type and void also. ... and v C) Only i, iii, iv and v D) All i, ii, iii, iv and v

Last Answer : D) All i, ii, iii, iv and v

Description : If we convert ∃u ∀v ∀x ∃y (P(f(u),v, x, y) → Q(u,v,y)) to ∀v ∀x (P(f(a),v, x, g(v,x)) → Q(a,v,g(v,x))) This process is known as (A) Simplification (B) Unification (C) Skolemization (D) Resolution

Last Answer : (C) Skolemization

Description : The table gives the populations (in thousands) of ten species (A-J) in four areas (p-s) consisting of the number of habitats given within brackets against each. Study the table and answer the question which follows. ... out of p - s shows maximum species diversity? (a) s (b) p (c) q (d) r

Last Answer : (a) s

Description : Which of the following is/are true w.r.t. applications of mobile computing? (A) Travelling of salesman (B) Location awareness services (1) (A) true; (B) false (2) Both (A) and (B) are true. (3) Both (A) and (B) are false. (4) (A) false; (B) true.

Last Answer : Answer: 2

Description : Which of the following shall be a compound proposition involving the propositions p, q and r, that is true when exactly two of the p, q and r are true and is false otherwise? (A) (p∨q∧˥r) ∨ (p∨q∧r) ∧ (˥p∧q∨r) (B) ... ) ∨ (˥q∨˥p∧˥r) (C) (p∧q∧˥r) ∨ (p∨˥q∧r) ∨ (˥p∧q∧r) (D) (p∨r∧q) ∨ (p∧q∧r) ∨ (˥p∧q∧r) 

Last Answer : (C) (p∧q∧˥r) ∨ (p∨˥q∧r) ∨ (˥p∧q∧r)

Description : The simplified function in product of sums of Boolean function F(W, X, Y, Z) = Σ(0, 1, 2, 5, 8, 9, 10) is (A) (W' + X') (Y' + Z') (X' + Z) (B) (W' + X') (Y' + Z') (X' + Z') (C) (W' + X') (Y' + Z) (X' + Z) (D) (W' + X') (Y + Z') (X' + Z)

Last Answer : (A) (W' + X') (Y' + Z') (X' + Z)

Description : Let pk(R) denotes primary key of relation R. A many-to-one relationship that exists between two relations R1 and R2 can be expressed as follows: (1) pk(R2)→pk(R1) (2) pk(R1)→pk(R2) (3) pk(R2)→R1∩R2 (4) pk(R1)→R1∩R2

Last Answer : Answer: 2

Description : An artificial neurons receives n inputs x1, x2,...,xn with weights w1,w2,...,wn attached to the input links. The weighted sum ............... is computed to be passed on to a non-linear filter ϕ called activation function to release the output. (A) Σ wi (B) Σ xi (C) Σ wi + Σ xi (D) Σ wi . Σ xi

Last Answer : (D) Σ wi . Σ xi

Description : Which one of the following is not a definition of error ? (A) It refers to the discrepancy between a computed, observed or measured value and the true, specified or theoretically correct value. (B) It ... to fail. (D) It refers to human action that results in software containing a defect or fault. 

Last Answer : The input, or clock pulse.

Description : In link state routing algorithm after construction of link state packets, new routes are computed using: (1) DES algorithm (2) Dijkstra's algorithm (3) RSA algorithm (4) Packets 

Last Answer : Answer: 2

Description : Solids may be considered to be either crystalline noncrystalline. The basic difference between them is that a crystal, in contrast to a noncrystal: w) has a sharp melting point x) has an irregular array of atoms y) exhibits double refraction z) has a completely regular atomic or molecular structure

Last Answer : ANSWER: Z -- HAS A COMPLETELY REGULAR ATOMIC OR MOLECULAR STRUCTURE

Description : What will be the output of the following segment of the program? main( ) { char *s = “hello world”; int i = 7; printf(“%, *s”, i, s); } (A) Syntax error (B) hello w (C) hello (D) o world

Last Answer : Answer: Marks given to all

Description : If a is an integer variable, a=7/3; will return a value A) 2.5 B) 3 C) 0 D) 2

Last Answer : D) 2

Description : NULL is (A) the same as 0 for integer (B) the same as blank for character (C) the same as 0 for integer and blank for character (D) not a value

Last Answer : (D) not a value

Description : A computer program selects an integer in the set {k : 1 ≤ k ≤ 10,00,000} at random and prints out the result. This process is repeated 1 million times. What is the probability that the value k = 1 appears in the printout atleast once ? (A) 0.5 (B) 0.704 (C) 0.632121 (D) 0.68

Last Answer : (C) 0.632121

Description : In a relational database model, NULL values can be used for all but which one of the following? (A) To allow duplicate tuples in the table by filling the primary key column(s) with NULL. (B) To ... D) To fill a column in a tuple when that column does not really exist for that particular tuple.

Last Answer : (A) To allow duplicate tuples in the table by filling the primary key column(s) with NULL.

Description : Which of the following is not true with respect to a trackball and/or spaceball ? I. A trackball is a two dimensional positioning device while as a spaceball provides six degrees of freedom II. Unlike the trackball a spaceball does ... of freedom. (A) I & II (B) II & III (C) II only (D) III only

Last Answer : (D) III only

Description : Find minimum value of `px+qy` where `p>0, q>0, x>0, y>0` when `xy=r,^2` without using derivatives.

Last Answer : Find minimum value of `px+qy` where `p>0, q>0, x>0, y>0` when `xy=r,^2` without using ... `pqsqrtr` B. `2pqsqrtr` C. `2rsqrtpq` D. None of these

Description : Differentiate between character array and integer array with respect to size and initialisation.

Last Answer : Parameter Character Array Integer Array   Size Last location in character array is filled with '\0' so the array size should be so declared that it should have one last location for '\0' character.   ... ="abc"; Initialization can be done like : int arr[4]={1,2,3,4}; 

Description : A recursive function h, is defined as follows: h(m)=k, if m=0  = 1, if m=1 = 2h(m-1) + 4h(m-2), if m≥2 If the value of h(4) is 88 then the value of k is: (1) 0 (2) 1 (3) 2 (4) -1

Last Answer : (3) 2 

Description : There are exactly ................ different finite automata with three states x, y and z over the alphabet {a, b} where x is always the start state. (A) 64 (B) 256 (C) 1024 (D) 5832

Last Answer : Answer: D

Description : two dimensional array

Last Answer : Jafni Shoesellers wants a program that calculates and displays the total of its previous month's sales. The ... 2 975 707 Store 3 795 595

Description : Illustrate initialization of two dimensional array with example.

Last Answer : Two dimensional array: The array which is used to represent and store data in a tabular form is called as two dimensional array. Such type of array is specially used to represent data in a matrix form. ... where outer loop will increment row and inner loop will increment column. Eg : for(i=0;i

Description : Define: (i) Two dimensional array (ii) Multi-dimensional array

Last Answer : (i) Two dimensional array Two dimensional array is a collection of similar type of data elements arranged in the form of rows & columns. E.g. Array can be declared as int arr[3][3]; In this there can be 9 ... (3d) array. For example, float y[2][4][3]; Here, The array y can hold 24 elements.

Description : Why do you write ‘Integer.parseInt(br.readLine())’?

Last Answer : A: The inputs in a java program comes in the form of String objects which are read using the br.readLine() function. Now if we want the input in integer form, we have to convert it into integer using the parseInt() function of the Integer wrapper class.