True
False
A. True
\a
\b
\m
printf("%d%d", book.price, book.page);
printf("%d%d", price.book, page.book);
printf("%d%d"< price::book< page::book);
printf("%d%d", price>book, page>book);
True
False
#include
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
return 0;
}
1
64
320
Compiler Error
Simple Template Library
Standard Template Library
Static Type Library
Single Type-based Library
**, * or /, + or -
**, *, /, +, -
**< /< *< +<-
/ or *, - or +
enumeration
iteration
culmination
pass through
True
False
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.
Type definitions (typedefs)
Class definitions
Function definitions
Template definitions
float
string
int
wchar_t
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
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
B
b
bca
bc
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
True
False
True
False
True
False
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
91
88
90
89
Sequential
Random
Sequential and Random
None of the above
True
False
putchar(65)
putchar('x')
putchar("x")
')
True
False
Only once
At least once
More than Once
Any one of the above
True
False
4
2
8
10
True
False
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
3.4e38 to 3.4e38
32767 to 32768
32768 to 32767
32668 to 32667
True
False