C# MCQ With Questions and Answer

                                
How can the constant defined below be accessed from within PHP? class myClass { const FOO = 'BAR'; }
A.myClass::$FOO
B.myClass::$$FOO
C.myClass::FOO
D.myClass::foo
E.$foo::myClass
                                
Which of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?
A.Strip all occurrences of the string script.
B.Strip all occurrences of the string javascript.
C.Enable magic_quotes_gpc.
D.None of the above.
                                
Which of the following is NOT a valid function declaration?
A.function x ($x1 = array())
B.function x (A $x1)
C.function x (A $x1 = null)
D.function x ($x1 = $x2)
                                
When checking whether two English words are pronounced alike, which function should be used for the best possible result?
A.levenshtein()
B.metaphone()
C.similar_text()
D.soundex()
                                
Can calls to Web Services be queued natively in PHP?
A.Yes
B.No
C.Only if PHP is compiled with --enable-soap-queue