Storage
Virtual
Friend
Wrapper
True
False
main()
{
void msg()
{
printf("HELLO WORLD");
}
}
HELLO WORLD
Error
None of the above
Null
[]
{}
()
None of the above
0
NULL
1
none of the above
/ + *
* / +
+ / *
* / + -
string.h
strings.h
text.h
strcmp.h
True
False
x + y' is a keyword
3 and 20 are constants
3z is a constant
y is a variable and z is a constant
void main()
{
int a = 1, b=2;
int *ip;
ip=&a;
b=*ip;
printf("%d", b);
}
2
1
100
0
True
False
Keywords have some predefine meanings and these meanings can be changed.
Keywords have some unknown meanings and these meanings cannot be changed.
Keywords have some predefine meanings and these meanings cannot be changed.
None of the above
An array is a collection of variables that are of the dissimilar data type.
An array is a collection of variables that are of the same data type.
An array is not a collection of variables that are of the same data type.
None of the above.
True
False
High Level and Procedural
Low Level and OOPS
Middle Level and Procedural
Machine Level and OOPS
What will be output if you will compile and execute the following c code?
#include
#define x 5+2
int main(){
int i;
i=x*x*x;
printf("%d",i);
return 0;
}
27
343
233
Compiler Error
\a
\b
\m
main()
{
int sub[50];
for(i=0; i<=48;i++)
{
sub[i]=i;
printf("
%d", sub[i]);
}
}
0 to 48 will be displayed
48
49
Compilation Error
True
False
a = 5
a += 5
a = b = c
a = b
True
False
**, * or /, + or -
**, *, /, +, -
**< /< *< +<-
/ or *, - or +
The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
A & B Both
True
False
True
False
void main()
{
int a = 0;
while (a<=50) for(;;) if(++a % 50==0) break;
printf("a = %d", a);
}
a = 100
a = 50
compilation error
runtime error
True
False
True
False
.
?
;
none of the above
void main()
{
float a;
int x = 10, y = 3; a = x / y;
printf("%f", a); }
3.999999
Error
3
3.000000