True
False
A. True
1 byte
4 bytes
8 bytes
16 bytes
/ + *
* / +
+ / *
* / + -
True
False
''
" "
'a'
abc'
void main()
{
static int a = 1, b, c;
if (a>=2) b=2; c=3;
printf("%d\t%d", b,c);
}
2 3
0 3
0 0
2 0
An alphabet
A number
A special symbol other than underscore
both (b) and (c)
do-while
if-else
goto
for
?,-
?,:
++<--
none of the above
True
False
35
45
55
40
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
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
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
They begin with a hash symbol
They are processed by a preprocessor
They form an integral part of the code
They have to end with a semi colon
void main()
{
int a = 1, b=2;
int *ip;
ip=&a;
b=*ip;
printf("%d", b);
}
2
1
100
0
True
False
main()
{
unsigned int a = 10;
while (a>=10)
{
int a; a-- ;
}
printf("%i", a);
}
Infinite loop
9
0
None
253
254
255
256
for
while
do-while
while & do-while
True
False
main()
{
xyz: goto abc;
printf("Hello");
abc: printf("World");
goto xyz;
}
Infinite loop
Hello World
World Hello
Compilation error
24
2
26
None
delete
concatenate
compare
none of the above
void change (char *k)
{
k="Hello";
return;
}
main()
{
char *ch = "World";;
change(ch);
printf("%s", ch);
}
Hello
World
Compilation error
Hello World
the return 0; statement
the first statement after the loop
the statement following the continue statement
the next iteration of the loop
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
float
string
int
wchar_t
True
False