Question 21
sum = 0; for (i = 1; i <= n; i*= 2) for(j = 1; j <= n; j++) sum++;Which of the following is not a valid string ?
Question 22
Integer procedure P(X, Y); Integer X,Y: value x; begin K = 5; L = 8; P = x + y; endX is called by value and Y is called by name. If the procedure were invoked by the following program fragment
K = 0; L = 0; Z = P(K, L);then the value Z would be set equal to
Question 23
Question 24
Question 25
#include <stdio.h>
int main( )
{
int x; char *ptr;
x = 622,100,101;
printf(\"%d\", (*(char *)&x) * (x % 3));
return 0;
}
Question 26
#include <stdio.h>
rer(int **ptr2, int **ptr1)
{
int* ii;
ii = *ptr2;
*ptr2 = *ptr1;
*ptr1 = ii;
**ptr1 *= **ptr2;
**ptr2 += **ptr1;
}
void main( )
{
int var1 = 5, var2 = 10;
int *ptr1 = &var1, *ptr2 = &var2;
rer(&ptr1, &ptr2);
printf(“%d %d “, var2, var1);
}
Question 28
Question 30
There are 80 questions to complete.