C# MCQ With Questions and Answer

                                
An unbuffered query will: (Choose 2)
A.Return the first data faster
B.Return all data faster
C.Free connection faster for others scripts to use
D.Use less memory
                                
How to read a single line, no matter how long from an file opened in the example below? $fp = fopen("my_file.txt", "w");
A.fgets($fp);
B.fgets($fp, -1);
C.fread($fp, 1024);
D.fgetss($fp);
E.None of the above
                                
You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() functionHow can you do this? (Choose 2)
A.Set enable_dl to Off in the server's php.ini configuration file.
B.Add dl to the current value of disable_functions in the server's php.ini configuration file.
C.Add dl to the current value of disable_classes in the server's php.ini configuration file.
D.Write a custom function called dl(), save it under the name prepend.inc and then set the auto_prepend_file directive to prepend.inc in php.ini.
                                
Do constants have global scope or local scope?
A.They have global scope
B.They have local scope
C.They have both global and local scope
D.They have neither global nor local scope
                                
What is the result of the following code? $a = 1; $b = "1"; var_dump($a === $b);
A.bool(true
B.bool(false)
C.Parser error
D.NULL