Mahindra Satyam - Technical Placement Paper

Mahindra Satyam - Technical Placement Paper


1. #include
* Find the wrong in the following question
main() {
int i,j;
j = 10;
i = j++ - j++;
printf("%d %d", i,j);
}
Ans: 0, 12

2. Int *a[5] refers to
(a) array of pointers
(b) pointer to an array
(c) pointer to apointer
(d) none of these

3. Find the output of the following program
main()
{
int x=5, *p;
p=&x
printf("%d",++*p);
}
(a) 5 (b) 6 (c) 0 (d) none of these

4. Write a macro statement to find maximum of a,b
*/
#define max(a,b) (ab)?a:b
main()
{
int a,b;
a=3;
b=4;
printf("%d",max(a,b));
}
/*

5. What are the advantages of DBMS?
a) Redundancy is controlled.
b) Providing multiple user interfaces.
c) Providing backup and recovery
d) Unauthorized access is restricted.
e) Enforcing integrity constraints.
f) All of above

6. Tell the sub-systems of RDBMS:
a) I/O, Security, Language Processing
b) Logging and Recovery, Distribution Control
c) Transaction Control, Memory Management
d)Process Control, Storage Management, , Lock Management.
e) All of above

7. Tell Ways of doing Black Box testing:
A) Top down according to budget
B) WBS
C) Guess and gut feeling
D) Early project data
E) All of above

8. Testing used in abnormal conditions:
1) Stress testing
2) Security testing
3) Recovery testing
4) Beta testing
5) All of above

9. Identify the incorrect one
1.if(c=1)
2.if(c!=3)
3.if(a4.if(c==1)

10. The format specified for hexa decimal is
(a) %d
(b) %o
(c) %x
(d) %u
Post your comment