Decision control structure MCQs
1. Which of the following is a decision control structure?a) while loopb) for loopc) if statementd) do-while loop Answer: c) if statementExplanation: The if statement … Read more
1. Which of the following is a decision control structure?a) while loopb) for loopc) if statementd) do-while loop Answer: c) if statementExplanation: The if statement … Read more
1. Which of the following correctly defines a character set in programming? A) A collection of mathematical symbols used in computationsB) A set of predefined … 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