题目
题目

CSE-110-OD25-27 3.1: Lesson and Knowledge Check - Study Hall Video Episode 3

单项选择题

If programmers create a code using several mathematical operations in Java, how can they specify the part of the expression they want carried out first?

选项
A.By placing that expression in parentheses modulo, and division are carried out in that order; and then, finally, addition and subtraction are carried out.
B.By placing that expression in double quotation marks
C.By placing a semicolon immediately after that part of the expression
D.By placing two forward slashes immediately before that part of the expression
查看解析

查看解析

标准答案
Please login to view
思路分析
When programming in Java, the order in which operations are performed can be controlled by grouping parts of an expression with parentheses. This allows you to specify that certain subexpressions should be evaluated first, before the rest of the expression. Option 1: 'By placing that expression in parentheses modulo, and division are carried out in that order; and then, finally, addition and subtraction are carried out.' This opti......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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