Robotics & Artificial Intelligence
The statement 5 % 4 will return …………… .
- 0
- 1
- 2
- 3
Getting Started
2 Likes
Answer
1
Reason — The modulus operator (%) returns the remainder after division of two numbers. When 5 is divided by 4, the remainder obtained is 1, hence the result is 1.
Answered By
3 Likes
Related Questions
Consider the following statement and answer the question:
data = ("name": "Arjit", "age": 24)This statement:
- Will create a dictionary
- Will create a tuple
- Will produce an error
- Will create a set
Which out of the following is a valid variable name?
- @val
- 9val
- _val
- int
The statement 5 // 2 will return …………… .
- 2
- 2.5
- 5
- 0
Which of the following is a membership operator?
- and
- or
- in
- None of these