Skip to content

Category Archives: Quizzes

#include <stdio.h>    int main() {     int i = 1024;     for (; i; i >>= 1)         printf("GeeksQuiz");     return 0; } How many times will GeeksQuiz… Read More
#include <stdio.h> // Assume base address of "GeeksQuiz" to be 1000 int main() {    printf(5 + "GeeksQuiz");    return 0; } (A) GeeksQuiz (B) Quiz (C)… Read More
Which one of the following is an application of Stack Data Structure? (A) Managing function calls (B) The stock span problem (C) Arithmetic expression evaluation… Read More
Following is C like pseudo code of a function that takes a Queue as an argument, and uses a stack S to do processing. void… Read More
Following is C like pseudo code of a function that takes a number as an argument, and uses a stack S to do processing. void… Read More
What does the following function do for a given Linked List with first node as head? void fun1(struct node* head) { if(head == NULL) return;… Read More
#include <stdio.h> int main() {     int i;        i = 1, 2, 3;     printf("%d", i);          return 0; } (A)… Read More
#include <stdio.h> int main() {     int i = (1, 2, 3);          printf("%d", i);          return 0; } (A) 1… Read More
#include <stdio.h> int main() {     int i = 1, 2, 3;          printf("%d", i);          return 0; } (A) 1… Read More
Which of the followings is/are automatically added to every class, if we do not write our own. (A) Copy Constructor (B) Assignment Operator (C) A… Read More
#include "stdio.h" int main() { int x, y = 5, z = 5; x = y == z; printf("%d", x); getchar(); return 0; } (A)… Read More
#include <stdio.h>    int main()  {    printf(" \"GEEKS %% FOR %% GEEKS\"");    getchar();    return 0;  } (A) “GEEKS % FOR % GEEKS” (B) GEEKS %… Read More
Predict output of the following program  C #include <stdio.h> int main() {    printf("\new_c_question\by");    printf("geeksforgeeks");     getchar();    return 0; } (A) ew_c_questiongeeksforgeeks  (B) new_c_quesgeeksforgeeks  (C) geeksforgeeks  (D)… Read More
Predict the output of following program? #include "stdio.h" int main() {     char arr[100];     printf("%d", scanf("%s", arr));     /* Suppose that input value given         for above scanf… Read More

Start Your Coding Journey Now!