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
C. Keywords have some predefine meanings and these meanings cannot be changed.
An Editor
A compiler
An operating system
None of the above
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);
253
254
255
256
True
False
Dennis Ritchie
Ken Thompson
Bill Gates
Peter Norton
int ~Country()
void Country()
int ~Country(Country obj)
void ~Country()
True
False
True
False
the return 0; statement
the first statement after the loop
the statement following the continue statement
the next iteration of the loop
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
main()
{
unsigned int a = 10;
while (a>=10)
{
int a; a-- ;
}
printf("%i", a);
}
Infinite loop
9
0
None
break
continue
exit
All of the above
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
float
string
int
wchar_t
True
False
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
int x=40;
main(){
int x=20;
printf("
%d",x);
}
40
20
Compilation Error
Garbeg Value
True
False
main()
{
int k, num = 30;
k = (num > 5 ? (num <= 10 ? 100 : 200) : 500);
printf("
%d", num);
}
200
500
30
Unpredictable
4
2
8
10
while (1)
{i++;}
for( ; ; );
while (true)
{false = 1;}
do
{y = x;}
while (x==0);
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
True
False
True
False
True
False
Type definitions (typedefs)
Class definitions
Function definitions
Template definitions
delete
concatenate
compare
none of the above
Storage
Virtual
Friend
Wrapper
x + y' is a keyword
3 and 20 are constants
3z is a constant
y is a variable and z is a constant