--:--









Quiz for Conversion Functions

Course: SQL | Subject: SQL | Topic: SQL Functions



Logo

Q1: Which function is used to convert data types in SQL?

Logo

Q2: Which SQL function converts a string to a number?

Logo

Q3: Which function would you use to convert a number to a string in SQL?

Logo

Q4: What does the CAST() function do in SQL?

Logo

Q5: What is the result of CAST(123.45 AS INT)?

Logo

Q6: Which function can convert a date to a string in SQL?

Logo

Q7: Which SQL function converts a value from one data type to another?

Logo

Q8: What is the difference between CAST() and CONVERT() in SQL?

Logo

Q9: What happens when you use TO_DATE() on a string like '2024-01-01'?

Logo

Q10: What does this expression return: CAST('2024-01-01' AS DATE)?

Logo

Q11: Which conversion function is used in MySQL to change data types?

Logo

Q12: Which function would convert a string '123.45' into a numeric type in Oracle SQL?

Logo

Q13: How does CONVERT differ from CAST in SQL Server?

Logo

Q14: What does this return: CAST('123' AS FLOAT)?

Logo

Q15: Which of the following functions can convert a datetime to a string format?

Logo

Q16: Which of these functions allows you to format output during conversion?

Logo

Q17: What happens when you try CAST('abc' AS INT)?

Logo

Q18: In SQL, what does TO_DATE('01-JAN-2024', 'DD-MON-YYYY') return?

Logo

Q19: Which SQL function is best for converting between character and numeric types?

Logo

Q20: Which function helps in date formatting while converting?

Logo

Q21: Which is the correct way to change a number to varchar in SQL?

Are you ready to start test? Set your time limit