Multiple choice technology programming languages

SELECT LENGTHB ('CANDIDE') FROM DUAL;

  1. 14

  2. 10

  3. 4

  4. 7

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The LENGTHB function in Oracle returns the length of a string in bytes rather than characters. The string 'CANDIDE' contains 7 ASCII characters, and since each character takes 1 byte in standard ASCII encoding, the byte length is 7.