latest placement papers of Global Edge
151 / 164
#include
#define mysizeof(a) (&a+1) - &a
void main()
{
float d;
printf("%d\n", mysizeof(d) );
}
Note: assume sizeof float is 8 bytes
A8
B4
C1
Dcompiler error
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
152 / 164
#include<stdio.h>
int main()
{
char p[]="Hello";
p[0]='h';
printf("%s\n", p);
}
Ahello
BHello
Ccompiler error
Drun time error
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
153 / 164
#include<stdio.h>
int main()
{
char *a="Hello";
*a++ = 'h';
printf("%s\n",a);
}
Ahello
Bello
Crun time error
Dcompiler error
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
154 / 164
#include<stdio.h>
int main()
{
int a=8,d;
int *p;
p=&a;
d=a/*p;
print("%d\n",d);
}
A1
B0
Ccompiler error
Drun time error
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
155 / 164
int (*fun())[]
Afunction returning a pointer to an array
Bfunction returning an array of pointers
Cpointer to a funtion which takes array as argument
DCompiler error
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
156 / 164
#define SIZE sizeof(int)
main(){ int i=-1;
if( i < SIZE )
printf("True\n");
else
printf("False\n");
}
ATRUE
BFALSE
Ccan't predict
DNone of these
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
157 / 164
#include<stdio.h>
int main()
{
int a;
char *p;
a = sizeof(int) * p;
printf("%d\n",a);
}
Acompile error
Brun time error
C4
Dcompiler dependent
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
158 / 164
How do u declare a pointer to an array of pointers to int?
Aint *a[5];
Bint **a[5];
Cint *(*a)[5];
Du can not declare
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
159 / 164
main(int argc,char *argv[])
{
printf((argc > 1 ? "%c" : "%c",*++argv);
}
If the i/p string is "GESL Bangalore")
AG
BE
CB
DGESL
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
160 / 164
What does main return on successful execution?
A1
B0
C-1
DNonzero
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
Here is the list of questions asked in placement question papers of Global Edge latest placement papers of Global Edge. Practice Global Edge Written Test Papers with Solutions and take Q4Interview Global Edge Online Test Questions to crack Global Edge written round test. Overall the level of the Global Edge Online Assessment Test is moderate. Only those candidates who clear the written exam will qualify for the next round, so practic all the questions here and take all the free tests before going for final selection process of Global Edge