Texas Instruments




Texas Instruments

Filed under:

Texas Instruments Placement Question Paper

1. int fact(int n) int fact_ii(int n)
{ {
if (n >0)
int fact_val = 1, i = 0;
return n*fact (n-1); for (i = 1; i < = n ; i++)
else fact_val = fact_val*i;
return 1; return fact_val;
} }
(a) (i) only
(b) (ii) only
© both
(d) None of these

2. (2) Which of the following is a semantic error?
(a) Division by zero
(b) Missing of a semicolon at the end of a statement
© Assigning a single precision real value to a long integer
(d) All the above

3. (3) If the following code segment is to count the no of zero’s in the given integer ‘x’ in its binary representation, what is to replaced by CONDITION?
int i, count, x;
for(i=0, count=0;i<16;i++)
if(CONDITION)
count++;
a. (x & (1 << i))
b. (x & (1 << i))
c. (x && (1 << i))
d. None of the above.

4. A graph was given and asked to find out the minimum no of colors required to color the graph?

Image no.1

(a) 1
(b) 2
© 3
(d) The graph can’t be colored

5. Inorder traversal of a binary tree is d c e b a and preorder traversal of a binary tree is b c d e a. Find out the post order traversal?
(6) Which is not an advantage of using subroutines?
(a) Easier maintenance
(b) Runtime reduces
© Storage space reduces
(d) Modularity

6. A k-diagonal matrix is a n *n square matrix in which the elements on the principal diagonal and k diagonals above the principal diagonal and k diagonals below the principal diagonal only have none zero elements. Other elements are zero’s. In order to save the space, the non zero elements are stored in a one dimensional array. The no of locations in this array are:
(a) n*(n-k-1)/2
(b) n*(n-1) – (n-k)(n-k-2)
© n*(n-1) – (n-k)(n-k-2)
(d) n*n – (n-k-1)

7. A 1D - array A whose size is N is given and is divided into P partitions and an element x is to be searched in the array. Each partition is given to one processor. The elements are searched with in the partition using a binary search. What is the time complexity of the algorithm?
(a) O (N/P)
(b) O (P)
© O ( log (N/P))
(d) O ( log (N/P)) + O (P log P)

8. Write the code segment to insert an element p into the linked list after an element q? Make necessary pointer adjustments?
Ans:
p.next = q.next;
q.next = p;

9. Given a matrix A. What is the minimum no of multiplications do u need to compute A10 ?
(a) 9
(b) 5
© 4
(d) 6

Related Plament Papers and Companies

Robert Bosch

Robert Bosch Placement Question Paper Robert Bosch Off-Campus Recruitment Pattern Bosch patter was rarely available in this group, so I thought of sending this mail. This patter below is for computer science (CS) students only. There was another set of paper for MECH branch students. Section 1: This section had only technical question. They were mainly from Pointers in C, C++, Data Structures and some questions on OS, DBMS. This section also had lots of question on bit conversions (HEX to Binary, decimal) and one question on finding 2's compliment and such others. There were few questions on finding TRUE/FALSE statement which was

Robert Bosch Placement Question Papers

Robert Bosch Placement Question Papers Section 1: This section had only technical question. They were mainly from Pointers in C, C++, Data Structures and some questions on OS, DBMS.This section also had lots of question on bit conversions (HEX to Binary, decimal) and one question on finding 2’s compliment and such others. There were few questions on finding TRUE/FALSE statement which was bit confusing. Question to calculate square root, cube root of a number were also included. Overall, this section was easy if you are good with your basics. The questions were mainly around the basic concepts only. Each question had four options (A, B,

Robert Bosch Placement Question Papers

Robert Bosch Placement Question Papers Section 1: This section had only technical question. They were mainly from Pointers in C, C++, Data Structures and some questions on OS, DBMS. This section also had lots of question on bit conversions (HEX to Binary, decimal) and one question on finding 2’s compliment and such others. There were few questions on finding TRUE/FALSE statement which was bit confusing. Question to calculate square root, cube root of a number were also included. Overall, this section was easy if you are good with your basics. The questions were mainly around the basic concepts only. Each question had four

Robert Bosch

Robert Bosch Placement Question Paper Robert Bosch Test at Bangalore : 5 Dec 2004 ROBERT BOSCH Question Paper: Held on 05-12-2004 ______________________________________________________ Friends! I have attended the Robert Bosch last week i applied though the Id That was Given in our group only... I have given the pattern and some questions that i remember.. Pattern: ________ There were 75 questions.. total Duration 1 hour 20 mins.. 1-50 Questions are Technical and in that some 10-15 are Aptitute... it's very easy. 51-75 are Test of English Language.... From 1-50 for Correct answer 2 marks for wrong answer -1 mark.. From 51-75 for correct answer 1 mark for wrong answer -1/4 mark... Technical questions

Satyam

Satyam Placement Question Paper Sample Test paper 1. Wrong number in the Series 3 , 4 , 10 , 32 , 136 , 685 , 4116 ….. Ans : 32 { (3 * 1) + 1 = 4 (4 * 2) + 2 = 10 (10 * 3)+ 3 = 33 ……. } 2. There

  • Resources













  • Placement Papers Archives