Wipro interview questions for laterals | Set 1
25 question
1hr time
All Are MCQ:
1 mark each, no negative marks
Domain: C language
1)
int main() { int i; i = 0; if (x=0) { printf("x is zero"); } else { printf("x is not zero"); } } |
chevron_right
filter_none
2)
int main() { int i = -3; printf("%d n", (++i + ++i)); } |
chevron_right
filter_none
3)
int main() { int x = 0xF01DEAD; printf("%X n",(x>>1)<<1); } |
chevron_right
filter_none
4)
int main() { char* s1 ; char* s2 ; s1 = "FIRST NAME"; s2 = "LAST NAME"; strcpy(s1,s2); printf("%s %s n",s1,s2); } |
chevron_right
filter_none
5)
int main { struct Student { int a; char b; char c; float f; }s1; printf("%dn",sizeof(s1)); } |
chevron_right
filter_none
6)
int main { struct Student { short a[5]; union Student { long c; float f; }u1; }s1; printf("%dn",sizeof(s1)); } |
chevron_right
filter_none
7)
int main() { for (i=0; i<=2; i++) for (j=0; j<=i; j++) for(k=0; k<=j; k++) printf(""hello world"); } |
chevron_right
filter_none
8)
int main() { for (count=5; sum+=--count; ) printf("%d n",sum); } |
chevron_right
filter_none
9)
int main() { int i=0; while (i<10); print("hello world")' } |
chevron_right
filter_none
10)
int main() { (x && (x&(x-1))) --- indicates what? } |
chevron_right
filter_none
some more on pointers, preprocessors and static
If you like GeeksQuiz and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Recommended Posts:
- How I cracked my Wipro Interview.
- Wipro Interview Experience (On Campus)
- Wipro off campus drive Interview
- Wipro Interview Experience | Set 14 (On Campus)
- Wipro Interview Experience | Set 7 (On-Campus)
- Wipro Interview Experience | On-Campus
- Wipro Interview Experience | Set 2 (On-Campus)
- Wipro Interview Experience | Set 10 (On-Campus)
- Wipro Interview Experience | Set 5 (On-Campus)
- Wipro Interview Experience | Set 13 (On Campus)
- Wipro Interview Experience | Set 6 (On-Campus)
- Wipro Turbo Interview Experience | Set 12 (For CSP Profile)
- Wipro Interview Experience | On-Campus Drive
- Wipro Turbo Interview Experience | (On-Campus)
- Wipro Elite NLTH 2019 Interview



