Monday, January 12, 2009

Which one of the following is an advantage of dynamically linked object files?

Choice a : Programs that use dynamic linking do not require recompiling when a new processor type is used.

Choice b : Dynamically linked programs contain all machine code required to run them.

Choice c : Dynamically linked programs use extended memory, but statically linked programs only have access to conventional memory.

Choice d : Programs that use dynamic linking can benefit from library updates without relinking.

Choice e : Dynamically linked programs run faster because debugging symbols are not included.

Saturday, January 10, 2009

Which one of the following is NOT a valid identifier?

Choice a: bigNumber
Choice b: peaceful_in_space
Choice c : auto
Choice d : __ident
Choice e : g42277

Thursday, January 8, 2009

Find the correct output

void main()
{

int a[]={‘a’,’b’,’c’};
printf(“%d”, sizeof(a));

}

(a) 3
(b) 4
(c) can’t be initialized
(d) None of these

Thursday, January 1, 2009

An expression contains relational, assignment and arithmetic operators. If Parenthesis are not present, the order will be

a. Assignment, arithmetic, relational
b. Relational, arithmetic, assignment
c. Assignment, relational, arithmetic
d. Arithmetic, relational, assignment

Sunday, December 28, 2008

What is the output of following programme ?

main()
{
float b=7.7;
char a='7';
if('7'>a)
printf("this world is good and ");
else printf("not so bad after all ");
if(7.7>b)
printf("this world is good ");
else printf("not so bad after all");
}

a. not so bad after all not so bad after all
b. this world is good and this world is good
c. this world is good and not so bad after all
d. not so bad after all this world is good