0 of 30 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 30 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
The format identifier ā%iā is also used for _____ data type.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 1, b = 1, c;
c = a++ + b;
printf(“%d, %d”, a, b);
}
What will be the output of the following C code? (Assuming that we have entered theĀ value 1 in the standard input)
#include <stdio.h>
void main()
{
double ch;
printf(“enter a value between 1 to 2:”);
scanf(“%lf”, &ch);
switch (ch)
{
case 1:
printf(“1”);
break;
case 2:
printf(“2”);
break;
}
}
Which for loop has range of similar indexes of āiā used in for (i = 0;i < n; i++)?
Which of the following is a correct format for declaration of function?
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 5;
int *p = &k;
int **mĀ = &p;
printf(“%d%d%d\n”, k, *p, **m);
}
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int i = 0;
while (i < 10)
{
i++;
printf(“hi\n”);
while (i < 8)
{
i++;
printf(“hello\n”);
}
}
}
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a[5] = {1, 2, 3, 4, 5};
int i;
for (i = 0; i < 5; i++)
if ((char)a[i] == ‘5’)
printf(“%d\n”, a[i]);
else
printf(“FAIL\n”);
}
Which data type is most suitable for storing a number 65000 in a 32-bit system?
What will be the output of the following C code?
#includeĀ <stdio.h>
int main()
{
signed char chr;
chr = 128;
printf(“%d\n”, chr);
return 0;
}
What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf(“%d “, 1);
goto l1;
printf(“%d “, 2);
l1:goto l2;
printf(“%d “, 3);
l2:printf(“%d “, 4);
}
What is the problem in the following C declarations?
int func(int);
double func(int);
int func(float);
User-defined data type can be derived by___________
Which of the following is an incorrect syntax for pointer to structure?
(Assuming struct temp{int b;}*my_struct;)
What is the return value of getc()?
#include <stdio.h>
void f(int a[][3])
{
a[0][1] = 3;
int i = 0, j = 0;
for (i = 0; i < 2; i++)
for (j = 0; j < 3; j++)
printf(“%d”, a[i][j]);
}
void main()
{
int a[2][3] = {0};
f(a);
}
What will be the output of the following C code?
#include <stdio.h>
struct p
{
int k;
char c;
float f;
};
int p = 10;
int main()
{
struct p x = {1, 97};
printf(“%f %d\n”, x.f, p);
}
Which header file includes a function for variable number of arguments?
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 0;
do
{
i++;
if (i == 2)
continue;
printf(“In while loop “);
} while (i < 2);
printf(“%d\n”, i);
}
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 4;
int *p = &x;
int *k = p++;
int r = p – k;
printf(“%d”, r);
}
What is the value of the postfix expression 6 3 2 4 + ā *:
The function ____ obtains a block of memory dynamically.
Which of the following uses structure?
Which of the following is used during memory deallocation in C?
Which of the following is the correct syntax to declare a 3 dimensional array using pointers?
What is the maximum number of arguments that can be passed in a single function?
What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *a[1] = {“hello”};
printf(“%s”, a[0]);
return 0;
}
Which of these best describes an array?
When does the ArrayIndexOutOfBoundsException occur?
In a stack, if a user tries to remove an element from empty stack it is called _________