The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
A & B Both
D. A & B Both
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.
\a
\b
\m
int num[6] = { 2, 4, 12, 5, 45, 5 } ;
int n{} = { 2, 4, 12, 5, 45, 5 } ;
int n{6} = { 2< 4< 12 } ;
int n(6) = { 2, 4, 12, 5, 45, 5 } ;
.
?
;
none of the above
#if
#elseif
#undef
#pragma
True
False
True
False
True
False
?,-
?,:
++<--
none of the above
True
False
True
False
Simple Template Library
Standard Template Library
Static Type Library
Single Type-based Library
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
B
b
bca
bc
True
False
True
False
True
False
253
254
255
256
float a =123.56;
char ch ='T' * 'A';
char ch ='T' *20;
3 +a = b;
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
A
B
BCPL
C++
True
False
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);
3
4
5
infinite
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 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
**, * or /, + or -
**, *, /, +, -
**< /< *< +<-
/ or *, - or +
An alphabet
A number
A special symbol other than underscore
both (b) and (c)
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