English

What will be the output of the following query? SELECT POWER (2, MOD (17, 3)): - Informatics Practices

Advertisements
Advertisements

Question

What will be the output of the following query? 

SELECT POWER (2, MOD (17, 3)):

Options

  • 8

  • 1

  • 0

  • 4

MCQ

Solution

4

Explanation:

According to BODMAS rule, the inner function has to be executed first MOD(17, 3): 

MOD(17, 3) = 17 % 3 = 2 

Next, we'll apply this result in the POWER function: 

POWER(2, 2) = 22 = 4 

shaalaa.com
  Is there an error in this question or solution?
2023-2024 (February) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×