-->



Huawei Placement Paper


1. which is true?
out of 4 options ans is "& operator cannot be applied to register variables"

2. How many additions are done in this pgm
for(i=0;i<31;i++)
for(j=0;j<31;j++)
for(k=0;k<31;k++)
d=d+1;
3. i=6720,j=4;
for(;i%j==0;){
i=i/j;
j=j+1;
}
print i;
what is the output?

3. main{
int i=1;
{
int i=2;
print i;
i=i+1;
}
print i;
}
what is the output.

4. what is a bit=field?

5.What Storage class defines
a.scope b.scope and permeance c.permeance

6. main(){
int x=0;
fun(x);
print x;
}
fun(int x){
x=x+1;
print x;
}
what is the output?

7. Changing some of the bits to a desired pattern is known as