Satyam Paper
THis is the paper related to db satyam Madras.
1. If i = 5 what is the output of
printf("%d %d %d", ++i ,i ,i++);
a) 5,6,7 b) 6,6,7 c) 7,6,5 (ans) d) 6,5,5
2. For the following code how many times the printf func. is executed,
Code is :
int i,j;
for (i = 0; i =8 && y >2; (false)
f) a + b; (false) g) a = b;(true) h) c+4 ; (true)
26. answer the following in true or false (2 marks)
a) int ctr ; is a valid variable declaration(true) b) scanf is a keyword(true) c) stdout is a standard I/P ( false) d) register variables can be used as loop index for faster access(false) e)a = (a>b) is valid statement( true) f) x = a>b ? x:y is a valid statement( true)
g) given x=1,y=4,z=2 , a=9 and b=3, evaluate x = x*y/z +a/b ; the value of x = 5 (ans: true)
h) volatile is a keyword (false)
Give one line answers for the following questions:
27.int count = 11; (4 marks)
while (--count+1)
printf("count down is %d \n",count);
how many times the printf statement is executed? ans : 11.
29) How does
an existing data type in c ?
ans: typedef using define
30) What is the output generated for the following code. [1 m]
#define square(a) (a*a)
printf("%d",square(4+5));
31. In the following enumeration declaration determine the
value of each member.
eenum compass {north =2 south ,east=1,west
ans: North = 2, south=3, east =1, west =2.
32. for the following declaration
union x{
char ch;
int i;
float j
}u-var;
what is the value of sizeof(u-var)
ans:4.
33. How many bytes of memory will the follwing arrays need ?
(a) char s[80] ans: 80.
(b) char s[80][10] ans: 800.
(c) int d[10] ans: 20.
(d) float d[10][5] ans: 200.
34. For the follwing statement find the values generated for p and
q ?
int p=0,q=1;
p=q++;
p=++q;
p=q--;
p=--q;
The value of p equal to 1 and the value of q equal to 1.
35. Write an appropriate declaration for the follwing situations.
(a) x: function returning pointer to array[] of pointer to
function returning char.
(b) Declare a function func that accepts two integer arguments
and returning a pointer to a long integer.
ans: long int *func(int int)
36. int size ,*int_ptr,table[20];
char ch,*char_ptr;
double d,grid;
Find out the value for the following statements.
a)size=sizeof(int) = 2.
b)size=sizeof(ch) = 1.
c)size=sizeof(size)= 2.
d)size=sizeof(table) =40.
e)size=sizeof(grid) = 160.
f)size=sizeof(char_ptr)= 4.
37. Give the name of the standard library function for the
following
a)string length ans: strlen.
b)string compare ans: strcmp.
c)string copy ans: strcpy.
d)string concatenation ans: strcat.
38.Suppose i and j are both integer type variables, and j has been
assigned
a value of 5.Then find the valie of i for the following
expressions.
a)i=2*j-2*j/5. ans:8.
b)i=j/2 ans:2.
c)i=2*j/2 ans:4.
d)i=(2*j)/2 ans:5.
39.What is the o/p generated by the following program ?
main()
{
int n=10;
int func(int);
printf("%d",func(n));
}
int func(int n)
{
if(n>0)
return(n+func(n-2));
Satyam Paper
WRITTEN TEST-15 QUES,30 MINS
1. 1
23 45 67
34 56 78 69 45
78 71 65 56 89 93 34
783465 ,657889 ARE CHOSEN IN A PARTICULAR ORDER�
WHICH THEN IS THE NEXT NUM-VERY EASY CAN GET THRU THE ANS GIVEN ALSO
2. 6 PEOPLE IN A ROOM,SHAKE HAND WITH EACH OTHER
HOW MANY HANDSHAKES- A SIMPLE PERMUTATION PROB
3.PROBLEM ON A FIG AS TO HOW MANY TRIANGLES IT HAD
REFER SHAKUNTALA DEVI EXACTLY SAME PROB GIVEN-EASY
4. ANOTHER SUCH QUESTION ASKING 4 THE NUMBR OF TRIANGLES WITHIN A FIGURE-EASY
5. 2 CARS START OF AT A SAME POINT AT SAME SPEED BUT TRAVEL OPPOSITE DIRECTIONS AFTER 7 KMS TAKE LEFT TURN AND TRAVEL 7 KMS. HOW MANY KMS APART ARE THEY
6.A BOOK IS NUMBERED USING NUMBERS 1456 HOW MANY PAGES IN THE BOOK-CONFUSING-LEFT UNTOUCHED COS UNMATCHING ANS
7.A PROBLEM ON A FIGURE WHERE IN A SQUARE AND A RECTANGLE WITH GIVEN DIMENSIONS ARE OVERLAPPED IN A PARTICULAR WAY SO THAT IT FORMED A SMALL TRAPEZOID AND ITS AREA WAS ASKED.-WAS EASY BUT DIDN�T MATCH WITH ANY ANSWERS GIVEN AT ALL
8,9
PARAGRAPH GIVEN AND QUESTIONS ON THAT
10. A BAR GRAPH GIVEN AND A PROB ON THAT�VERY EASY
11. A PROBLEM ON FIGURES AGAIN�3FIGS GIVEN FIND THE MISSING FIGURE�WAS TUF BCOS HAD ABSOLUTELY NO RELATION AT ALL
JUST CANT REMEMBER THE OTHER 3,SORRY.NUMBERS IN ABOVE ARE ALSO NOT EXACT,.25 MARKS WAS �VE MARKING
GROUP DISCUSSION
MY GROUP HAD TO SPEAK ABOUT BPO�S
OTHER TOPICS
INDIA VS CHINA-S/W
US WAR ON IRAQ-JUSTIFIED OR NOT
UK�S ROLE IN PEACE KEEPING
PINK PANTS FOR CHRISTMAS
HR AND TECHNICAL-2 PEOPLE WERE THERE
BE WELL PREPARED TO EXPLAIN YOUR PROJECT.BE VERY CONFIDENT. I AM AN EC STUDENT AND NONVERBALLY SOMEHOW CONVINCED THEM NOT TO ASK TOO MUCH ABOUT C .BUT STILL PREPARE AS MUCH AS POSSIBLE FOR C.COMPUTER STUDENTS BE READY WITH STRRONG C SKILLS I WAS ASKED THE TO WRITE DEFINITION OF S/W ON THE BOARD.THEN WAS ASKED THE USE OF S/W IN VARIOUS FIELDS . ASKED FAVORITE TOPIC UNDER C AND ASKED ABOUT THEM FOR 7-8 MINS .WHY C,WHY S/W FIELD,WHY SATYAM,WHAT ARE THE DISADVANTAGES OF BEING A S/W PROFFESIONAL.WHAT IS THE CAPTION OF SATYAM-�WHAT BUISSNESS DEMANDS�IS THE CAPTION.
WHAT DO YOU KNOW ABOUT SATYAM-CHECK OUT AT SATYAM HOME-PAGE A LINK UNDER FRESHERS WORLD.COM
AND FINALLY DO YOU HAVE ANY QUESTIONS FOR US�SEE FRESHERS WORLD.COM;HR INTERVIEW
DON�T BLUFF AND DON�T BE SCARED TO TELL U DON�T KNOW ABOUT A PARTICULAR THING IF U DON�T KNOW
THAT�S IT.WRITTEN TEST AND GD WAS AT PESIT AND HR AT RICHMOND CIRCLE OFFICE OF SATYAM. ACCORDING TO A RUMOUR 13/15 WAS ESSENTIAL TO CLEAR THE TEST.
GD TRY AND INITIATE THE DISCUSSION AND DON�T PANIK AT ANY CASE JUST PUT FORWARD YOUR IDEA AND NEVER CONTRADICT YOUR OWN STATEMENTS INSTEAD FIGHT 4 IT.
PEOPLE ATTENDED-700
CLEARED TEST-254
CLEARED GD-121
CLEARED THE LAST ROUND-70
ALL THE BEST. ASK ME ANY QUERIES AT 9845723441 ANYTIME OR AT MY MAIL ID