# Philips Technical Paper

Posted on :11-02-2016
Philips Technical Paper:-

Q1. ASSERT b>0 c>0 if b > c a = b/c /*path 1*/ else a = c/b /*path 2*/ ASSERT a > 1

a) Path 1 is right.
b) Path 2 is right.
c) Both are right.
d) None are right.

Q2. The accesses of a set of page is given and the maximum number of pages is 4. How many cache misses?

Q3. If there are 15 software functions and atleast 5 of them are defective. Then find out the probability that no error will be there if three functions are chosen and tested.

Q4. Suppose you want to create a file in a dir in UNIX. What should you have?

b) Write
c) Execute
d) Own the dir.

Q5. If channel bandwidth is given as 37 kHz. Find the maximum frequency of data that you can transfer over the channel.

Q6. Give the output of the following program, On fun(n) {unsigned long n=3D~0 For (i= 3D0; n>>1)! = 3D0; i++) }

Q7. What is Java?

a) Compiled language
b) Interpreted language
d) Object Oriented.

Q8. How much data you can transmit over a line of baud rate 2500 bauds?

Q9. What is the output of this C code?

#include
struct point
{
int x;
int y;
};
void foo(struct point*);
int main()
{
struct point p1[] = {1, 2, 3, 4, 5};
foo(p1);
}
void foo(struct point p[])
{
printf(%d %d , p->x, p[3].y);
}

a) Compile time error
b) 1 0
c) 1 some garbage value
d) None of the mentioned

ANS: c

Q10. What is the output of this C code?

#include
struct student
{
char *c;
};
void main()
{
struct student s[2];
printf(%d, sizeof(s));
}

a) 2
b) 4
c) 16
d) 8

ANS: d

Q11. What is the output of this C code?

#include
struct point
{
int x;
int y;
};
void foo(struct point*);
int main()
{
struct point p1[]  =  {1, 2, 3, 4};
foo(p1);
}
void foo(struct point p[])
{
printf(%d , p[1].x);
}

a) Compile time error
b) 3
c) 2
d) 1

ANS: b

Q12. What is the output of this C code?

#include
struct point
{
int x;
int y;
};
void foo(struct point*);
int main()
{
struct point p1[] = {1, 2, 3, 4, 5};
foo(p1);
}
void foo(struct point p[])
{
printf(%d %d , p->x, (p + 2)->y);
}

a) Compile time error
b) 1 0
c) 1 some garbage value
d) undefined behaviour

ANS: b

Q13. What is the output of this C code?

#include
struct point
{
int x;
int y;
};
void foo(struct point*);
int main()
{
struct point p1[] = {1, 2, 3, 4};
foo(p1);
}
void foo(struct point p[])
{
printf(%d , p->x);
}

a) 1
b) 2
c) 3
d) Compile time error

ANS: a

Q14. What is the output of this C code?

#include
struct point
{
int x;
int y;
} p[] = {1, 2, 3, 4, 5};
void foo(struct point*);
int main()
{
foo(p);
}
void foo(struct point p[])
{
printf(%d %d , p->x, p[2].y);
}

a) 1 0
b) Compile time error
c) 1 some garbage value
d) Undefined behaviour

ANS: a

Q15. What is the output of this C code?

#include
struct point
{
int x;
int y;
};
void foo(struct point*);
int main()
{
struct point p1[] = {1, 2, 3, 4, 5};
foo(p1);
}
void foo(struct point p[])
{
printf(%d %d , p->x, (p + 2).y);
}

a) Compile time error
b) 1 0
c) 1 some garbage value
d) Undefined behaviour

ANS: a

Q16. What is the output of this C code?

#include
struct point
{
int x;
int y;
};
void foo(struct point*);
int main()
{
struct point p1[] = {1, 2, 3, 4};
foo(p1);
}
void foo(struct point p[])
{
printf(%d %d , p->x, ++p->x);
}

a) 1 2
b) 2 2
c) Compile time error
d) Undefined behaviour

ANS: b

## Related Companies

Samsung
Microsoft
Siemens
Dell
Tata motors
Apple
Fujitsu

FreshersLive - No.1 Job site in India. Here you can find latest 2018 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.

 ✖