Global Edge placement papers with solution
141 / 164
#include<stdio.h>
int main()
{
char c = 255;
printf ("%d",c);
return 0;
}
Aillegal character assignment
Bprints -1
Cprints 2
Dprints 255
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
142 / 164
#include<stdio.h>
int main()
{
char s[10];
scanf ("%s",s);
printf(s);
}
If input is abcd :
Aprints abcd
Bcompiler error
Cprints abcd and 6 junk characters
Dprintd s
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
143 / 164
#include<stdio.h>
int main()
{
int arr[]={ 1,2,3,4 };
int *ptr ;;;;
ptr++ = arr;
printf("%d,%d",ptr[2],arr[2]);
return 0;
}
Acompile time error :multiple termination statements for pointer
Blvalue required for ptr
Cprints 3 3
Dprintd 4 3
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
144 / 164
what is the correct prototype of printf function ?
Aprintf(char *p,...);
Bprintf(const *char *p,...);
Cprintf(const char *p,...);
Dprintf(const *char p,...);
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
145 / 164
which is the null statement?
A;
B{}
C'\0';
Dall of these
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
146 / 164
#include<stdio.h>
int main()
{
200;
printf("tricky problem");
}
Awarning message
Bcompilation error
Crun time error
Dnone of these
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
147 / 164
#include<stdio.h>
#define islower(c) ('a'<=(c) && (c)<='z')
#define toupper(c) (islower(c)?(c)-('a'-'A'):(c))
main()
{
char *p="i am fine";
while(*p)
printf("%c",toupper(*p++));
}
Abcd
BAFE
CaFe
DBCd
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
148 / 164
#include<stdio.h>
main()
{
scanf("%d");
printf();
}
which of the following is correct?
Acompilation error
BRun time error
CNo output
Ddepends on the compiler
Answer: Option A
Explanation:Here is no explanation for this answer
Submit Your Solution
149 / 164
#include<stdio.h>
int main()
{
int i=-1;
i<<=2;
printf("%d\n",i);
}
A-1
B-2
C-4
D0
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
150 / 164
#include<stdio.h>
int main()
{
int *p=10;
printf("%d\n",*p);
}
A10
Brun time error
Ccompiler error
D5
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
Here is the list of questions asked in placement papers of Global Edge 2020 placement papers of Global Edge 2020. 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