📝 Advanced Practice Questions (PHP & Database) - Page 2
Showing questions 21 to 40 of high-level competitive standards.
Q21. Which PHP function is used to get the length of a string?
Correct Answer: B) strlen()
Explanation: The strlen() function returns the length of a string in bytes.
Q22. What does SQL stand for?
Correct Answer: A) Structured Query Language
Explanation: SQL is a standard language for managing and querying data in relational database management systems.
Q23. Which symbol is used to start a variable name in PHP?
Correct Answer: C) $
Explanation: All variables in PHP start with a dollar sign ($) followed by the name of the variable.
Q24. Which SQL command is used to remove a table from a database?
Correct Answer: B) DROP TABLE
Explanation: The DROP TABLE statement deletes a table completely along with its structure and data.
Q25. Which function in PHP is used to output text to the browser?
Correct Answer: A) print() / echo
Explanation: echo and print are constructs used to output data in PHP.