Вы находитесь на странице: 1из 4

Sample Questions for General Aptitude (GA) Five example questions are given below to apprise candidates of the

type of questions they may expect in the exam. Give yourself on an average two and a half minutes to answer each question. 1) Stock options for employees are the latest step in progression from management ownership to employee ownership. Employee ownership can save loss-making companies. From the following statements, choose that one, which if true, does NOT provide support for the claim above. (a) Employee owned companies generally have higher productivity (b) Employee participation in management raises morale (c) Employee ownership tends to drive up salaries (d) Employee ownership enables workers to share in company profits 2) If log8 3 = 0.5283 and log8 5 = 0.7740, then what is the value of log8 45 ? (a) 1.6553 (b) 1.8306 (c) 3.8066 (d) 0.8178

3) The following represents the summation of two numbers where X, Y and Z represent distinct digits among 0, 1, 2, , 9. XYZ ZYX _________ YYZY What does X represent? (a) 6 (b) 7 (c) 8 (d) 9 4) Four places A, B, C and D are situated in a city as follows: B is situated due east of A at a distance of 6 km. C can be reached from B by travelling 2 km due east and then 4 km due north. D is situated due west of C and is at equal distance from A and B. What is the distance between A and D? (a) 3.5 km (b) 4 km (c) 4.5 km (d) 5 km 5) Any government officer who allows bribery to flourish must be subject to ________ . (a) stringency (b) stricture (c) vagary (d) mockery Answers to Sample Questions: 1) (c) 2) (b) 3) (c) 4) (d) 5) (b) A.2.3. Sample Questions 1) Floating point numbers in a computer are represented using a 10-bit mantissa (including a sign bit) and a 6-bit exponent (including a sign bit). What is the approximate value of the maximum number, which can be represented? Assume that the mantissa is stored in the normalised form,

that is, without leading zeroes. (a) (b) (c) 2 (d) 2 2) Which one of the following statements is always true? (a) A compiled program uses more memory than an interpreted program. (b) A compiler converts a program to a lower level language for execution. (c) A compiler for a high level language takes less memory than its interpreter. (d) Compiled programs take more time to execute than interpreted programs. 3) Suppose a system has been evolved, called the ternary system, by creatures having only 3 fingers. Numbers in this system are written down, using the digits 0, 1, and 2, with 2>1>0. What will be the binary equivalent of 222 in this system? (a) 101010 (b) 11000 (c) 10110 (d) 11010 4) What will be the value of the C expression? 4+6/3*2-2? (a) 3 (b) 4 (c) 5 (d) 6

5) Consider the following program segment: i = 6720; j = 4; while ( (i % j) = = 0){ i = i / j; j = j + 1; } What will be the value of j on termination of the segment? a) 4 (b) 8 (c) 9 (d) 6720 Answers to Sample Questions 1) (d) 2) (b) 3) (d) 4) (d) 5) (c) Sample Questions for Computer Concepts (CC) 1) Floating point numbers in a computer are represented using a 10-bit mantissa (including a sign bit) and a 6-bit exponent (including a sign bit). What is the approximate value of the maximum number, which can be represented? Assume that the mantissa is stored in the normalised form, that is, without leading zeroes. (a) (b) (c) 2 (d) 2 2) Which one of the following statements is always true? (a) A compiled program uses more memory than an interpreted program. (b) A compiler converts a program to a lower level language for execution. (c) A compiler for a high level language takes less memory than its interpreter. (d) Compiled programs take more time to execute than interpreted programs.

3) Suppose a system has been evolved, called the ternary system, by creatures having only 3 fingers. Numbers in this system are written down, using the digits 0, 1, and 2, with 2>1>0. What will be the binary equivalent of 222 in this system? (a) 101010 (b) 11000 (c) 10110 (d) 11010 4) What will be the value of the C expression? 4+6/3*2-2? (a) 3 (b) 4 (c) 5 (d) 6

5) Consider the following program segment: i = 6720; j = 4; while ( (i % j) = = 0){ i = i / j; j = j + 1; } What will be the value of j on termination of the segment? a) 4 (b) 8 (c) 9 (d) 6720 Answers to Sample Questions 1) (d) 2) (b) 3) (d) 4) (d) 5) (c) Sample Questions for Computer Programming in C (CP) 1) What will be the output of the following program segment? (Given that ASCII codes are used and that the codes for the lowercase letters are greater than that of the uppercase letters). char c; c = 'C' + 'a' - 'A' + 1; printf("%c", c); (a) a (b) p (c) d (d) r

2) The following code segment is supposed to print out letters from 'a' to 'z'. What is the smallest piece of code possible to substitute for XXX so that the program does this? char c = 'a'; while(c++ <= 'z') putchar(XXX); (a) c-(b) c (c) c - 1 (d) c++

3) The following program segment is supposed to find the number of lowercase letters in the input. There is a bug in one of the lines in the program. lower = 0; while ((c = getchar()) != EOF){ if((c >= 'a') || (c <= 'z'))

lower++; } Which of the choices below is the correct version of the line? (a) lower = 1; (b) if((c >= 'a') && (c < 'z')) (c) ++lower; (d) if((c >= 'a') && (c <= 'z')) 4) In the following segment of 'C' code, which of the lines has a syntax error? char *a, *b, c[100], d[100]; a = b; (1) b = d; (2) c = a; (3) a = c; (4) (a) 1 (b) 2 (c) 3 (d) 4 5) What does the following program print? void max(int x, int y, int m) { if (x > y) m = x; else m = y; } int main(void) { int i, j, k; i = 20; j = 5; k = 0; max(i, j, k); printf("%d\n", k); } (a) 5 (b) 20 (c) 0 (d) None of these

Answers to Sample Questions 1) (c) 2) (c) 3) (d) 4) (c) 5) (c)

Вам также может понравиться