Placement Papers: TCS Paper 449

Get unlimited access to the best preparation resource for CTET/Paper-2 : get questions, notes, tests, video lectures and more- for all subjects of CTET/Paper-2.

TCS PAPER ON 8th SEPTEMBER 2006

Quantitative Section

  1. There are 150 weights. Some are 1 kg weights and some are 2 kg weights. The sum of the weights is 260. What is the number of 1kg weights? Ans. 40
  2. A is driving on a highway when the police fines him for overspeeding and exceeding the limit by 10 km/hr. At the same time B is fined for overspeeding by twice the amount by which A exceeded the limit. If he was driving at 35 km/hr what is the speed limit for the road? Ans. 15 kmph
  3. A moves 3 kms east from his starting point. He then travels 5 kms north. From that point he moves 8 kms to the east. How far is A from his starting point? Ans. 13 kms
  4. A car travels 12 kms with a th filled tank. How far will the car travel with filled tank? Ans. 5 kms
  5. The sum of the digits of a two digit number is 8. When 18 is added to the number, the digits are reversed. Find the number? Ans. 35
  6. The cost of one pencil, two pens and four erasers is ₹ 22 while the cost of five pencils, four pens and two erasers is ₹ 32. How much will three pencils, three pens and three erasers cost? Ans. 27
  7. Fathers age is 5 times his son ′ s age. 4 years back the father was 9 times older than son. Find the fathers ′ present age. Ans. 40 years
  8. What number should be added to or subtracted from each term of the ratio 17: 24 so that it becomes equal to 1: 2. Ans. 10 should be subtracted
  9. What is the 12th term of the series 2,5, 8, ________ Ans. 35
  10. If 20 men take 15 days to to complete a job, in how many days can 25 men finish that work? Ans. 12 days
  11. In a fraction, if 1 is added to both the numerator at the denominator, the fraction becomes . If numerator is subtracted from the denominator, the fraction becomes . Find the fraction. Ans.
  12. If ₹ 1260 is divided between between A, B and C in the ratio 2: 3: 4, what is C՚s share? Ans. ₹ 560
  13. A shopkeeper bought a watch for ₹ 400 and sold it for ₹ 500. What is his profit percentage? Ans. 25%
  14. What percent of 60 is 12? Ans. 20%
  15. Hansie made the following amounts in seven games of cricket in India: ₹ 10, ₹ 15, ₹ 21, ₹ 12, ₹ 18, ₹ 19

and ₹ 17 (all figures in crores of course) . Find his average earnings.

Ans. ₹ 16 crore

