A code of conduct includes rules and responsibilities for the individual or party
100 feet away before turning.
Answer:
Long integer literal.
Explanation:
Integer literal can be defined as numbers that do not contain any decimal point or augmented part. An integer literals can be characterized as decimal, octal, or hexadecimal constant. When an integer liteal is added with prefix it tends to define its base, whereas suffix define its type.
The suffix L to an integer literal means long integer literal. The suffix can be written in any form, either upper case (L) or lower case (l).
Therefore, the correct answer is long integer literal.
Answer:
user_salary = int(input("Please Enter Your Salary : "))
if user_salary in range(10000, 20000):
print("Tax = ",int(user_salary/100*1))
elif user_salary in range(20000, 30000):
print("Tax = ",int(user_salary/100*2))
elif user_salary in range(30000, 40000):
print("Tax = ",int(user_salary/100*3))
else:
print("No Tax!")
Explanation:
Answer:
Static scoping: x is 5
Dynamic scoping : x is 10.
Explanation:
Static scoping :
In static scoping the variable of a function take the value within the function.
If there is no values exist within the function then take the global value of the variable.
var x // No value is assigned to x so it check global value of x
function sub1() {
document.write(“x = “ + x + “”); // So it print x = 5
}
function sub2() {
var x;
x = 10;
sub1();
}
x = 5; // It is the global value of x
sub2();
Static scoping: x is 5
Dynamic scoping :
In Dynamic scoping the variable of a function take the value all the calling function ends.
If the global value is the last assigned value of a variable then it take that value.
If there exist some other function after global variable value if that function contain the variable with some assigned value variable take that value.
var x
function sub1() {
document.write(“x = “ + x + “”);
}
x = 5; // At this point x value is 5 and check there exist a function
sub2(); // So now call this function
function sub2() {
var x;
x = 10; // The value of x = 5 is replaced with x = 10
sub1();
}
Dynamic scoping : x is 10.