Search Header Logo

MySQL Functions Quiz

Authored by Zemmary Batucan

Instructional Technology

10th Grade

Used 2+ times

MySQL Functions Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do functions CURRENT_DATE() and CURDATE() return in MYSQL?

The current time

The current date

The current timestamp

The day of the week

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which MYSQL function returns the time at which it executes?

NOW()

CURTIME()

SYSDATE()

CURRENT_TIME()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the DAY(), MONTH(), and YEAR() functions in MYSQL?

To modify date values

To extract the day, month, and year from a date

To add days, months, and years to a date

To format a date

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the DATE_ADD() function do in MYSQL?

Adds a specified time interval to a date

Calculates the difference between two dates

Converts a string to a date

Extracts the date from a timestamp

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

DATEDIFF() in MySQL is used to:

Format a date

Add days to date

Find the difference in days between two dates

Convert a date to a different time zone

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the STR_TO_DATE() function in MySQL?

To format a date as a string

To add time to a date

To convert a string to a date

To extract the month from a date

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In MySQL, what is an application of DATE_FORMAT()?

Adding intervals to a date

Converting a date to a string in a specific format

Extracting the day of the week from a date

Calculating the difference in years between two dates

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?