Company: Aditi Technologies
NOTE: The questions are of multiple choice format in the paper
What is the number of functions of a three variable boolean function?
Which is the most commonly used replacement algorithm?
Ans. LRU
Which memory management technique involves dividing the memory into fixed sized blocks?
Ans. Paging
What is video resolution ?
The processing speed of a microprocessor depends on _____?
Ans. data bus width
SECTION 3: C TEST
NOTE: The questions are of multiple choice format in the paper
What is the output of the program given below
#include
main()
{
char i=0;
for(;i>=0;i++) ;
printf(“%dn”,i);
}
What is the output of the following program
#include
main()
{
int i=0;
fork();
printf(“%d”,i++);
fork();
printf(“%d”,i++);
fork();
wait();
}
What is the memory allocated by the following definition ?
int (*x)[10];
What is the memory allocated by the following definition ?
int (*x)();
In the following program segment
#include
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(“%dn”,c);
}
How many times is c=c*a calculated?
In the program segment in question 5 what is the value of a at the end of the while loop?
What is the output for the program given below
typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf(“%d”,g1);
}
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 %dn”,x,y);
}
In the following program
#include
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
What is the output for the following program
#include
main()
{
char a[5][5],flag;
a[0][0]=’A’;
flag=((a==*a)&&(*a==a[0]));
printf(“%dn”,flag);
}