Skip to content

Category Archives: Quizzes

Following function is supposed to calculate the maximum depth or height of a Binary tree — the number of nodes along the longest path from… Read More
Which of the following is a true about Binary Trees (A) Every binary tree is either complete or full. (B) Every complete binary tree is… Read More
#include <stdio.h> int i; int main() {     if (i);     else         printf("Ëlse");     return 0; } What is correct about the above program? (A) if block is… Read More
#include <stdio.h> int main() {     int i;     if (printf("0"))         i = 3;     else         i = 5;     printf("%d", i);     return 0; }  Predict the output of… Read More
What is the output of below program? #include <stdio.h> int foo(int* a, int* b) {     int sum = *a + *b;     *b = *a;     return… Read More
#include <stdio.h> int main() {     int i = 3;     printf("%d", (++i)++);     return 0; } What is the output of the above program? (A) 3 (B)… Read More
Predict the output of the below program: #include <stdio.h> #define EVEN 0 #define ODD 1 int main() {     int i = 3;     switch (i &… Read More
#include <stdio.h> int main() {     int i = 3;     switch (i)     {         case 0+1: printf("Geeks");                 break;         case 1+2: printf("Quiz");                 break;         default: printf("GeeksQuiz");     }     return 0;… Read More
What is the output of the below program? #include <stdio.h> int main() {     int i = 0;     switch (i)     {         case '0': printf("Geeks");                 break;         case… Read More
#include <stdio.h> #define PRINT(i, limit) do \                         { \                             if (i++ < limit) \                             { \                                 printf("GeeksQuiz\n"); \                                 continue; \                             } \                         }while(0)    int… Read More
#include <stdio.h> #define PRINT(i, limit) do \                         { \                             if (i++ < limit) \                             { \                                 printf("GeeksQuiz\n"); \                                 continue; \                             } \                         }while(1)    int… Read More
Predict the output of below program: #include <stdio.h> int main() {     printf("%c ", "GeeksQuiz"[5]);     return 0; } (A) Compile-time error (B) Runtime error (C) Q… Read More
Predict the output of the below program: #include <stdio.h>    int main() {     printf("%c ", 5["GeeksQuiz"]);     return 0; } (A) Compile-time error (B) Runtime error… Read More
Predict the output of below program: #include <stdio.h>    int main() {     int arr[5];     // Assume base address of arr is 2000 and size of… Read More
Which one of the following is an application of Queue Data Structure? (A) When a resource is shared among multiple consumers. (B) When data is… Read More

Start Your Coding Journey Now!