ExamVeda
Login
Home
91
The C statement ""if (a == 1 || b == 2) {}"" can be re-written as . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
92
goto can be used to jump from main() to within a function.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
93
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 0;
    if (x++)
        printf("true\n");
    else if (x == 1)
        printf("false\n");
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
94
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 1;
    if (a)
        printf("All is Well ");
        printf("I am Well\n");
    else
        printf("I am not a River\n");
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
95
Which keyword is used to come out of a loop only for that iteration?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
96
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    printf("before continue ");
    continue;
    printf("after continue\n");
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
97
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 0, i = 0, b;
    for (i = 0;i < 5; i++)
    {
        a++;
        if (i == 3)
            break;
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
98
What will be the output of the following C code?
#include <stdio.h>
switch (ch)
{
   case 'a':
   case 'A':
      printf("true");
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
99
How many times while loop condition is tested in the following C code snippets, if i is initialized to 0 in both the cases?
while (i < n)
         i++;
    ————-
    do
         i++;
    while (i <= n);
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
100
What will be the output of the following C code?
#include <stdio.h>
#define max(a) a
int main()
{
    int x = 1;
    switch (x)
    {
       case max(2):
          printf("yes\n");
       case max(1):
          printf("no\n");
          break;
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board