题目
题目

FIT1058_S1_2025 Week 5 Pre-reading Quiz

单项选择题

Which of the following is an example of a ternary predicate?

选项
A.a. A function called allUnique(A, B, C) which is True if the values of A, B, and C are all different, and False otherwise.
B.b. A function called divideByThree(X) which gives the value of X divided by 3.
C.c. A function called divisibleByThree(X) which is True if X is divisible by 3, and False otherwise.
D.d. A function called average(A, B, C) which gives the average of the numerical values A, B, and C.
查看解析

查看解析

标准答案
Please login to view
思路分析
To determine which option is an example of a ternary predicate, we first recall two key ideas: a predicate is a function that returns a boolean value (true or false), and 'ternary' means the function takes three arguments. Option a: A function called allUnique(A, B, C) which is True if the ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!