IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C++ Programming C# Programming Java Programming
Microbiology Biochemistry Biotechnology Biochemical Engineering
Civil Engineering Mechanical Engineering Chemical Engineering Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

Companies

Placement Papers - ORACLE

@ : Home > Placement Papers > ORACLE > View Paper
ORACLE PLACEMENT PAPER-2003 (TECHNICAL-C)
Rated : +4 , -1

PAPER: ORACLE PLACEMENT PAPER-2003 (TECHNICAL-C)
 
1.
 
#include  
 
#define sqr(x) (x*x)
 
int main()
 
{
 
int x=2;
 
printf("value of x=%d",sqr(x+1));
 
}
 
   What is the value of x?
 
a)4   b)5   c) None   d) can not compile
 
Ans: 5
 
2. what is the wrong in the following program?
 
#define LBRACKET {
 
#define RBRACKET }
 
#define MAIN main
 
int MAIN()
 
LBRACKET
 
int x=2;
 
printf("%d",x);
 
RBRACKET
 
a) This program will compile
 
b) compilation error
 
3.
 
#include  
 
int main()
 
{
 
int x=4;
 
{
 
{
 
{
 
int x=2;
 
printf("%d",x);
 
}
 
}
 
}
 
}
 
a) 4    b)2     c)  Nesting not allowed   d)  dependent on the compiler
 
4. Go through the following code snippet
 
char a[20];
 
a="Hello Orcale Test";
 
will this compile?
 
a) Compilation Error b) Strings are allowed in c but cannot be assigned directly.
 
c) dependent on compiler
 
d) will work fine.
 
5. the expression a+b*c should be conveted to +a*bc. Using tree structure, Which traversal is the correct one?
 
a) Postfix traversal   b) prefix traversal   c) infix traversal   d)None
 
6. what about brk, sbrk
 
a) system calls   b) function calls    c) user defined functions
 
7. Why the use of alloca() is discouraged?
 
8. Macros support multiple arguments ?
 
9. the header file
 
a) contains only compiler directives and extern variables
 
b) contain only structures and union
 
c) a & b
 
10. what about "char *(*(*a[])())();"

Like this?   +4   -1



© 2008-2013 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Contact us: info@indiabix.com     Follow us on twitter!