4
7
6
0
A. 4
Simple Template Library
Standard Template Library
Static Type Library
Single Type-based Library
float
string
int
wchar_t
True
False
do-while
if-else
goto
for
putchar(65)
putchar('x')
putchar("x")
')
Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language
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
True
False
0
NULL
1
none of the above
True
False
Type definitions (typedefs)
Class definitions
Function definitions
Template definitions
main()
{
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}
0
Nothing will be displayed
Infinite loop
None of the above
True
False
while (1)
{i++;}
for( ; ; );
while (true)
{false = 1;}
do
{y = x;}
while (x==0);
Only once
At least once
More than Once
Any one of the above
Overloading is a dynamic or run-time binding and Overriding is static or compile-time binding
Redefining a function in a friend class is called function overriding while Redefining a function in a derived class is called a overloaded fucntion.
Overloading is a static or compile-time binding and Overriding is dynamic or run-time binding
Redefining a function in a friend class is called function overloading while Redefining a function in a derived class is called as overridden fucnion.
int f(int a, int b);
void main()
{
int a = 12, b=154;
printf("%d", f(a, b));
}
int f(int a, int b)
{
if (a<b) return(f(b, a));
if(b==0) return(a);
return (f(b, a % b));
}
2
1
Compilation error
Runtime error
True
False
delete
concatenate
compare
none of the above
True
False
pointers to strings
string to pointer
both
True
False
True
False
True
False
True
False
a = 5
a += 5
a = b = c
a = b
std::vector
std::list
std::map
std::set
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.