Campus placement papers of Global Edge
161 / 164
#include<stdio.h>
void main()
{
int i,count=0;
char *p1="abcdefghij";
char *p2="alcmenfoip";
for(i=0;i<=strlen(p1);i++) {
if(*p1++ == *p2++)
count+=5;
else
count-=3;
}
printf("count=%d\n",count);
}
A15
B6
C12
Dcompiler error
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
162 / 164
#include<stdio.h>
int main()
{
char *mess[]={"Have","a","nice","day","Bye");
printf("%d \t %d",sizeof(mess),sizeof(mess[1]));
}
A16 4
B5 4
C20 4
DError
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
163 / 164
char ( * ( f ( )) [ ])()
Af is a pointer to function returning char
Bf is a pointer to an array of function returning a char
CInvalid declaration
Df is a function returning pointer to array[] of pointer to function returning char)
Answer: Option D
Explanation:Here is no explanation for this answer
Submit Your Solution
164 / 164
In each of the following questions find out the alternative which will replace the question mark.
Flow : River :: Stagnant : ?
ARain
BStream
CPool
DCanal
Answer: Option C
Explanation:As Water of a River flows similarly water of Pool is Stagnant.
Submit Your Solution
Here is the list of questions asked in campus placement papers for Global Edge Global Edge placement papers for cse. 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