PHP and MySQL MCQs
1. Which PHP function is used to establish a connection with a MySQL server? a) mysqli_query()b) mysql_connect()c) pdo_connect()d) mysqli_connect() Answer: d) mysqli_connect() Explanation: mysqli_connect() is … Read more
1. Which PHP function is used to establish a connection with a MySQL server? a) mysqli_query()b) mysql_connect()c) pdo_connect()d) mysqli_connect() Answer: d) mysqli_connect() Explanation: mysqli_connect() is … Read more
1. What is the primary purpose of CSS (Cascading Style Sheets)?a) To define the structure of web pagesb) To create dynamic interactions on web pagesc) … Read more
1. What is the primary function of the HTTP protocol in web communication?a) Transmitting emailsb) Serving web pagesc) Streaming videosd) Encrypting data Answer: b) Serving … Read more