Each statement in a C program should end with.?
Semicolon ;
Who invented C Language.?
Dennis Ritchie
Directives are translated by the ________
Pre-processor
Number of Keywords present in C Language are .?
32
What is the output of the following statement
int a = 10 + 4.867;
a = 14
What is the result of logical or relational expression in C?
0 or 1
A C program is a combination of.?
Statements, Functions, Variables
A) main()
{
scanf("Hello World..");
}
B) main()
{
printf("Hello World..");
}
C) main()
{
print("Hello World..");
}
B
Size of float, double and long double in Bytes are.?
4, 8, 10
In C language, which Operator group has more priority between (*, / and %) and (+, -) groups.?
(*, / and %)
What is #include <stdio.h>?
Preprocessor directive
Header files in C contain
Library functions
What is the output of the program.?
int main() {
float a = 45;
printf("%f", a);
return 0; }
45.000000
Every C Variable must have.?
Both Type and Storage Class
What is the syntax for C Ternary Operator
condition ? expression1 : expression2
C language was invented to develop which Operating System.?
Unix
Range of signed char and unsigned char are.?
-128 to +127
0 to 255
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}
Compile time error
In the C language, the constant is defined _______.
Anywhere, but starting on a new line.
What will be the output of the given statement
printf("%d", (a++))
Value of a
What will happen if the following C code is executed?
#include <stdio.h>
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
3
What is the default C Storage Class for a variable.?
auto
C Language is a successor to which language.?
B Language
What will the result of num variable after execution of the following statements?
int num = 58;
num % = 11;
3
Explanation: num = 58
num % = 11
num = num % 11
num = 58 % 11
num = 3
8