Computer Science
Kritika wants to divide a number and store the result without decimal places into an integer variable. Suggest an appropriate operator from the following:
- /
- %
- //
- Both (a) and (b)
Related Questions
What will be the output of the following code?
import math x = 100 print(x>0 and math.sqrt(x))
- True
- 1
- 10
- 10.0
…………… is a network security system, either hardware-based or software-based, that controls the incoming and outgoing network traffic based on a set of rules.
- Firewall
- Antivirus Software
- VMware
- Adware
Which of the following methods splits the string at the first occurrence of separator and returns a tuple containing three items?
- index()
- partition()
- split()
- count()
Find the output of the following:
for i in range(20, 30, 2): print (i)
- 1.
21 22 23 24 25
- 2.
21 23 25 27 29
3. SyntaxError
4.20 22 24 26 28