Global Edge Aptitude Test Question with Answers
21 / 164
#include<stdio.h>
int main()
{
int k=5;
for(++k<5 && k++/5 || ++k<8);
printf("%d\n",k);
}
A5
B6
C7
D8
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
22 / 164
#include<stdio.h>
int main()
{
int *ptr1,*ptr2;
ptr1=(int *)malloc(sizeof(int));
ptr2=func(20,10,ptr1);
printf("%d %d\n",*ptr1,*ptr2);
}
int *func(int a, int b, int *c)
{
int x=a+b;
*c=a-b;
return(&x);
}
ABug in the code
BNo Bugs prints correctly
CError
DNone of the above
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
23 / 164
#include<stdio.h>
int main()
{
int i = 10, j ;
if ( ( j = ~i ) < i )
printf ( "True" ) ;
else
printf ( "False" ) ;
}
ATRUE
BFALSE
CCompiler Dependent
DNone of the above
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
24 / 164
How many bytes are required to create a 3*3 matrix using double pointer
A12
B9
C6
D3
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
25 / 164
void main() {
FILE *fp;
printf("%d\n",sizeof(fp) );
}
A2
B4
CCompiler dependent
DError
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
26 / 164
#include
int main()
{
int a=10,b=20;
a^=b^=a^=b;
printf("%d\n %d\n",a,b);
}
Aa=20,b=10
Ba=10,b=20
CSyntax error
DUnpredictable
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
27 / 164
#include<stdio.h>
int main()
{
int i=10;
switch(i) {
case 10: printf("Hello "); {
case 1 : printf("World ");
}
case 5: printf("Hello World ");
}
}
AHello
BWorld
CHello World Hello World
DSyntax Error
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
28 / 164
#include<stdio.h>
int main()
{
char str1[]="Hello";
char str2[]="Hello";
if ( str1==str2 )
printf("True\n");
else
printf("False\n");
}
ATRUE
BFALSE
CError
DUnpredictable
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
29 / 164
#include<stdio.h>
int main()
{
int i = 10 ;
printf("%d\n", i/2 );
}
A10
B5
Cerror
Dwarning
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
30 / 164
#include <stdio.h>
# pragma pack(2)
struct SIZE {
int i;
char ch ;
double db ;
} ;
main () {
printf ( "%d\n",sizeof(struct SIZE) );
}
A12
B14
C16
D8
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
Here is the list of questions asked in Global Edge Aptitude Test Question with Answers Global Edge Mock Test. 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