Skip to main contentSkip to solution

State the output:

SELECT LEFT(RIGHT("COMPUTER SCIENCE",7),3), MID(UCASE("informatics"),3,4);

Solution

✅ Correct Option: 1

RIGHT("COMPUTER SCIENCE",7) takes the last 7 characters, which gives "SCIENCE". LEFT("SCIENCE",3) then gives "SCI".

UCASE("informatics") gives "INFORMATICS". MID(string,3,4) starts at the 3rd character and takes 4 characters, so it gives "FORM".

ExpressionWorkingResult
LEFT(RIGHT("COMPUTER SCIENCE",7),3)"SCIENCE" then first 3 charactersSCI
MID(UCASE("informatics"),3,4)"INFORMATICS" then characters 3 to 6FORM

Option 2: UCASE converts the text to capitals, so the result cannot be lowercase "form".

Option 4: this would need the last 3 characters of the string (LEFT is applied to the first characters of "SCIENCE", not the end).

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question