C# MCQ With Questions and Answer

                                
What will the following function call print? printf('%010.6f', 22);
A.22
B.22.00
C.022.000000
D.22.000000
                                
Consider the following XML code: <?xml version="1.0" encoding="utf-8"?> <books> <book id="1">PHP 5 Power Programming</book> <book id="2">Learning PHP 5</book> </books> Which of the following SimpleXML calls print the name of the second book? (Let $xml=simplexml_load_file("books.xml");) (Choose 2)
A.echo $xml->books->book[2];
B.echo $xml->books->book[1];
C.echo $xml->book[1];
D.echo $xml->xpath("/books/book[@id=2]");
E.$c = $xml->children(); echo $c[1];
                                
Consider the following code: strspn($test, 'aeiou', 1); The variable $test contains the string "You get certified". What will the function call return?
A.true
B.false
C.0
D.1
E.2
F.3
                                
In the function setcookie() what does the 3rd prameter specify?
A.The name of the cookie.
B.The expiration time of the cookie.
C.The value of the cookie.
D.The IP address of the cookie's client.
                                
When a class is defined as final it:
A.Can no longer be extended by other classes.
B.Means methods in the class are not over-loadable.
C.Cannot be defined as such, final is only applicable to object methods.
D.Is no longer iteratable.