What will be the output of the following Python code snippet?
print(‘The sum of {0:b} and {1:x} is {2:o}’.format(2, 10, 12))
a) The sum of 2 and 10 is 12
b) The sum of 10 and a is 14
c) The sum of 10 and a is c
d) Error
Answer: b
Explanation: 2 is converted to binary, 10 to hexadecimal and 12 to octal.
Related Posts
RBAC is abbreviated as ______________
DTE is abbreviated as ___________________
_______________ in a system is given so that users can use dedicated parts of the system for which they’ve been given access to.
MAC is abbreviated as _______________
In a Linux-based system, the accounts may be members of 1 or more than one group.
In your Linux-based system, you have to log-in with your root account for managing any feature of your system.
Using the ______ account of a UNIX system, one can carry out administrative functions.
Join The Discussion