题目
题目

FIT5216_S1_2025 Week 2 participation quiz

单项选择题

What does the following MiniZinc model print as output when you run it? var 0..3: x;constraint x = x + 1;

选项
A.a. x = 2;
B.b. x = 0;
C.c. x = 3;
D.d. x = 1;
E.e. =====UNSATISFIABLE=====
查看解析

查看解析

标准答案
Please login to view
思路分析
This question asks what a MiniZinc model prints given a specific variable declaration and constraint. The variable x ranges from 0 to 3, and the constraint is x = x + 1. Option a: 'x = 2.' If x were 2, the constraint would require 2 = 3, which is false. Therefore this assignment canno......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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