Q1
True / FalseIn PostgreSQL, the length function can be used to determine the number of characters in a string.
The length function returns the number of characters in a string.
Q2
True / FalseThe lower function in PostgreSQL converts all characters in a string to uppercase.
The lower function converts all characters in a string to lowercase, not uppercase.
Q3
True / FalseIn PostgreSQL, the substring function extracts a substring from a string based on a specified start position and length.
The substring function is used to extract a portion of a string starting from a specified position and for a specified length.
Q4
True / FalsePostgreSQL's trim function removes both leading and trailing spaces from a string by default.
The trim function removes leading and trailing spaces from a string unless specified otherwise.
Q5
True / FalseThe position function in PostgreSQL is used to find the position of the first occurrence of a substring within a string.
The position function returns the position of the first occurrence of a substring within a string.
Q6
True / FalseIn PostgreSQL, the replace function can only replace a single character in a string.
The replace function can replace all occurrences of a substring with another substring, not just a single character.
Q7
True / FalseThe regexp_replace function in PostgreSQL allows for replacing parts of a string using a regular expression pattern.
The regexp_replace function uses regular expressions to match patterns in a string and replace them.
Q8
True / FalsePostgreSQL's initcap function capitalizes the first letter of each word in a string and converts the rest to lowercase
The initcap function capitalizes the first letter of each word in a string and converts all other letters to lowercase.
Q9
True / FalseIn PostgreSQL, the split_part function can split a string into an array based on a delimiter.
The split_part function splits a string based on a delimiter and returns the specified part (it does not return an array, but a specific part of the split string).
Q10
True / FalsePostgreSQL supports the to_ascii function, which can convert non-ASCII characters to their ASCII equivalents.
The to_ascii function in PostgreSQL converts non-ASCII characters to their closest ASCII equivalents, useful for normalizing strings.
Q30
Multiple ChoiceWhich SQL queries correctly use the SPLIT_PART function to split strings in PostgreSQL?
The SPLIT_PART function splits a string into parts based on a delimiter and returns the specified part.