Technical Test

  1. The C language terminator is
    1. semicolon
    2. colon
    3. period
    4. exclamation mark
  2. What is false about the following--A compound statement is
    1. A set of simple statments
    2. Demarcated on either side by curly brackets
    3. Can be used in place of simple statement
    4. A C function is not a compound statement.
  3. What is true about the following C Functions
    1. Need not return any value
    2. Should always return an integer
    3. Should always return a float
    4. Should always return more than one value
  4. Main must be written as
    1. The first function in the program
    2. Second function in the program
    3. Last function in the program
    4. Any where in the program
  5. Which of the following about automatic variables within a function is correct?
    1. Its type must be declared before using the variable
    2. Tthey are local
    3. They are not initialised to zero
    4. They are global
  6. Write one statement equivalent to the following two statements x = sqr (a) ; return (x) ; Choose from one of the alternatives
    1. return (sqr (a) )
    2. printf ( “sqr (a) ” )
    3. return (a-a-a)
    4. printf ( “% d” sqr (a) )
  7. Which of the following about the C comments is incorrect?
    1. Ccommentscan go over multiple lines
    2. Comments can start any where in the line
    3. A line can contain comments with out any language statements
    4. Comments can occur within comments
  8. What is the value of y in the following code? x = 7; y = 0; if (x = 6) y = 7; else y = 1
    1. 7
    2. 0
    3. 1
    4. 6
  9. Read the function conv () given below conv (int t) {int u; u = - (t − 32) ; return (u) ;} What is returned
    1. 15
    2. 0
    3. 16.1
    4. 29
  10. Which of the following represents true statement either x is in the range of 10 and 50 or y is zero
    1. x >= 10 && x ⇐ 50 y == 0
    2. x < 50
    3. y! = 10 && x >= 50
    4. None of these
  11. Which of the following is not an infinite loop?
    1. while (1) ⧵ {________}
    2. for {…}
    3. x = 0; do {/-x unaltered within the loop-/________} while (x == 0)
    4. -define TRUE 0
  12. while (TRUE) {________}
  13. What does the following function print? func (int i) {if (i % 2) return 0; else return 1;} main () {int = 3; i = func (i) ; i = func (i) ; printf ( “% d” i) ;} (a) 3 (b) 1 (c) 0 (d) 2
  14. How does the C compiler interpret the following two statements p = p + x; q = q + y
    1. p = p + x; q = q + y
    2. p = p + xq = q + y
    3. p = p + xq; q = q + y
    4. p = p + x/q = q + y For questions 14, 15,16, 17 use the following alternatives a. Int
  15. b. Char
  16. c. String
  17. d. Float
  18. ‘9’
  19. “1 e 02”
  20. 10e05
  21. 15
  22. Read the folllowing code-define MAX 100 if the initial value of x = 200, what is the value after executing this code?
    1. 200
    2. 1
    3. -1
    4. 50
  23. A memory of 20 bytes is allocated to a string declared as char-s then the following two statements are executed: s = “Entrance” l = strlen (s) ; what is the value of l?
    1. 20
    2. 8
    3. 9
    4. 21
  24. Given the piece of code int a [50] int-pa; pa = a; To access the 6th element of the array which of the following is incorrect?
    1. - (a + 5)
    2. a [5]
    3. pa [5]
    4. - (-pa + 5)
  25. Consider the following structure: Struct number nam {int no; char name [25] } struct number nam n1 [] = { {12, ″ Fred ″} , {15, ″ Martin ″} , {8, ″ Peter ″} , {11, Nicholas ″} } ; ________ … Printf (″ % d % d ″ , n1 [2] no (- (n1 + 2) , no) + 1) ; What does the above statement print?
    1. 8,9
    2. 9,9
    3. 8,8
    4. 8, unpredictable value
  26. Identify the in correct expression
    1. a = b = 3 = 4
    2. a = b = c = d = 0
    3. float a = int b = 3.5
    4. int a; float b; a = b = 3.5
  27. Regarding the scope of the varibles; identify the incorrect statement:
    1. automatic variables are automatically initialised to 0
    2. static variables are are automatically initialised to 0
    3. the address of a register variable is not accessiable
    4. static variables cannot be initialised with any expression
  28. cond 1? cond 2? cond 3? Exp 1: Exp 2: Exp 3: Exp 4; is equivalent to which of the following?
    1. if cond 1 exp 1; else if cond 2 exp 2; else if cond 3 exp 3; else exp 4
    2. if cond 1 if cond 2 if cond 3 exp 1; else exp 2; else exp 3; else exp 4
    3. if cond 1 && cond 2 && cond 3 exp 1 exp 2 exp 3 exp 4
    4. if cond 3
  29. exp 1.
  30. else if cond 2 exp 2.
  31. else if cond 3 exp 3.
  32. else exp 4.
  33. The operator for exponencation is (a) - (b) ^ (c) % (d) not available
  34. Which of the following is invalid
    1. a += b
    2. a-= b
    3. a? = b
    4. a-= b
  35. What is y value of the code if input x = 10 y = 5; if (x == 10) else if (x == 9) else y = 8
    1. 9
    2. 8
    3. 6
    4. 7
  36. What does the following code do? fn (int n, int p, int r) {static int a = p; switch (n) {case 4: a += a-r; case 3: a += a-r; case 2: a += a-r; case 1: a += a-r;} }
    1. computes simple interest for one year
    2. computes amount on compound interest for 1 to 4 years
    3. computes simple interest for four year
    4. computes compound interst for 1 year
  37. a = 0; while (a < 5) printf ( “% d⧵⧵n” a ++) ; How many times does the loop occurs?
    1. infinite
    2. 5
    3. 4
    4. 6
  38. How many times does the loop iterated? for (i = 0; i = 10; i += 2) printf ( “Hi⧵⧵n” )
    1. 10
    2. 2
    3. 5
    4. None of these
  39. What is incorrect among the following A recursive function
    1. calls itself
    2. is equivalent to a loop
    3. has a termination condition
    4. does not have a return value at all
  40. Which of the following go out of the loop if expn 2 becoming false
    1. while (expn 1) ⧵ {… If (expn 2) continue;}
    2. while (! expn 1) ⧵ {if (expn 2) continue; …}
    3. do {. If (expn 1) continue;} while (expn 2)
    4. while (! expn 2) ⧵ {if (expn 1) continue; ⧵}
  41. Consider the following program main () {unsigned int i = 10; while (i >= 0) {printf ( “% u” i) i--;} } How many times the loop will get executed
    1. 10
    2. 9
    3. 11
    4. infinite
  42. Pick out the add one out
    1. malloc ()
    2. calloc ()
    3. free ()
    4. realloc ()
  43. Consider the following program main () {int a [5] = {1, 3,6, 7,0} ; int-b; b = &a [2] } The value of b [-1] is
    1. 1
    2. 3
    3. -6
    4. none
  44. -define prod (a, b) = a-b main () {int x = 2; int y = 3; printf ( “% d” prod (x + 2, y − 10) ) ;} the output of the program is
    1. 8
    2. 6
    3. 7
    4. None
  45. Consider the following program segment int n, sum = 1; switch (n) {case 2: Sum = sum + 2; case 3: Sum-= 2; break; default: Sum = 0;} If n = 2, what is the value of sum
    1. 0
    2. 6
    3. 3
    4. None of these
  46. Identify the incorrect one
  47. The format specified for hexa decimal is
    1. % d
    2. % o
    3. % x
    4. % u
  48. Find the output of the following program main () {int x = 5, p; p = &x printf ( “% d” + ± p) ;}
    1. 5
    2. 6
    3. 0
    4. none of these
  49. Consider the following C code main () int i = 3, x; while (i > 0) {x = func (i) ; i--;} int func (int n) {static sum = 0; sum = sum + n; return (sum) ;} The final value of x is
    1. 6
    2. 8
    3. 1
    4. 3
  50. Int-a [5] refers to
    1. array of pointers
    2. pointer to an array
    3. pointerto a pointer
    4. none of these
  51. Which of the following statements is incorrect
    1. typedef struct new {int n1; char n2;} DATA
    2. typedef struct {int n3; char-n4;} ICE
    3. typedef union {int n5; float n6;} UDT
    4. -typedef union {int n7; float n8;} TUDAT

Regards, pratyusha