18. time_t t;
Choice a: t = clock();
Choice b: time( &t );
Choice c: t = ctime();
Choice d: t = localtime();
Choice e: None of the above
Sunday, September 28, 2008
Friday, September 19, 2008
A compound statement is a group of statements included between a pair of
a. Double quote
b. Curly braces
c. Parenthesis
d. A pair of /’s
b. Curly braces
c. Parenthesis
d. A pair of /’s
Thursday, September 18, 2008
What is the output of following programme ?
main( )
{
int a=30, b=40, x;
x=(a!=10) && (b=50);
printf(“x= %d”,x);
}
a. 10
b. 50
c. 1
d. 0
{
int a=30, b=40, x;
x=(a!=10) && (b=50);
printf(“x= %d”,x);
}
a. 10
b. 50
c. 1
d. 0
Sunday, September 14, 2008
"My salary was increased by 15%!"
Select the statement which will EXACTLY reproduce the line of text above.
Choice a: printf("\"My salary was increased by 15/%\!\"\n");
Choice b: printf("My salary was increased by 15%!\n");
Choice c: printf("My salary was increased by 15'%'!\n");
Choice d: printf("\"My salary was increased by 15%%!\"\n");
Choice e: printf("\"My salary was increased by 15'%'!\"\n");
Choice a: printf("\"My salary was increased by 15/%\!\"\n");
Choice b: printf("My salary was increased by 15%!\n");
Choice c: printf("My salary was increased by 15'%'!\n");
Choice d: printf("\"My salary was increased by 15%%!\"\n");
Choice e: printf("\"My salary was increased by 15'%'!\"\n");
Thursday, September 11, 2008
Which one of the following functions is the correct choice for moving blocks of binary data that are of arbitrary size and position in memory?
Choice a: memcpy()
Choice b: memset()
Choice c: strncpy()
Choice d : strcpy()
Choice e :memmove()
Choice b: memset()
Choice c: strncpy()
Choice d : strcpy()
Choice e :memmove()
Subscribe to:
Posts (Atom)