Sail E0 Webinar

MCQs

Total Questions : 103 | Page 7 of 11 pages
Question 61. Which of the following is correct about PHP?
  1.    PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.
  2.    PHP can handle forms, i.e. gather data from files, save data to a file, thru email you can send data, return data to the user.
  3.    You add, delete, modify elements within your database thru PHP.
  4.    All of the above.
 Discuss Question
Answer: Option D. -> All of the above.
Question 62. Which of the following is/are not an exception? 1
  1.    All of the mentioned
  2.    Only 4
  3.    3 and 4
  4.    None of the mentioned
 Discuss Question
Answer: Option D. -> None of the mentioned
Question 63. Which of the following is correct about variable naming rules?
  1.    Variable names must begin with a letter or underscore character.
  2.    A variable name can consist of numbers, letters, underscores.
  3.    you cannot use characters like + , - , % , ( , ) . & , etc in a variable name.
  4.    All of the above.
 Discuss Question
Answer: Option D. -> All of the above.
Question 64. Which of the following functions reads the entire contents of a file? 1
  1.    Option 3 and 5
  2.    Option 1, 3 and 4
  3.    Option 2, 4 and 5
  4.    Option 2 and 4
 Discuss Question
Answer: Option C. -> Option 2, 4 and 5
Question 65. Select the correct output
  1.    Sam is the brother of Bob and Jack
  2.    Sam is the brother of Bob and Bob
  3.    Sam is the brother of Jack and Bob
  4.    Error
 Discuss Question
Answer: Option D. -> Error
Question 66. Which version of PHP introduced Try/catch Exception?
  1.    PHP 4
  2.    PHP 3
  3.    PHP 6
  4.    PHP 5 and later
 Discuss Question
Answer: Option D. -> PHP 5 and later
Question 67. Web Service Characteristics
  1.    Fast; loads just the data instead of a whole web page
  2.    Flexible; you’re not limited to using only a web page, you can use a desktop or mobile app
  3.    Tightly coupled; changing one part might change the others
  4.    Unopinionated; you’re giving the users a choice on how to use your data
 Discuss Question
Answer: Option C. -> Tightly coupled; changing one part might change the others
Question 68. What is the correct way to open the file "time
  1.    fopen("time.txt","r");
  2.    fopen("time.txt","r+");
  3.    open("time.txt");
  4.    open("time.txt","read");
 Discuss Question
Answer: Option A. -> fopen("time.txt","r");
Question 69. What is the name of scripting engine in PHP?
  1.    Zend Engine 2.0
  2.    Motolite
  3.    Core 2 Duo
  4.    Windows Xp
 Discuss Question
Answer: Option A. -> Zend Engine 2.0
Question 70. When defining identifier in PHP you should remember that ?
  1.    Identifier are case sensitive. So $result is different than $ result
  2.    Identifiers can be any length
  3.    Both of above
  4.    None of above
 Discuss Question
Answer: Option C. -> Both of above

Latest Videos

Latest Test Papers