--:--









Quiz for SELECT with Expressions

Course: SQL | Subject: SQL | Topic: Data Query Language (DQL)



Logo

Q1: Which of the following queries adds 10 to the column `price`?

Logo

Q2: What does the expression SELECT 3 + 5 return?

Logo

Q3: Which SQL clause allows use of arithmetic expressions directly?

Logo

Q4: What will SELECT salary * 12 AS annual_salary do?

Logo

Q5: What is the result of SELECT 10/2?

Logo

Q6: What does SELECT UPPER('sql') return?

Logo

Q7: What does SELECT NOW() return?

Logo

Q8: Which of the following is valid in SELECT clause?

Logo

Q9: What does SELECT LENGTH('MySQL') return?

Logo

Q10: Which function returns the number of characters in a string?

Logo

Q11: What does SELECT 'Score: ' || 90 return in PostgreSQL?

Logo

Q12: Which keyword is used to rename a derived column?

Logo

Q13: What is the output of SELECT 2 * (3 + 4)?

Logo

Q14: What will SELECT salary + NULL return?

Logo

Q15: What does SELECT ROUND(10.678, 2) return?

Logo

Q16: What will SELECT CONCAT('SQL', 'Query') return?

Logo

Q17: Which clause in SQL supports aggregate and expression together?

Logo

Q18: What will SELECT TRIM(' SQL ') return?

Logo

Q19: Which function converts string to lowercase in SQL?

Logo

Q20: What does SELECT ABS(-10) return?

Logo

Q21: Which symbol is used for multiplication in SQL expressions?

Are you ready to start test? Set your time limit