[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Placement Questions & Answers :: TCS Digital

81. Which of the following abstract data types can be used to represent a many-to-many relation?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

82. Every element of a data structure has an address and a key associated with it. A search mechanism deals with two or more values assigned to the same address by using the key. What is this search mechanism?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

83. The array A has n elements. We want to determine the position of X in the array. We know that X is present in the array A and X can be present at any location in the array with equal probability. How many comparisons will be required on average to find the element X using linear search?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

84. What is the output of the following code statements? The compiler saves the first integer at the memory location 4165 and the rest at consecutive memory spaces in order of declaration. Integer is one byte long.
integer a pointer c, d a = 30
c = &a d = c
a = a + 10 print c

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

85. Shantanu wants to make a program to print the sum of the first 7 multiples of 6. He writes the following program:

integer i = 0 // statement 1
integer sum // statement 2 while ( i <= 42 ) // statement 3
{
sum = sum + i // statement 4 i = i + 6;
}
print sum // statement 6

Does this program have an error? If yes, which one statement will you modify to correct the program?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

86. A robust program has which one of the following features?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

87. Shahaana has a 10,000 line code. She is trying to debug it. She knows there is a logical error in the first 25 lines of the code. Which of the following will be an
efficient way of debugging:

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

88. What does a compiler do?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

89. A program is compiled by Tarun on his machine. Whether it will run on a different computer will depend upon:

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital 

90. Consider the following code:
for i= m to n increment 2
{ print "Hello!" }
Assuming m < n and exactly one of (m,n) is even, how many times will Hello be printed?

Answer:

Explanation:

Here is no explanation for this answer

Workspace

Tags:

TCS NQT TCS Ninja TCS Digital