代码改变世界

12c OCP考试专项 [1z0-071]-Q7: 函数(2020.06.16)

2020-06-16 12:53  askscuti  阅读(407)  评论(0编辑  收藏  举报

which two are ture?

A. INSTR finds the offset within a character string,starting from position 0.
B. FLOOR returns the largest position integer less than or equal to a specified number.
C. CONCAT joins two character strings together.
D. INSTR finds the offset within a string of a single character only.
E. FLOOR returns the largest integer less than or equal to a specified number.
F. CONCAT joins two or more character strings together.

Answer: CE

Explanation:

C:CONCAT 单个函数只能拼接两个字符串。可嵌套。
E:FLOOR 返回小于或等于指定数字的最大整数。官方原话。

A: 从 0 开始查找字符串的偏移量,错误,从第 1 位开始。
B:返回小于或等于指定数字的最大位置整数,错误,最大位置没理解什么意思,官方说的是数字的最大整数。
D:INSTR只在单个字符的字符串中查找偏移量,错误,也可以多个字符 instr('abc','abc')
F:CONCAT可以连接两个或更多字符串,错误,最多拼接两个字符串,单可以不受限制的嵌套多层。

提示:答案为个人理解和解答,难免有错,也欢迎大家及时指正。