Aditi Placement Paper - 2


Computer awareness :

Note: The Questions are of multiple choice format in the paper

1. What is the number of functions of a three variable Boolean function?

2. Which is the most commonly used replacement algorithm?
Ans. Lru

3. Which memory management technique involves dividing the memory into fixed sized blocks?
Ans. Paging

4. What is video resolution?

5. The processing speed of a microprocessor depends on _____?
Ans. Data bus width

c test:

note: the Questions are of multiple choice formats in the paper

1. What is the output of the program given below

#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d
",i);
}

2. What is the output of the following program

#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}


3. What is the memory allocated by the following definition?
Int (*x) [10];

4. What is the memory allocated by the following definition?
Int (*x) ();

5. In the following program segment

#include<stdio.h>
main()
{
int a=2;
int b=9;
int c=1;
while(b)
{
if(odd(b))
c=c*a;
a=a*a;
b=b/2;
}
printf("%d",c);
}

how many times is c=c*a calculated?

6. In the program segment in Question 5 what is the value of a at the end of the while loop?
7. What is the output for the program given below

type def enum grade{good,bad,worst,}bad;
main()
{
bad g1;
g1=1;
printf("%d",g1);
}

8. Give the output for the following program.

#define style1 char
main()
{
typedef char style2;
style1 x;
style2 y;
clrscr();
x=255;
y=255;
printf("%d %d",x,y);
}

9. Give the output for the following program segment.

#ifdef true
int i=0;
#endif

main()
{
int j=0;
printf("%d %d",i,j);
}

10. In the following program

#include<stdio.h>
main()
{
char *pdestn,*psource="i love you daddy";
pdestn=malloc(strlen(psource));
strcpy(pdestn,psource);
printf("%s",pdestn);
free(pdestn);
}

(a)free() fails
(b)strcpy() fails
(c)prints i love you daddy
(d)error

11. What is the output for the following program

#include<stdio.h>
main()
{
char a[5][5],flag;
a[0][0]='a';
flag=((a==*a)&&(*a==a[0]));
printf("%d
",flag);
}

Aditi placement paper

Aditi
placement paper-1

Aditi placement paper

Aditi
placement paper-3