True
False
True
False
253
254
255
256
delete
concatenate
compare
none of the above
to go to the next iteration in a loop
come out of a loop
exit and return to the main function
restarts iterations from beginning of loop
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
int ~Country()
void Country()
int ~Country(Country obj)
void ~Country()
True
False
float
string
int
wchar_t
True
False
Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language
True
False
When new operator cannot allocate memory
When alloc function fails
When type requested for new operation is considered bad< thisexception is thrown
When delete operator cannot delete teh allocated (corrupted) object
What will be output if you will compile and execute the following c code?
#include
int main(){
char c=125;
c=c+10;
printf("%d",c);
return 0;
}
135
+INF
-121
-135
True
False
True
False
The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
A & B Both
Type definitions (typedefs)
Class definitions
Function definitions
Template definitions
Storage
Virtual
Friend
Wrapper
3
4
5
infinite
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
std::bad_creat
std::bad_alloc
std::bad_cast
std::bad_typeid
0
NULL
1
none of the above
True
False
True
False
main()
{
int k, num = 30;
k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);
printf("
%d", num);
}
200
500
30
Unpredictable
void main()
{
float a;
int x = 10, y = 3; a = x / y;
printf("%f", a); }
3.999999
Error
3
3.000000
abstract
Virtual
Dynamic
Typeid
do-while
if-else
goto
for