interview questions and answers

Placement Papers | PATNI Placement Paper

Tuesday, 22 May 2012
Main Menu
Home
Online Test
Contest
Search
FAQs
Contact Us
Login
Most Popular Category
JAVA

Microsoft Technologies
ASP, C#, DotNet, ...

Programming
C++, PHP, VB, ...

SAP

Testing

Web Technologies

Polls
Does personal networking help in job search?
 
IT Placement Papers interview questions Placement Papers interview questions PATNI

This category contains PATNI Placement Paper, latest PATNI Placement Paper.



Search by tag : Placement Papers, PATNI Placement Paper


TECHNICAL C QUESTION PAPER

PDF Print E-mail
1. Convert 251 in base 10 to octal(base Cool?

2. How much information can be stored in 1 byte of a IBM pc compatible?

3.What is the language used for Artificial Intelligence
Ans: lisp

4. Swap two variables without using temporary variable
Ans: a= a+b; b= a-b; a= a-b:
5.Which is not the operating system ?
Ans: BIOS

6. What is the optimum number of operations for 2x3 + 3x2 + 5x + 5?

7. In the fortran language which of the following is true.
(i) fortran uses call by value
(ii) fortran is object oriented
(iii) fortran allows use of function overloading

Ans. (i)
8. When a program is compiled what does it produce?
Ans: Source code is converted to object code

9. What is the difference between function overloading and function overriding?

10. What is the character set used in JAVA 2.0 ?
Ans: Unicode
Section 3 - C Test
1. What is the mistake in the following program segment ?

f()
{
int a;
void c;
f2(&c,&a);}
2. a=0;
  b=(a=0)?2:3;

a) What will be the value of b and why ?
b) If in first statement a=0 is replaced by a = -1,  b= ?
c) If in second statement a=0 is replaced by a = -1, b=?

3.char *a[2];
int const *p;
int *const p;
struct new { int a;int b; *var[5] (struct new)}

Describe the statements in the above given construct ?
4.f()
   {
      int a=2;
      f1(a++);
   }
f1(int c)
{
printf("%d", c);
}
What is the value of c ?
5. f1()
    {
       f(3);
    }
f(int t)
{
switch(t);
{
case 2: c=3;
case 3: c=4;
case 4: c=5;
case 5: c=6;
default: c=0;
}
What is the value of c?
6. What is the fallacy in the following program segment ?
int *f1()
{
int a=5;
return &a;
}
f()
int *b=f1()
int c=*b;
}
7. Give the C language equivalents of the following
a)Function returning an int pointer
b)Function pointer returning an int pointer
c)Function pointer returning an array of integers
d)Array of function pointer returning an array of integers
8. Find the fallacy in the following program segment?
int a;
short b;
b=a;
9. Define function ? Explain arguments in functions ?

10. How does C pass variables to a function ?
11. Explain the following program segment.
f(){
int *b;
*b=2;
}

12. Explain binary trees and their use ?
13. Draw the diagram showing the function stack, illustrating the variables that were pushed on the stack at the point when function f2 has been introduced .
type def struct
{ double x,double y} point; }
main( int argc, char *arg[3])
{ double a;
int b,c;
f1(a,b); }
f1(double x, int y)
{point p;
stack int n;
f2(p,x,y)
}
f2(point p, double angle)
{ int i,j,k,int max;
}
 
Related items

 
Next >

Placement Papers | PATNI Placement Paper

Top!
Top!
Copyright © 2008 InterviewDuniya.com All Rights Reserved.
Partner Site: Maheshwari Matrimony