[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 :: Cisco

81. func()
{
int x=1;
if(x=1)
x=1000;
else
x=10;
return x;
}
What is the return value?

Answer: 1000

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Cisco 

82. #include
int main()
{
int i=20,j,k=0;
for(j=1;j >i;j++)
{
k+=j<10?4:3;

}
printf("%d", k);
}

Answer: 0

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Cisco 

83. Find the output for the following C program

#include
int i = 10;
int main()
{
int i =20,n;
for(n=0;n<=i;)
{
int i=10;
i++;
}
printf("%d k", i);
}

Answer: Stack overflow

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Cisco Societe Generale 

84. Type duplicates of a row in a table customer with non uniform key field customer number you can see

Answer: Delete from costomer where customer number exists( select distinct customer number from customer having count )

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Cisco 

85. There is an employer table with key fields as employer number data in every n'th row are needed for a simple following queries will get required results.

Answer: select employee number from employe A, employe B where A employe number=B employ number group by employee number having(count(*) mod n=0 )

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Cisco Sopra Steria 

87. The redirection operators > and >>

Answer: differ : > overwrites, while >> appends

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Cisco 

88. Four concentric circles are given .The radius of 1st circle is x.next is 2x,then 3x and 4x. Given that area between 2nd and 1st is A and 4th and 3rd circles being B. Find ratio of A to B

Answer: 3:7

Explanation:

Area of first circle = pi*(x)^2 = pi*x^2
Area of second circle = pi*(2x)^2 = 4*pi*x^2
Area of third circle = pi*(3x)^2 = 9*pi*x^2
Area of fourth circle = pi*(4x)^2 = 16*pi*x^2
Area b/w 1st and 2nd circles = 3*pi*x^2
Area b/w 3rd and 4th circles = 7*pi*x^2
So, Ratio = 3:7

Workspace

Tags:

Cisco 

89. A triangle ABC is given, a line DE is parallel to base side and that cuts the triangle. The ratio of area of triangle to the area of trapezium.
Given DE/BC = 3/5.

Answer: 9/16

Explanation:

The line DE divides the triangle ABC into 2 parts - triangle ADE and trapezium DBCE.The question is to find the ratio of area(ADE) to area(DBCE).

Now triangle ADE is similar to triangle ABC.
=> DE/BC = AD/AB = AE/AC ....(1)
Drawing a perpendicular from A to BC meeting BC at G and meeting DE at F.
Now AF and AG are the heights of the triangles ADE and ABC resp.
tri(ADF)~tri(ABG) => AD/AB = AF/AG ....(2)
Area of a triangle = 1/2(base*height).
Area of tri(ADE) = 1/2(DE*AF)
Area of tri(ABC) = 1/2(BC*AG)
Area of trapezium(DBCE) = area(ABC)-area(ADE) = 1/2(BC*AG-DE*AF)
Ratio - area(ADE)/area(DBCE) = (DE*AF)/(BC*AG-DE*AF) = 1/[(BC*AG-DE*AF)/(DE*AF)]
(rearranging) = 1/[(BC/DE)*(AG/AF)-1]
Using (1) and (2),(BC/DE)*(AG/AF) = (BC/DE)^2
(using given DE/BC=3/5) => BC/DE=5/3 => (BC/DE)^2 = 25/9
The required ratio = 1/(25/9-1) =1/(16/9) = 9/16

Workspace

Tags:

Cisco 

90. A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work for a period of 6 days. How many days will it take Mr.Blue to complete the contract?

Answer: 11

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Cisco