Sail E0 Webinar

MCQs

Total Questions : 39 | Page 2 of 4 pages
Question 11. Which one of the following statements should be used to include a file?
  1.    #include ‘filename’;
  2.    include ‘filename’;
  3.    @include ‘filename’;
  4.    #include ;
 Discuss Question
Answer: Option B. -> include ‘filename’;
Question 12. Which one of the following methods is responsible for sending the query to the database?
  1.    query()
  2.    send_query()
  3.    sendquery()
  4.    query_send()
 Discuss Question
Answer: Option A. -> query()
Question 13. Which one of the following methods recuperates any memory consumed by a result set?
  1.    destroy()
  2.    remover()
  3.    alloc()
  4.    free()
 Discuss Question
Answer: Option D. -> free()
Question 14. Which of the methods are used to manage result sets using both associative and indexed arrays?
  1.    get_array() and get_row()
  2.    get_array() and get_column()
  3.    fetch_array() and fetch_row()
  4.    fetch_array() and fetch_column()
 Discuss Question
Answer: Option C. -> fetch_array() and fetch_row()
Question 15. Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?
  1.    num_rows()
  2.    affected_rows()
  3.    changed_rows()
  4.    new_rows()
 Discuss Question
Answer: Option B. -> affected_rows()
Question 16. Which version of MySQL introduced the prepared statements?
  1.    MySQL 4.0
  2.    MySQL 4.1
  3.    MySQL 4.2
  4.    MySQL 4.3
 Discuss Question
Answer: Option B. -> MySQL 4.1
Question 17. Which of the following methods is used to execute the statement after the parameters have been bound?
  1.    bind_param()
  2.    bind_result()
  3.    bound_param()
  4.    bound_result()
 Discuss Question
Answer: Option A. -> bind_param()
Question 18. Which one of the following methods is used to recuperating prepared statements resources?
  1.    end()
  2.    finish()
  3.    final()
  4.    close()
 Discuss Question
Answer: Option D. -> close()
Question 19. Which method retrieves each row from the prepared statement result and assigns the fields to the bound results?
  1.    get_row()
  2.    fetch_row()
  3.    fetch()
  4.    row()
 Discuss Question
Answer: Option C. -> fetch()
Question 20. Which method rolls back the present transaction?
  1.    commit()
  2.    undo()
  3.    back()
  4.    rollback()
 Discuss Question
Answer: Option D. -> rollback()

Latest Videos

Latest Test Papers