True
False
B. False
True
False
High Level and Procedural
Low Level and OOPS
Middle Level and Procedural
Machine Level and OOPS
True
False
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
double and chars
floats and doubles
ints and floats
ints and chars
#if
#elseif
#undef
#pragma
Explicit
Public
Implicit
Private
main()
{
unsigned int a = 10;
while (a>=10)
{
int a; a-- ;
}
printf("%i", a);
}
Infinite loop
9
0
None
True
False
break
continue
exit
All of the above
24
2
26
None
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
1 byte
4 bytes
8 bytes
16 bytes
float
string
int
wchar_t
True
False
3.4e38 to 3.4e38
32767 to 32768
32768 to 32767
32668 to 32667
#define sqr(x= x*x)
main()
{
int a = 10, b = 5;
printf("%d, %d", sqr(a+b),sqr(++a));
}
77, 121
225, 121
77< 144
Compilation error
True
False
True
False
main()
{
void msg()
{
printf("HELLO WORLD");
}
}
HELLO WORLD
Error
None of the above
Null
True
False
the question mark should be an equal sign
the first semicolon should be a colon
there are too many variables in the statement
the conditional operator is only used with apstrings
void main()
{
int a;
int &b = a;
a=100;
printf("b=%d\ta=%d
", b,a);
}
b=100 a=100
b=100 a=0
b=0 a=100
Error
True
False
Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language
the increment should always be ++k
the variable must always be the letter i when using a for loop
there should be a semicolon at the end of the statement
the commas should be semicolons
the return 0; statement
the first statement after the loop
the statement following the continue statement
the next iteration of the loop
91
88
90
89
while (1)
{i++;}
for( ; ; );
while (true)
{false = 1;}
do
{y = x;}
while (x==0);