C# MCQ With Questions and Answer

                                
Which of the following functions are used to escape data within the context of HTML? (Choose 2)
A.htmlentities()
B.addslashes()
C.stripslashes()
D.strip_tags()
E.htmlspecialchars()
                                
What is the purpose of the 4th argument to the file_get_contents() function?
A.Indicate the number of bytes to read
B.Specifies the stream context
C.Indicates whether or not include_path should be used
D.Identifies the starting offset
E.None of the above
                                
Which of the following configuration directives increase the risk of remote code injection when enabled? (Choose 2)
A.allow_url_fopen
B.register_globals
C.magic_quotes_gpc
D.safe_mode
                                
What super-global should be used to access information about uploaded files via a POST request?
A.$_SERVER
B.$_ENV
C.$_POST
D.$_FILES
E.$_GET
                                
Which piece of code will return the ASCII value of a character?
A.(int)'t';
B.ord('t');
C.to_ascii('t');
D.chr('t');