1 byte
4 bytes
8 bytes
16 bytes
C. 8 bytes
main()
{
unsigned int a = 10;
while (a>=10)
{
int a; a-- ;
}
printf("%i", a);
}
Infinite loop
9
0
None
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.
main()
{
xyz: goto abc;
printf("Hello");
abc: printf("World");
goto xyz;
}
Infinite loop
Hello World
World Hello
Compilation error
int ~Country()
void Country()
int ~Country(Country obj)
void ~Country()
float
string
int
wchar_t
4
2
8
10
Throw by value and catch by reference.
Throw by reference and catch by reference.
Throw by value and catch by value
Throw the pointer value and provide catch for teh pointer type.
0
NULL
1
none of the above
string.h
strings.h
text.h
strcmp.h
True
False
std::bad_creat
std::bad_alloc
std::bad_cast
std::bad_typeid
main()
{
int k, num = 30;
k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);
printf("
%d", num);
}
200
500
30
Unpredictable
while (1)
{i++;}
for( ; ; );
while (true)
{false = 1;}
do
{y = x;}
while (x==0);
Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language
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
3
4
5
infinite
An alphabet
A number
A special symbol other than underscore
both (b) and (c)
void main()
{
int a = 1, b=2;
int *ip;
ip=&a;
b=*ip;
printf("%d", b);
}
2
1
100
0
1 byte
4 bytes
8 bytes
16 bytes
main()
{
void msg()
{
printf("HELLO WORLD");
}
}
HELLO WORLD
Error
None of the above
Null
True
False
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
B
b
bca
bc
main()
{
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}
0
Nothing will be displayed
Infinite loop
None of the above
True
False
break
continue
exit
All of the above
True
False
float a =123.56;
char ch ='T' * 'A';
char ch ='T' *20;
3 +a = b;
the logical operator && cannot be used in a test condition
the while loop is an exit-condition loop
the test condition is always true
the test condition is always false
True
False