Dennis Ritchie
Ken Thompson
Bill Gates
Peter Norton
Type definitions (typedefs)
Class definitions
Function definitions
Template definitions
True
False
What will be output if you will compile and execute the following c code?
#include
#define x 5+2
int main(){
int i;
i=x*x*x;
printf("%d",i);
return 0;
}
27
343
233
Compiler Error
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 } ;
abstract
Virtual
Dynamic
Typeid
Work same as printf()
prints the error message specified by the compiler
prints the garbage value assigned by the compiler
None of the above
Storage
Virtual
Friend
Wrapper
True
False
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 return 0; statement
the first statement after the loop
the statement following the continue statement
the next iteration of the loop
const X* const
X* const
X*
X&
True
False
?,-
?,:
++<--
none of the above
True
False
True
False
Positive value
Zero
Negative value
None of these
91
88
90
89
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
\a
\b
\m
True
False
main()
{
unsigned int a = 10;
while (a>=10)
{
int a; a-- ;
}
printf("%i", a);
}
Infinite loop
9
0
None
True
False
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
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
float
string
int
wchar_t
''
" "
'a'
abc'
True
False
True
False